Index: src/core/SkRTree.cpp |
=================================================================== |
--- src/core/SkRTree.cpp (revision 8135) |
+++ src/core/SkRTree.cpp (working copy) |
@@ -434,6 +434,14 @@ |
} |
} |
+void SkRTree::rewindInserts() { |
+ SkASSERT(this->isEmpty()); // Currently only supports deferred inserts |
+ while (!fDeferredInserts.isEmpty() && |
+ fClient->shouldRewind(fDeferredInserts.top().fChild.data)) { |
+ fDeferredInserts.pop(); |
+ } |
+} |
+ |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
static inline uint32_t get_area(const SkIRect& rect) { |