Index: include/core/SkPicture.h |
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h |
index 1e8b364145d7800cf02ecea87b0d1d78bcc7990a..2a89277f5e7b543b70c6c4e43094b169185edb18 100644 |
--- a/include/core/SkPicture.h |
+++ b/include/core/SkPicture.h |
@@ -197,6 +197,13 @@ public: |
// Takes ref on listener. |
void addDeletionListener(DeletionListener* listener) const; |
+ /** Return the approximate number of operations in this picture. This |
+ * number may be greater or less than the number of SkCanvas calls |
+ * recorded: some calls may be recorded as more than one operation, or some |
+ * calls may be optimized away. |
+ */ |
+ int approximateOpCount() const; |
+ |
private: |
// V2 : adds SkPixelRef's generation ID. |
// V3 : PictInfo tag at beginning, and EOF tag at the end |