aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-12 14:53:29 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-12 14:53:29 +0000
commitc10531b50259049bd7238e85df17e8c2c09a062c (patch)
tree8eadea10b7858c07bda195ce07d9813bcd3ffea9 /include
parenta53e9460913f06a4c9c1bc473d70a335082c5e17 (diff)
Add testing of optimizations to GM
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPicture.h11
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.