Add bench for rectanizers
R=bsalomon@google.com, jvanverth@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/319523003
diff --git a/tests/GpuRectanizerTest.cpp b/tests/GpuRectanizerTest.cpp
index ec396ef..2ee641e 100644
--- a/tests/GpuRectanizerTest.cpp
+++ b/tests/GpuRectanizerTest.cpp
@@ -14,8 +14,8 @@
#include "SkTDArray.h"
#include "Test.h"
-static const int kWidth = 1000;
-static const int kHeight = 1000;
+static const int kWidth = 1024;
+static const int kHeight = 1024;
// Basic test of a GrRectanizer-derived class' functionality
static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) {
@@ -59,16 +59,16 @@
}
DEF_GPUTEST(GpuRectanizer, reporter, factory) {
- SkTDArray<SkISize> fRects;
+ SkTDArray<SkISize> rects;
SkRandom rand;
for (int i = 0; i < 50; i++) {
- fRects.push(SkISize::Make(rand.nextRangeU(1, kWidth / 2),
- rand.nextRangeU(1, kHeight / 2)));
+ rects.push(SkISize::Make(rand.nextRangeU(1, kWidth / 2),
+ rand.nextRangeU(1, kHeight / 2)));
}
- test_skyline(reporter, fRects);
- test_pow2(reporter, fRects);
+ test_skyline(reporter, rects);
+ test_pow2(reporter, rects);
}
#endif