Index: tools/render_pictures_main.cpp |
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp |
index e62c3bce77c4412810ae1ee60c87cbfa37cf5077..595a78ee8cba820031687c67fbad977c6145f2a1 100644 |
--- a/tools/render_pictures_main.cpp |
+++ b/tools/render_pictures_main.cpp |
@@ -366,7 +366,7 @@ static bool render_picture(const SkString& inputPath, const SkString* writePath, |
sk_tools::ImageDigest imageDigest(*bitmap); |
jsonSummaryPtr->add(inputFilename.c_str(), outputFilename.c_str(), imageDigest); |
if ((NULL != mismatchPath) && !mismatchPath->isEmpty() && |
- !jsonSummaryPtr->matchesExpectation(inputFilename.c_str(), imageDigest)) { |
+ !jsonSummaryPtr->getExpectation(inputFilename.c_str()).matches(imageDigest)) { |
success &= sk_tools::write_bitmap_to_disk(*bitmap, *mismatchPath, NULL, |
outputFilename); |
} |