Index: tools/viewer/Viewer.cpp |
diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp |
index a0b2a2abe3ca53505895be1c8a7969fd526d0226..c4b8b26dc51e3fda5a43a66962f5dba0a397de0d 100644 |
--- a/tools/viewer/Viewer.cpp |
+++ b/tools/viewer/Viewer.cpp |
@@ -223,8 +223,7 @@ void Viewer::setupCurrentSlide(int previousSlide) { |
const SkRect slideBounds = SkRect::MakeIWH(slideSize.width(), slideSize.height()); |
if (contentRect.width() > 0 && contentRect.height() > 0) { |
fDefaultMatrix.setRectToRect(slideBounds, contentRect, SkMatrix::kStart_ScaleToFit); |
- bool inverted = fDefaultMatrix.invert(&fDefaultMatrixInv); |
- SkASSERT(inverted); |
+ SkAssertResult(fDefaultMatrix.invert(&fDefaultMatrixInv)); |
} |
} |