diff options
author | 2014-08-20 09:22:28 -0700 | |
---|---|---|
committer | 2014-08-20 09:22:28 -0700 | |
commit | ec924b9696277df4c684e73315194482e1d43e50 (patch) | |
tree | 218b9b88ad96174fa80ea18978460f65265a704e /src/core/SkRecorder.cpp | |
parent | a38acc74bba8a591dcdf0ef28a63175f6086214d (diff) |
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
Diffstat (limited to 'src/core/SkRecorder.cpp')
-rw-r--r-- | src/core/SkRecorder.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/SkRecorder.cpp b/src/core/SkRecorder.cpp index 1ee24fff56..656cf91eb8 100644 --- a/src/core/SkRecorder.cpp +++ b/src/core/SkRecorder.cpp @@ -244,7 +244,11 @@ void SkRecorder::didConcat(const SkMatrix& matrix) { } 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); } |