Index: tests/TileGridTest.cpp |
diff --git a/tests/TileGridTest.cpp b/tests/TileGridTest.cpp |
index 6529901dccbab6f385a29126a6a62c6840cbb7b7..c063fb03107fa281cb6efe88262086f5b83f37a3 100644 |
--- a/tests/TileGridTest.cpp |
+++ b/tests/TileGridTest.cpp |
@@ -37,8 +37,12 @@ static void verify_tile_hits(skiatest::Reporter* reporter, SkRect rect, |
info.fMargin.set(borderPixels, borderPixels); |
info.fOffset.setZero(); |
info.fTileInterval.set(10 - 2 * borderPixels, 10 - 2 * borderPixels); |
+ |
+ SkAutoTMalloc<SkRect> rects(1); |
+ rects[0] = rect; |
+ |
SkTileGrid grid(2, 2, info); |
- grid.insert(0, rect, false); |
+ grid.insert(&rects, 1); |
REPORTER_ASSERT(reporter, grid.tileCount(0, 0) == |
((tileMask & kTopLeft_Tile)? 1 : 0)); |
REPORTER_ASSERT(reporter, grid.tileCount(1, 0) == |