aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureStateTree.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkPictureStateTree.h')
-rw-r--r--src/core/SkPictureStateTree.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/SkPictureStateTree.h b/src/core/SkPictureStateTree.h
index 995f3f72ae..8ce3050a91 100644
--- a/src/core/SkPictureStateTree.h
+++ b/src/core/SkPictureStateTree.h
@@ -74,20 +74,22 @@ public:
Iterator(const SkTDArray<void*>& draws, SkCanvas* canvas, Node* root);
// The draws this iterator is associated with
const SkTDArray<void*>& fDraws;
- // The matrix of the canvas we're playing back into
- const SkMatrix fPlaybackMatrix;
+
+ // canvas this is playing into (so we can insert saves/restores as necessary)
+ SkCanvas* fCanvas;
// current state node
Node* fCurrentNode;
// List of nodes whose state we need to apply to reach TargetNode
SkTDArray<Node*> fNodes;
+
+ // The matrix of the canvas we're playing back into
+ const SkMatrix fPlaybackMatrix;
+
// Cache of current matrix, so we can avoid redundantly setting it
SkMatrix* fCurrentMatrix;
- // canvas this is playing into (so we can insert saves/restores as necessary)
- SkCanvas* fCanvas;
-
// current position in the array of draws
int fPlaybackIndex;
// Whether or not we need to do a save next iteration