Index: ui/gl/gl_surface.cc |
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc |
index f09aa35924daf21f1ab19a5eb57ba463eb8e011c..9552071e793ac43f0cbcfa872987ecf5e45d3581 100644 |
--- a/ui/gl/gl_surface.cc |
+++ b/ui/gl/gl_surface.cc |
@@ -69,6 +69,9 @@ bool GLSurface::InitializeOneOff() { |
if (CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableGPUServiceLogging)) |
InitializeDebugGLBindings(); |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kDisableGLDrawingForTests)) |
+ InitializeStubGLBindings(); |
no sievers
2013/12/20 23:27:58
The only caveat with that is that it would potenti
danakj
2013/12/20 23:29:38
Ya, I noticed for the debug bindings, the generate
|
} |
return initialized; |
} |