Index: bench/RTreeBench.cpp |
diff --git a/bench/RTreeBench.cpp b/bench/RTreeBench.cpp |
index 39c2aa116c14e5362bfdca54422ba78b7b3c0e49..cdbdf35e01c67c082dd0459c8e4ac49fc4bd149d 100644 |
--- a/bench/RTreeBench.cpp |
+++ b/bench/RTreeBench.cpp |
@@ -43,7 +43,7 @@ protected: |
for (int i = 0; i < loops; ++i) { |
SkRTree tree; |
- tree.insert(&rects, NUM_BUILD_RECTS); |
+ tree.insert(rects.get(), NUM_BUILD_RECTS); |
SkASSERT(rects != NULL); // It'd break this bench if the tree took ownership of rects. |
} |
} |
@@ -73,7 +73,7 @@ protected: |
for (int i = 0; i < NUM_QUERY_RECTS; ++i) { |
rects[i] = fProc(rand, i, NUM_QUERY_RECTS); |
} |
- fTree.insert(&rects, NUM_QUERY_RECTS); |
+ fTree.insert(rects.get(), NUM_QUERY_RECTS); |
} |
void onDraw(const int loops, SkCanvas* canvas) SK_OVERRIDE { |