From 270d44567b06b0f28640dfd9bc6bca3f8d3f2779 Mon Sep 17 00:00:00 2001 From: "fmalita@google.com" Date: Fri, 25 Apr 2014 15:37:00 +0000 Subject: [PATCH] Re-add SkPictureStateTree::Iterator::draw() SaveFlags. This is a SkPictureStateTree-only revert of r14253. https://codereview.chromium.org/241453003 (It introduced ChromeOS regressions and the later r14319 fix got reverted for different reasons). R=bsalomon@google.com Review URL: https://codereview.chromium.org/250803006 git-svn-id: http://skia.googlecode.com/svn/trunk@14384 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkPictureStateTree.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/SkPictureStateTree.cpp b/src/core/SkPictureStateTree.cpp index 891d04ca21..21ae3cb9f0 100644 --- a/src/core/SkPictureStateTree.cpp +++ b/src/core/SkPictureStateTree.cpp @@ -124,7 +124,10 @@ uint32_t SkPictureStateTree::Iterator::draw() { Node* targetNode = draw->fNode; if (fSave) { - fCanvas->save(); + // 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); fSave = false; }