diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-11 15:54:14 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-11 15:54:14 +0000 |
commit | c873329ae9ff00b0c45f7294172ad2e9b1ec44c8 (patch) | |
tree | 097af473a93308c68cf5aebaebf51abd1722034b /include/core/SkCanvas.h | |
parent | 0bd03cf38cc61ab78c09eb83f4564e34a3d7415f (diff) | |
download | skia-c873329ae9ff00b0c45f7294172ad2e9b1ec44c8.tar.gz |
Update bench to be able to preprocess skps
This allows benchmarking of optimization improvements and plumbs in the purging API. The purging is necessary so we don't magically get faster because the saveLayers are always pre-generated.
R=jvanverth@google.com, reed@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/233663002
git-svn-id: http://skia.googlecode.com/svn/trunk@14154 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r-- | include/core/SkCanvas.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 4d9c462b7..94eb6add7 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -932,6 +932,12 @@ public: */ void EXPERIMENTAL_optimize(SkPicture* picture); + /** PRIVATE / EXPERIMENTAL -- do not call + Purge all the discardable optimization information associated with + 'picture'. If NULL is passed in, purge all discardable information. + */ + void EXPERIMENTAL_purge(SkPicture* picture); + /** Draw the picture into this canvas. This method effective brackets the playback of the picture's draw calls with save/restore, so the state of this canvas will be unchanged after this call. |