summaryrefslogtreecommitdiffstats
path: root/ui/gl
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gl')
-rw-r--r--ui/gl/gl_surface.cc6
-rw-r--r--ui/gl/gl_surface.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index ae324b1..5d35b33 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(bool disable_drawing) {
+void GLSurface::InitializeOneOffForTests() {
DCHECK_EQ(kGLImplementationNone, GetGLImplementation());
#if defined(USE_X11)
@@ -127,9 +127,7 @@ void GLSurface::InitializeOneOffForTests(bool disable_drawing) {
bool fallback_to_osmesa = false;
bool gpu_service_logging = false;
- bool disable_gl_drawing = disable_drawing;
- // TODO(danakj): Unit tests do not produce pixel output by default.
- // bool disable_gl_drawing = true;
+ bool disable_gl_drawing = true;
CHECK(InitializeOneOffImplementation(
impl, fallback_to_osmesa, gpu_service_logging, disable_gl_drawing));
diff --git a/ui/gl/gl_surface.h b/ui/gl/gl_surface.h
index e8ef8dd..f7a02f0 100644
--- a/ui/gl/gl_surface.h
+++ b/ui/gl/gl_surface.h
@@ -75,8 +75,7 @@ class GL_EXPORT GLSurface : public base::RefCounted<GLSurface> {
// Unit tests should call these instead of InitializeOneOff() to set up
// GL bindings appropriate for tests.
- // TODO(danakj): Once all callers pass true, remove the argument.
- static void InitializeOneOffForTests(bool disable_drawing = false);
+ static void InitializeOneOffForTests();
static void InitializeOneOffWithMockBindingsForTests();
static void InitializeDynamicMockBindingsForTests(GLContext* context);