| Index: ui/gl/gl_surface.cc
|
| diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
|
| index 4e74f49edd68ca15db7fa654e8587e97aa8b1a29..92b2b45ce234cf700007f3276b1d12c54556c735 100644
|
| --- a/ui/gl/gl_surface.cc
|
| +++ b/ui/gl/gl_surface.cc
|
| @@ -42,7 +42,9 @@ bool GLSurface::InitializeOneOff() {
|
| // The default implementation is always the first one in list.
|
| GLImplementation impl = allowed_impls[0];
|
| bool fallback_to_osmesa = false;
|
| - if (cmd->HasSwitch(switches::kUseGL)) {
|
| + if (cmd->HasSwitch(switches::kOverrideUseGLWithOSMesaForTests)) {
|
| + impl = kGLImplementationOSMesaGL;
|
| + } else if (cmd->HasSwitch(switches::kUseGL)) {
|
| std::string requested_implementation_name =
|
| cmd->GetSwitchValueASCII(switches::kUseGL);
|
| if (requested_implementation_name == "any") {
|
|
|