Index: bench/nanobench.cpp |
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp |
index cb28231adb367959a6fe164a54ffa9e812490b72..94402cc770488c7c5c34f7bf207d81ddda7b579a 100644 |
--- a/bench/nanobench.cpp |
+++ b/bench/nanobench.cpp |
@@ -1025,6 +1025,8 @@ |
intentionallyLeaked->start(); |
} |
+extern bool gDefaultProfileIsSRGB; |
+ |
int nanobench_main(); |
int nanobench_main() { |
SetupCrashHandler(); |
@@ -1035,6 +1037,10 @@ |
GrContextOptions grContextOpts; |
gGrFactory.reset(new GrContextFactory(grContextOpts)); |
#endif |
+ |
+ if (FLAGS_forceSRGB) { |
+ gDefaultProfileIsSRGB = true; |
+ } |
if (FLAGS_veryVerbose) { |
FLAGS_verbose = true; |