Index: include/core/SkPicture.h |
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h |
index 1e8b364145d7800cf02ecea87b0d1d78bcc7990a..69353cfe08ad6aa59fc71f2790d6aaba8ae66fe6 100644 |
--- a/include/core/SkPicture.h |
+++ b/include/core/SkPicture.h |
@@ -197,6 +197,14 @@ public: |
// Takes ref on listener. |
void addDeletionListener(DeletionListener* listener) const; |
+ /** |
+ * Return the approximate number of "operations" in the picture. This number is hard to nail |
+ * down precisely, since there is not always a 1-to-1 correspondence between "operations" in |
+ * the internal format, and public API calls on SkCanvas. It is also possible that the value |
+ * returned may chage, as deferred optimizations may vary the count. |
+ */ |
+ int countOps() const; |
+ |
private: |
// V2 : adds SkPixelRef's generation ID. |
// V3 : PictInfo tag at beginning, and EOF tag at the end |