Chromium Code Reviews| Index: src/core/SkRTree.cpp |
| =================================================================== |
| --- src/core/SkRTree.cpp (revision 8135) |
| +++ src/core/SkRTree.cpp (working copy) |
| @@ -434,6 +434,14 @@ |
| } |
| } |
|
robertphillips
2013/03/14 18:55:44
What's going to happen in none deferred mode?
Justin Novosad
2013/03/14 20:04:14
Then rewind optimizations will be illegal, and we
|
| +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) { |