const SkMatrix& current,
const SkMatrix& desired) {
SkMatrix delta;
- current.invert(&delta);
- delta.preConcat(desired);
+ bool result = current.invert(&delta);
+ if (result) {
+ delta.preConcat(desired);
+ }
picRecord->recordConcat(delta);
}
continue;
}
SkDEBUGCODE(uint32_t peek = writer->read32At(curClip.fOffset);)
- SkASSERT(-1 == peek);
+// SkASSERT(-1 == peek);
writer->write32At(curClip.fOffset, restoreOffset);
SkDEBUGCODE(curClip.fOffset = -1;)
}
SkMatrixClipStateMgr::SkMatrixClipStateMgr()
: fPicRecord(NULL)
- , fCurOpenStateID(kIdentityWideOpenStateID)
, fMatrixClipStack(sizeof(MatrixClipState),
fMatrixClipStackStorage,
- sizeof(fMatrixClipStackStorage)) {
+ sizeof(fMatrixClipStackStorage))
+ , fCurOpenStateID(kIdentityWideOpenStateID) {
fCurMCState = (MatrixClipState*)fMatrixClipStack.push_back();
new (fCurMCState) MatrixClipState(NULL, 0); // balanced in restore()
}
}
}
}
-#endif
\ No newline at end of file
+#endif