Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: bench/RTreeBench.cpp

Issue 23567005: Add missing .outs (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/RTreeBench.cpp
diff --git a/bench/RTreeBench.cpp b/bench/RTreeBench.cpp
index 624391cce97e5be450278ffda4a798ccebe61b10..e9fe60318cf26dd98f6a3a676386b6e62c28c5a3 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 = fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
- out.fBottom = fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
+ out.fRight = out.fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
+ out.fBottom = out.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 = fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
- out.fBottom = fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
+ out.fRight = out.fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
+ out.fBottom = out.fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 3);
return out;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698