diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-12 15:13:35 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-12 15:13:35 +0000 |
commit | ad7d481ea9839e0f4c497e58cabe209ffc1e4683 (patch) | |
tree | 7d4200e0bbb9ed128a5e033c0973ba5559160afa /include/core | |
parent | 81a51a2b4dfee266d6288c8b7821799a0c507757 (diff) |
Add testing of optimizations to GM
https://codereview.chromium.org/12843028/
git-svn-id: http://skia.googlecode.com/svn/trunk@8658 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkPicture.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h index 7929557270..1b5783d99c 100644 --- a/include/core/SkPicture.h +++ b/include/core/SkPicture.h @@ -115,7 +115,16 @@ public: Note: Currently this is not serializable, the bounding data will be discarded if you serialize into a stream and then deserialize. */ - kOptimizeForClippedPlayback_RecordingFlag = 0x02 + 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. |