Index: src/core/SkRecord.h |
diff --git a/src/core/SkRecord.h b/src/core/SkRecord.h |
index ee10b15784242ce9af1ca6c75b3d13ae658c5139..8901d62e9193a4e136eb62d24b451491f2244377 100644 |
--- a/src/core/SkRecord.h |
+++ b/src/core/SkRecord.h |
@@ -111,6 +111,10 @@ public: |
// need to iterate with a visitor to measure those they care for. |
size_t bytesUsed() const; |
+ // Rearrange and resize this record to eliminate any NoOps. |
+ // May change count() and the indices of ops, but preserves their order. |
+ void defrag(); |
+ |
private: |
// An SkRecord is structured as an array of pointers into a big chunk of memory where |
// records representing each canvas draw call are stored: |