aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gm_expectations.h
diff options
context:
space:
mode:
authorGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-10 18:46:25 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-10 18:46:25 +0000
commitb0f8b430de74a51f35dbfbff5284a04f8d70ec48 (patch)
treef1f1aa3167fd2171516981dcd09f42ddcd88e4f2 /gm/gm_expectations.h
parent7a90daf25878a7459ba9fbda581bb97cda034f02 (diff)
GM: remove enableMissingWarning in favor of verbose flag, and trim output in nonverbose mode
Review URL: https://codereview.chromium.org/14080003 git-svn-id: http://skia.googlecode.com/svn/trunk@8600 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/gm_expectations.h')
-rw-r--r--gm/gm_expectations.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/gm/gm_expectations.h b/gm/gm_expectations.h
index 2efdd4b043..3d3f2b55fa 100644
--- a/gm/gm_expectations.h
+++ b/gm/gm_expectations.h
@@ -225,12 +225,8 @@ namespace skiagm {
*
* rootDir: directory under which to look for image files
* (this string will be copied to storage within this object)
- * notifyOfMissingFiles: whether to log a message to stderr if an image
- * file cannot be found
*/
- IndividualImageExpectationsSource(const char *rootDir,
- bool notifyOfMissingFiles) :
- fRootDir(rootDir), fNotifyOfMissingFiles(notifyOfMissingFiles) {}
+ IndividualImageExpectationsSource(const char *rootDir) : fRootDir(rootDir) {}
Expectations get(const char *testName) SK_OVERRIDE {
SkString path = make_filename(fRootDir.c_str(), "", testName,
@@ -244,16 +240,12 @@ namespace skiagm {
if (decodedReferenceBitmap) {
return Expectations(referenceBitmap);
} else {
- if (fNotifyOfMissingFiles) {
- gm_fprintf(stderr, "FAILED to read %s\n", path.c_str());
- }
return Expectations();
}
}
private:
const SkString fRootDir;
- const bool fNotifyOfMissingFiles;
};
/**