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:
Brian Salomon 2018-05-04 14:13:59 -04:00 committed by Skia Commit-Bot
parent 738b80d8a5
commit 4ede56b3a7
5 changed files with 0 additions and 7 deletions

View File

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

View File

@ -848,7 +848,6 @@ private:
SkMatrix invert;
if (fHelper.usesLocalCoords() && !fPaths.back().fViewMatrix.invert(&invert)) {
SkDebugf("Could not invert viewmatrix\n");
return;
}

View File

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

View File

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

View File

@ -297,7 +297,6 @@ private:
fInitialViewMatrix = viewMatrix;
if (!viewMatrix.invert(&fInitialViewMatrixInverse)) {
fInitialViewMatrixInverse = SkMatrix::I();
SkDebugf("Could not invert viewmatrix\n");
}
fInitialX = x;
fInitialY = y;