Remove could not invert matrix SkDebugfs
Change-Id: I547513b816bdbf58e7628ae3d50c2597b173537f Reviewed-on: https://skia-review.googlesource.com/126080 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
parent
738b80d8a5
commit
4ede56b3a7
@ -389,14 +389,12 @@ void GrRenderTargetContext::drawPaint(const GrClip& clip,
|
||||
// produce a correct result for some perspective matrices.
|
||||
if (!isPerspective) {
|
||||
if (!SkMatrixPriv::InverseMapRect(viewMatrix, &r, r)) {
|
||||
SkDebugf("Could not invert matrix\n");
|
||||
return;
|
||||
}
|
||||
this->drawRect(clip, std::move(paint), GrAA::kNo, viewMatrix, r);
|
||||
} else {
|
||||
SkMatrix localMatrix;
|
||||
if (!viewMatrix.invert(&localMatrix)) {
|
||||
SkDebugf("Could not invert matrix\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -848,7 +848,6 @@ private:
|
||||
|
||||
SkMatrix invert;
|
||||
if (fHelper.usesLocalCoords() && !fPaths.back().fViewMatrix.invert(&invert)) {
|
||||
SkDebugf("Could not invert viewmatrix\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -220,7 +220,6 @@ void GrAtlasTextOp::onPrepareDraws(Target* target) {
|
||||
// TODO actually only invert if we don't have RGBA
|
||||
SkMatrix localMatrix;
|
||||
if (this->usesLocalCoords() && !fGeoData[0].fViewMatrix.invert(&localMatrix)) {
|
||||
SkDebugf("Cannot invert viewmatrix\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -322,7 +322,6 @@ private:
|
||||
matrix = &ctm;
|
||||
} else if (fHelper.usesLocalCoords()) {
|
||||
if (!ctm.invert(&invert)) {
|
||||
SkDebugf("Could not invert viewmatrix\n");
|
||||
return;
|
||||
}
|
||||
matrix = &invert;
|
||||
@ -336,7 +335,6 @@ private:
|
||||
SkMatrix invert;
|
||||
if (fHelper.usesLocalCoords()) {
|
||||
if (!ctm.invert(&invert)) {
|
||||
SkDebugf("Could not invert viewmatrix\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -297,7 +297,6 @@ private:
|
||||
fInitialViewMatrix = viewMatrix;
|
||||
if (!viewMatrix.invert(&fInitialViewMatrixInverse)) {
|
||||
fInitialViewMatrixInverse = SkMatrix::I();
|
||||
SkDebugf("Could not invert viewmatrix\n");
|
||||
}
|
||||
fInitialX = x;
|
||||
fInitialY = y;
|
||||
|
Loading…
Reference in New Issue
Block a user