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

Unified Diff: ui/gl/gl_surface.cc

Issue 120313002: Use stub GL draw/clear calls for browser tests that do not need pixels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « ui/gl/gl_implementation.cc ('k') | ui/gl/gl_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « ui/gl/gl_implementation.cc ('k') | ui/gl/gl_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698