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

Unified Diff: src/core/SkTileGrid.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/SkTileGrid.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkTileGrid.cpp
===================================================================
--- src/core/SkTileGrid.cpp (revision 8135)
+++ src/core/SkTileGrid.cpp (working copy)
@@ -121,3 +121,12 @@
int SkTileGrid::getCount() const {
return fInsertionCount;
}
+
+void SkTileGrid::rewindInserts() {
+ SkASSERT(fClient);
+ for (int i = 0; i < fTileCount; ++i) {
+ while (!fTileData[i].isEmpty() && fClient->shouldRewind(fTileData[i].top())) {
+ fTileData[i].pop();
+ }
+ }
+}
« no previous file with comments | « src/core/SkTileGrid.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698