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

Unified Diff: gm/gmmain.cpp

Issue 15014011: GM: include filename extension (.png) of each output file in JSON summary (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: add_file_extension_to_json Created 7 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: gm/gmmain.cpp
===================================================================
--- gm/gmmain.cpp (revision 9067)
+++ gm/gmmain.cpp (working copy)
@@ -727,6 +727,7 @@
}
SkString completeNameString = baseNameString;
completeNameString.append(renderModeDescriptor);
+ completeNameString.append(".png");
const char* completeName = completeNameString.c_str();
if (expectations.empty()) {
@@ -865,7 +866,9 @@
if (!SkBitmapHasher::ComputeDigest(actualBitmap, &actualBitmapHash)) {
actualBitmapHash = 0;
}
- add_actual_results_to_json_summary(name.c_str(), actualBitmapHash,
+ SkString nameWithExtension(name);
+ nameWithExtension.append(".png");
+ add_actual_results_to_json_summary(nameWithExtension.c_str(), actualBitmapHash,
ErrorCombination(kMissingExpectations_ErrorType),
false);
RecordTestResults(ErrorCombination(kMissingExpectations_ErrorType), name, "");

Powered by Google App Engine
This is Rietveld 408576698