Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: src/core/SkRTree.cpp

Issue 12817011: Fixing SkPicture command pattern optimizations to make them work correctly with bounding box hierar… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkRTree.h ('k') | src/core/SkTileGrid.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/core/SkRTree.h ('k') | src/core/SkTileGrid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698