diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-04 19:08:57 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-04 19:08:57 +0000 |
commit | e494dbdec36f0ffa4affeac1c3f405b58ac41220 (patch) | |
tree | e95f978f055e48869abd1a2f9fafb584d8dd56b6 /include | |
parent | cb336874e468d5a2cb9e6287a3388fdd7a66dc1f (diff) |
The motivation for this CL is to de-clutter SkPicture's beginRecording method.
R=reed@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/186813003
git-svn-id: http://skia.googlecode.com/svn/trunk@13658 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPicture.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h index 56596c40df..2689ae000d 100644 --- a/include/core/SkPicture.h +++ b/include/core/SkPicture.h @@ -125,15 +125,6 @@ public: discarded if you serialize into a stream and then deserialize. */ kOptimizeForClippedPlayback_RecordingFlag = 0x02, - /* - This flag disables all the picture recording optimizations (i.e., - those in SkPictureRecord). It is mainly intended for testing the - existing optimizations (i.e., to actually have the pattern - appear in an .skp we have to disable the optimization). This - option doesn't affect the optimizations controlled by - 'kOptimizeForClippedPlayback_RecordingFlag'. - */ - kDisableRecordOptimizations_RecordingFlag = 0x04 }; /** Returns the canvas that records the drawing commands. @@ -228,6 +219,14 @@ public: static bool InternalOnly_StreamIsSKP(SkStream*, SkPictInfo*); static bool InternalOnly_BufferIsSKP(SkReadBuffer&, SkPictInfo*); + /** Enable/disable all the picture recording optimizations (i.e., + those in SkPictureRecord). It is mainly intended for testing the + existing optimizations (i.e., to actually have the pattern + appear in an .skp we have to disable the optimization). Call right + after 'beginRecording'. + */ + void internalOnly_EnableOpts(bool enableOpts); + protected: // V2 : adds SkPixelRef's generation ID. // V3 : PictInfo tag at beginning, and EOF tag at the end |