DEFINE_string(benchType, "",
"Apply usual --match rules to bench type: micro, recording, playback, skcodec, etc.");
+DEFINE_bool(forceSRGB, false, "Force SRGB for imageinfos");
+
static double now_ms() { return SkTime::GetNSecs() * 1e-6; }
static SkString humanize(double ms) {
intentionallyLeaked->start();
}
+extern bool gDefaultProfileIsSRGB;
+
int nanobench_main();
int nanobench_main() {
SetupCrashHandler();
gGrFactory.reset(new GrContextFactory(grContextOpts));
#endif
+ if (FLAGS_forceSRGB) {
+ gDefaultProfileIsSRGB = true;
+ }
+
if (FLAGS_veryVerbose) {
FLAGS_verbose = true;
}