Index: src/core/SkPictureStateTree.cpp |
diff --git a/src/core/SkPictureStateTree.cpp b/src/core/SkPictureStateTree.cpp |
index 26cc391bfdf0c4d00ca89098c37eb7823c644f96..89942c71bb5d2b99db21e2322a1070e50763bc16 100644 |
--- a/src/core/SkPictureStateTree.cpp |
+++ b/src/core/SkPictureStateTree.cpp |
@@ -103,6 +103,7 @@ uint32_t SkPictureStateTree::Iterator::draw() { |
SkASSERT(this->isValid()); |
if (fPlaybackIndex >= fDraws->count()) { |
// restore back to where we started |
+ fCanvas->setMatrix(fPlaybackMatrix); |
if (fCurrentNode->fFlags & Node::kSaveLayer_Flag) { fCanvas->restore(); } |
fCurrentNode = fCurrentNode->fParent; |
while (NULL != fCurrentNode) { |
@@ -110,7 +111,6 @@ uint32_t SkPictureStateTree::Iterator::draw() { |
if (fCurrentNode->fFlags & Node::kSaveLayer_Flag) { fCanvas->restore(); } |
fCurrentNode = fCurrentNode->fParent; |
} |
- fCanvas->setMatrix(fPlaybackMatrix); |
return kDrawComplete; |
} |