Index: src/core/SkRecorder.cpp |
diff --git a/src/core/SkRecorder.cpp b/src/core/SkRecorder.cpp |
index 327a97acdbe3316b227cfe77b5a803ed3c57d1ff..53522c2110bec734e1add7a7ccb602d89e715591 100644 |
--- a/src/core/SkRecorder.cpp |
+++ b/src/core/SkRecorder.cpp |
@@ -229,9 +229,9 @@ SkCanvas::SaveLayerStrategy SkRecorder::willSaveLayer(const SkRect* bounds, |
return SkCanvas::kNoLayer_SaveLayerStrategy; |
} |
-void SkRecorder::willRestore() { |
- APPEND(Restore); |
- INHERITED(willRestore); |
+void SkRecorder::didRestore() { |
+ APPEND(Restore, this->getTotalMatrix()); |
+ INHERITED(didRestore); |
} |
void SkRecorder::onPushCull(const SkRect& rect) { |
@@ -248,6 +248,7 @@ void SkRecorder::didConcat(const SkMatrix& matrix) { |
} |
void SkRecorder::didSetMatrix(const SkMatrix& matrix) { |
+ SkASSERT(matrix == this->getTotalMatrix()); |
APPEND(SetMatrix, matrix); |
INHERITED(didSetMatrix, matrix); |
} |