SkQP: Fix report

Change-Id: I210f71444d4a567dc888c6b9dc136b70642a7a92
Reviewed-on: https://skia-review.googlesource.com/c/196508
Reviewed-by: Hal Canary <halcanary@google.com>
(cherry picked from commit 10783761fe46b1b4c7d7098b5abf49923c820ee8)
Reviewed-on: https://skia-review.googlesource.com/c/196646
Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
Hal Canary 2019-03-01 10:57:04 -05:00 committed by Skia Commit-Bot
parent 656281b793
commit 44861f94c9

View File

@ -456,7 +456,7 @@ void SkQP::makeReport() {
}
const char* backendName = SkQP::GetBackendName(run.fBackend);
std::string gmName = SkQP::GetGMName(run.fGM);
SkQP::RenderOutcome outcome;
const SkQP::RenderOutcome& outcome = run.fOutcome;
auto str = SkStringPrintf("\"%s\",\"%s\",%d,%d,%" PRId64, backendName, gmName.c_str(),
outcome.fMaxError, outcome.fBadPixelCount, outcome.fTotalError);
write(&csvOut, SkStringPrintf("%s\n", str.c_str()));