From 3f0451772109959fcb79bacf2c9a03e0eb39ff27 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Thu, 15 May 2014 15:10:48 +0000 Subject: render_pictures: add --mismatchPath flag When set, it will only write out images that don't match expectations. BUG=skia:1942 R=rmistry@google.com Author: epoger@google.com Review URL: https://codereview.chromium.org/283123002 git-svn-id: http://skia.googlecode.com/svn/trunk@14748 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tools/image_expectations.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tools/image_expectations.h') diff --git a/tools/image_expectations.h b/tools/image_expectations.h index 09a945a1b0..b7b135d912 100644 --- a/tools/image_expectations.h +++ b/tools/image_expectations.h @@ -90,11 +90,22 @@ namespace sk_tools { * @param sourceName name of the source file that generated this result * @param fileName relative path to the image output file on local disk * @param digest description of the image's contents - * @param tileNumber if not NULL, ptr to tile number + * @param tileNumber if not NULL, pointer to tile number */ void add(const char *sourceName, const char *fileName, const ImageDigest &digest, const int *tileNumber=NULL); + /** + * Returns true if this test result matches its expectations. + * If there are no expectations for this test result, this will return false. + * + * @param sourceName name of the source file that generated this result + * @param digest description of the image's contents + * @param tileNumber if not NULL, pointer to tile number + */ + bool matchesExpectation(const char *sourceName, const ImageDigest &digest, + const int *tileNumber=NULL); + /** * Writes the summary (as constructed so far) to a file. * -- cgit v1.2.3