diff options
author | 2014-05-15 15:10:48 +0000 | |
---|---|---|
committer | 2014-05-15 15:10:48 +0000 | |
commit | 3f0451772109959fcb79bacf2c9a03e0eb39ff27 (patch) | |
tree | 19e1b86cc9824172c7f1c422591cc51314203fdb /tools/image_expectations.h | |
parent | 76ac7f81d39a99616541ead9c40aa6d208b517af (diff) |
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
Diffstat (limited to 'tools/image_expectations.h')
-rw-r--r-- | tools/image_expectations.h | 13 |
1 files changed, 12 insertions, 1 deletions
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,12 +90,23 @@ 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. * * @param filename path to write the summary to |