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
This commit is contained in:
fmalita@google.com 2014-04-25 15:37:00 +00:00
parent 98c4e5229c
commit 270d44567b

View File

@ -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;
}