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); |
robertphillips
2013/03/14 18:55:44
ouch - every tile.
Justin Novosad
2013/03/14 20:04:14
You just gave me a good idea for a follow-up patch
|
+ for (int i = 0; i < fTileCount; ++i) { |
+ while (!fTileData[i].isEmpty() && fClient->shouldRewind(fTileData[i].top())) { |
+ fTileData[i].pop(); |
+ } |
+ } |
+} |