aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPicture.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-08-14 19:17:18 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-14 19:17:21 -0700
commit5a246bb48708cfdbf5b63f8df7e2b09b3704cae4 (patch)
treec47cb826e2191e7864c51b845640be3fac313497 /include/core/SkPicture.h
parent86cfff0a4d4e082ee8e86af5adb0c7b17cd52e3a (diff)
int SkPicture::approximateOpCount()
NOTREECHECKS=true BUG=skia: R=reed@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/470333002
Diffstat (limited to 'include/core/SkPicture.h')
-rw-r--r--include/core/SkPicture.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 1e8b364145..2a89277f5e 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