diff options
author | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-13 14:29:06 +0000 |
---|---|---|
committer | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-13 14:29:06 +0000 |
commit | d4236574cfe4ec333d20e7a30f37e084168bb050 (patch) | |
tree | b546c61e62401eb4c95c3840ea72163dc2c5aa10 /include/core/SkCanvas.h | |
parent | a8b20d610c619942480896ca59a58192edb626de (diff) |
Prevent picture recording from over optimizing the culling of clips.
BUG=skia:1496
R=mtklein@google.com, reed@google.com, robertphillips@google.com
Review URL: https://codereview.chromium.org/22875008
git-svn-id: http://skia.googlecode.com/svn/trunk@10689 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 b4853f7f33..a368182cb4 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -239,6 +239,12 @@ public: operate on this copy. When the balancing call to restore() is made, the previous matrix, clip, and drawFilter are restored. + @param flags The flags govern what portion of the Matrix/Clip/drawFilter + state the save (and matching restore) effect. For example, + if only kMatrix is specified, then only the matrix state + will be pushed and popped. Likewise for the clip if kClip + is specified. However, the drawFilter is always affected + by calls to save/restore. @return The value to pass to restoreToCount() to balance this save() */ virtual int save(SaveFlags flags = kMatrixClip_SaveFlag); |