Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index 0eb679adee27a9267db4e89e5429f00208ac3968..69044080b58d3cbdcfe71cbe598226a03c38f517 100644 |
--- a/dm/DM.cpp |
+++ b/dm/DM.cpp |
@@ -1248,6 +1248,8 @@ |
extern sk_sp<SkTypeface> (*gCreateTypefaceDelegate)(const char [], SkFontStyle ); |
+extern bool gDefaultProfileIsSRGB; |
+ |
int dm_main(); |
int dm_main() { |
setbuf(stdout, nullptr); |
@@ -1258,6 +1260,10 @@ |
} else if (!FLAGS_writePath.isEmpty()) { |
sk_mkdir(FLAGS_writePath[0]); |
gVLog = freopen(SkOSPath::Join(FLAGS_writePath[0], "verbose.log").c_str(), "w", stderr); |
+ } |
+ |
+ if (FLAGS_forceSRGB) { |
+ gDefaultProfileIsSRGB = true; |
} |
JsonWriter::DumpJson(); // It's handy for the bots to assume this is ~never missing. |