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
This commit is contained in:
mtklein 2014-08-20 09:22:28 -07:00 committed by Commit bot
parent a38acc74bb
commit ec924b9696

View File

@ -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);
}