Index: tools/skpdiff/SkDiffContext.cpp |
diff --git a/tools/skpdiff/SkDiffContext.cpp b/tools/skpdiff/SkDiffContext.cpp |
index 2bd1694a08cf4a8fb0005ca8b9bc583e4e2aea67..a1cc665dc2a150870650c40c8952ee4ade9906b5 100644 |
--- a/tools/skpdiff/SkDiffContext.cpp |
+++ b/tools/skpdiff/SkDiffContext.cpp |
@@ -107,8 +107,8 @@ void SkDiffContext::addDiff(const char* baselinePath, const char* testPath) { |
diffData.fDiffName = differ->getName(); |
if (!differ->diff(&baselineBitmap, &testBitmap, alphaMaskPending, &diffData.fResult)) { |
- // if the diff failed the remove its entry from the list |
- newRecord->fDiffs.pop_back(); |
+ // if the diff failed record -1 as the result |
+ diffData.fResult = -1; |
continue; |
} |