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

Unified Diff: ui/gl/gl_surface.cc

Issue 175093004: ui: Allow individual test suites to opt-out of the TestCompositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nulldrawdisable: ui:: Created 6 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
« no previous file with comments | « ui/gl/gl_surface.h ('k') | no next file » | 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 c08da8c3462e37875f7532b7deb351d9839bb27e..b58fc13b02b3eb416edb10baea3b59d796813605 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -95,7 +95,7 @@ bool GLSurface::InitializeOneOffImplementation(GLImplementation impl,
}
// static
-void GLSurface::InitializeOneOffForTests() {
+void GLSurface::InitializeOneOffForTests(bool disable_drawing) {
#if defined(USE_X11)
XInitThreads();
#endif
@@ -125,7 +125,7 @@ void GLSurface::InitializeOneOffForTests() {
bool fallback_to_osmesa = false;
bool gpu_service_logging = false;
- bool disable_gl_drawing = false;
+ bool disable_gl_drawing = disable_drawing;
// TODO(danakj): Unit tests do not produce pixel output by default.
// bool disable_gl_drawing = true;
« no previous file with comments | « ui/gl/gl_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698