Index: tests/TileGridTest.cpp |
diff --git a/tests/TileGridTest.cpp b/tests/TileGridTest.cpp |
index 8f5b18a6e916450cf39e72b5e76992af7ea38143..346687122092f1083259df8cc7208c1b977c2daa 100644 |
--- a/tests/TileGridTest.cpp |
+++ b/tests/TileGridTest.cpp |
@@ -25,13 +25,14 @@ public: |
MockCanvas(SkBaseDevice* device) : SkCanvas(device) |
{} |
- virtual void drawRect(const SkRect& rect, const SkPaint&) |
+ SkTDArray<SkRect> fRects; |
+ |
+protected: |
+ virtual void onDrawRect(const SkRect& rect, const SkPaint&) |
{ |
// This capture occurs before quick reject. |
fRects.push(rect); |
} |
- |
- SkTDArray<SkRect> fRects; |
}; |
class TileGridTest { |