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

Unified Diff: src/gpu/GrContextFactory.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
Index: src/gpu/GrContextFactory.cpp
diff --git a/src/gpu/GrContextFactory.cpp b/src/gpu/GrContextFactory.cpp
index 00ae1226e8441c5885619b1b6b1c19a6df2bfb19..465c91076448d902128fde8c2f50f727c4c0e3b8 100755
--- a/src/gpu/GrContextFactory.cpp
+++ b/src/gpu/GrContextFactory.cpp
@@ -148,6 +148,11 @@ GrContextFactory::ContextInfo GrContextFactory::getContextInfo(GLContextType typ
return ContextInfo();
}
}
+ if (kRequireSRGBSupport_GLContextOptions & options) {
+ if (!grCtx->caps()->srgbSupport()) {
+ return ContextInfo();
+ }
+ }
Context& context = fContexts.push_back();
context.fGLContext = glCtx.release();
« no previous file with comments | « src/gpu/GrContextFactory.h ('k') | tests/GrContextFactoryTest.cpp » ('j') | tools/dm_flags.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698