Index: src/utils/debugger/SkDrawCommand.cpp |
diff --git a/src/utils/debugger/SkDrawCommand.cpp b/src/utils/debugger/SkDrawCommand.cpp |
index 0da8f98954b295bad1a36ccc5de8ed681d979b7f..93c436df6494cf4a0127b0e0ed1a73a47838769e 100644 |
--- a/src/utils/debugger/SkDrawCommand.cpp |
+++ b/src/utils/debugger/SkDrawCommand.cpp |
@@ -964,13 +964,19 @@ void SkScaleCommand::execute(SkCanvas* canvas) { |
SkSetMatrixCommand::SkSetMatrixCommand(const SkMatrix& matrix) |
: INHERITED(SET_MATRIX) { |
+ fUserMatrix.reset(); |
fMatrix = matrix; |
fInfo.push(SkObjectParser::MatrixToString(matrix)); |
} |
+void SkSetMatrixCommand::setUserMatrix(const SkMatrix& userMatrix) { |
+ fUserMatrix = userMatrix; |
+} |
+ |
void SkSetMatrixCommand::execute(SkCanvas* canvas) { |
- canvas->setMatrix(fMatrix); |
+ SkMatrix temp = SkMatrix::Concat(fUserMatrix, fMatrix); |
+ canvas->setMatrix(temp); |
} |
SkSkewCommand::SkSkewCommand(SkScalar sx, SkScalar sy) |