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-05-14 15:17:46 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-14 15:17:46 +0000
commitce057fec926f8ec1d60ed4722d1e51a0086e7976 (patch)
tree4f9ec5e0dd491bce66cc1dcb29b257b6a676ab71 /gm/gm_expectations.h
parent7d9ffc8a04533d0207efe5511b587e89ecb9d898 (diff)
GM: include filename extension (.png) of each output file in JSON summary
Doing this so that, once we *do* start writing PDF checksums into the JSON summary, we'll be able to distinguish those from the PNG checksums. Otherwise, we could have naming collisions. R=scroggo@google.com Review URL: https://codereview.chromium.org/14890017 git-svn-id: http://skia.googlecode.com/svn/trunk@9119 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/gm_expectations.h')
-rw-r--r--gm/gm_expectations.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gm/gm_expectations.h b/gm/gm_expectations.h
index 0af18c1570..9fca33bde4 100644
--- a/gm/gm_expectations.h
+++ b/gm/gm_expectations.h
@@ -41,6 +41,16 @@ namespace skiagm {
void gm_fprintf(FILE *stream, const char format[], ...);
+ /**
+ * Assembles rootPath and relativePath into a single path, like this:
+ * rootPath/relativePath
+ *
+ * Uses SkPATH_SEPARATOR, to work on all platforms.
+ *
+ * TODO(epoger): This should probably move into SkOSFile.h
+ */
+ SkString SkPathJoin(const char *rootPath, const char *relativePath);
+
SkString make_filename(const char path[],
const char renderModeDescriptor[],
const char *name,