Dump out more information if this assert fails.
BUG=skia:
R=caryclark@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/491903002
diff --git a/src/core/SkRecorder.cpp b/src/core/SkRecorder.cpp
index 1ee24ff..656cf91 100644
--- a/src/core/SkRecorder.cpp
+++ b/src/core/SkRecorder.cpp
@@ -244,7 +244,11 @@
}
void SkRecorder::didSetMatrix(const SkMatrix& matrix) {
- SkASSERT(matrix == this->getTotalMatrix());
+ SkDEBUGCODE(if (matrix != this->getTotalMatrix()) {
+ matrix.dump();
+ this->getTotalMatrix().dump();
+ SkASSERT(matrix == this->getTotalMatrix());
+ })
APPEND(SetMatrix, matrix);
}