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

Unified Diff: ui/gl/init/gl_factory.cc

Issue 2680423002: Introducing 2 usages for SwiftShader (Closed)
Patch Set: Added missing change to GpuDataManagerImplPrivate Created 3 years, 10 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: ui/gl/init/gl_factory.cc
diff --git a/ui/gl/init/gl_factory.cc b/ui/gl/init/gl_factory.cc
index dff751b2c798da1c1717eadfb2d693a6b3a51337..376ab44952cc30137ecf5865aef88e6921eef7f3 100644
--- a/ui/gl/init/gl_factory.cc
+++ b/ui/gl/init/gl_factory.cc
@@ -38,7 +38,10 @@ bool InitializeGLOneOff() {
if (requested_implementation_name == "any") {
fallback_to_osmesa = true;
} else if (requested_implementation_name ==
- kGLImplementationSwiftShaderName ||
+ kGLImplementationSwiftShaderName) {
+ impl = kGLImplementationSwiftShaderGL;
+ } else if (requested_implementation_name ==
+ kGLImplementationSwiftShaderForWebGLName ||
requested_implementation_name == kGLImplementationANGLEName) {
impl = kGLImplementationEGLGLES2;
} else {

Powered by Google App Engine
This is Rietveld 408576698