aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bench/RTreeBench.cpp8
-rw-r--r--tools/bbh_shootout.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/bench/RTreeBench.cpp b/bench/RTreeBench.cpp
index d017f39972..624391cce9 100644
--- a/bench/RTreeBench.cpp
+++ b/bench/RTreeBench.cpp
@@ -168,16 +168,16 @@ static inline SkIRect make_XYordered_rects(SkMWCRandom& rand, int index, int num
SkIRect out;
out.fLeft = index % GRID_WIDTH;
out.fTop = index / GRID_WIDTH;
- out.fRight = 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
- out.fBottom = 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
+ out.fRight = fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
+ out.fBottom = fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
return out;
}
static inline SkIRect make_YXordered_rects(SkMWCRandom& rand, int index, int numRects) {
SkIRect out;
out.fLeft = index / GRID_WIDTH;
out.fTop = index % GRID_WIDTH;
- out.fRight = 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
- out.fBottom = 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
+ out.fRight = fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
+ out.fBottom = fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
return out;
}
diff --git a/tools/bbh_shootout.cpp b/tools/bbh_shootout.cpp
index 555fd41f91..88223898f8 100644
--- a/tools/bbh_shootout.cpp
+++ b/tools/bbh_shootout.cpp
@@ -17,7 +17,7 @@
#include "SkTArray.h"
#include "TimerData.h"
-static const int kNumNormalRecordings = SkBENCHLOOP(0);
+static const int kNumNormalRecordings = SkBENCHLOOP(10);
static const int kNumRTreeRecordings = SkBENCHLOOP(10);
static const int kNumPlaybacks = SkBENCHLOOP(1);
static const size_t kNumBaseBenchmarks = 3;