Add missing .outs
Review URL: https://codereview.chromium.org/23567005 git-svn-id: http://skia.googlecode.com/svn/trunk@11042 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
3e3cdadefd
commit
0d60db6010
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user