Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: tools/viewer/Viewer.cpp

Issue 2003653002: Use SkASSERTResult to avoid unused local variables (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Name Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
}
}

Powered by Google App Engine
This is Rietveld 408576698