Index: tests/RecordDrawTest.cpp |
diff --git a/tests/RecordDrawTest.cpp b/tests/RecordDrawTest.cpp |
index 43d4f6068b7f4615ffa156c6b192cab4fbd88f2e..6105c00f7f1093842d9fc2e808a753f2c7595f7b 100644 |
--- a/tests/RecordDrawTest.cpp |
+++ b/tests/RecordDrawTest.cpp |
@@ -100,9 +100,12 @@ DEF_TEST(RecordDraw_SetMatrixClobber, r) { |
} |
struct TestBBH : public SkBBoxHierarchy { |
- virtual void insert(unsigned opIndex, const SkRect& bounds, bool defer) SK_OVERRIDE { |
- Entry e = { opIndex, bounds }; |
- fEntries.push(e); |
+ virtual void insert(SkAutoTMalloc<SkRect>* boundsArray, int N) SK_OVERRIDE { |
+ fEntries.setCount(N); |
+ for (int i = 0; i < N; i++) { |
+ Entry e = { (unsigned)i, (*boundsArray)[i] }; |
+ fEntries[i] = e; |
+ } |
} |
virtual void search(const SkRect& query, SkTDArray<unsigned>* results) const SK_OVERRIDE {} |