Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3178)

Unified Diff: bench/nanobench.cpp

Issue 2074103004: Revert of More removal of SkColorProfileType... (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dm/DM.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | dm/DM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698