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:
parent
a38acc74bb
commit
ec924b9696
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user