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

Unified Diff: tools/PictureRenderer.cpp

Issue 196823004: Silence warning after f5e315ccf1a. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Drop unrelated changes. Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/PictureRenderer.cpp
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp
index f62a05d846df9a2dd3882e81090d2e7ad5064d43..9cb43f73d4c413bfdadc1129854a6c3c67da60fb 100644
--- a/tools/PictureRenderer.cpp
+++ b/tools/PictureRenderer.cpp
@@ -347,10 +347,10 @@ static bool write(SkCanvas* canvas, const SkString& outputDir, const SkString& i
// we could combine results of different config types without conflicting filenames.
if (NULL != jsonSummaryPtr) {
- if (!generatedHash) {
- SkAssertResult(SkBitmapHasher::ComputeDigest(bitmap, &hash));
- generatedHash = true;
- }
+ SkASSERT(!generatedHash);
+ SkAssertResult(SkBitmapHasher::ComputeDigest(bitmap, &hash));
+ generatedHash = true;
+
jsonSummaryPtr->add(outputFilename.c_str(), hash);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698