aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureStateTree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkPictureStateTree.cpp')
-rw-r--r--src/core/SkPictureStateTree.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/SkPictureStateTree.cpp b/src/core/SkPictureStateTree.cpp
index ca3032df4f..891d04ca21 100644
--- a/src/core/SkPictureStateTree.cpp
+++ b/src/core/SkPictureStateTree.cpp
@@ -124,7 +124,7 @@ uint32_t SkPictureStateTree::Iterator::draw() {
Node* targetNode = draw->fNode;
if (fSave) {
- fCanvas->save(SkCanvas::kClip_SaveFlag);
+ fCanvas->save();
fSave = false;
}
@@ -162,6 +162,9 @@ uint32_t SkPictureStateTree::Iterator::draw() {
fCanvas->restore();
}
if (targetNode != ancestor) {
+ // FIXME: the save below depends on soon-to-be-deprecated
+ // SaveFlags behavior: it relies on matrix changes persisting
+ // after restore.
fCanvas->save(SkCanvas::kClip_SaveFlag);
}
}