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

Unified Diff: dm/DM.cpp

Issue 1846603002: Enable gpusrgb config on bots. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: re-generate json Created 4 years, 9 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 | src/gpu/GrContextFactory.h » ('j') | tools/dm_flags.json » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 34f8a961e3f4c503182c95e49e2efad9bfaa2d40..d93cd2977e2ae65bee965187b6acbf70262fe153 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -819,6 +819,11 @@ static Sink* create_sink(const SkCommandLineConfig* config) {
contextOptions = static_cast<GrContextFactory::GLContextOptions>(
contextOptions | GrContextFactory::kEnableNVPR_GLContextOptions);
}
+ if (kSRGB_SkColorProfileType == gpuConfig->getProfileType() ||
+ kRGBA_F16_SkColorType == gpuConfig->getColorType()) {
+ contextOptions = static_cast<GrContextFactory::GLContextOptions>(
+ contextOptions | GrContextFactory::kRequireSRGBSupport_GLContextOptions);
+ }
GrContextFactory testFactory;
if (!testFactory.get(contextType, contextOptions)) {
info("WARNING: can not create GPU context for config '%s'. "
« no previous file with comments | « no previous file | src/gpu/GrContextFactory.h » ('j') | tools/dm_flags.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698