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

Unified Diff: ui/gl/test/gl_surface_test_support.cc

Issue 2024953002: Move GL one-off initialization code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split_x11
Patch Set: Delete GLInitializer class. Created 4 years, 6 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/init/gl_initializer_x11.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/test/gl_surface_test_support.cc
diff --git a/ui/gl/test/gl_surface_test_support.cc b/ui/gl/test/gl_surface_test_support.cc
index db3483da3590c12534076e67729b4bc7cede13ea..d868715427b7a19de4608feb7a3fc4db1eadfc1a 100644
--- a/ui/gl/test/gl_surface_test_support.cc
+++ b/ui/gl/test/gl_surface_test_support.cc
@@ -4,13 +4,15 @@
#include "ui/gl/test/gl_surface_test_support.h"
+#include <vector>
+
#include "base/command_line.h"
#include "base/logging.h"
#include "build/build_config.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_implementation.h"
-#include "ui/gl/gl_surface.h"
#include "ui/gl/gl_switches.h"
+#include "ui/gl/init/gl_factory.h"
#if defined(USE_X11)
#include <X11/Xlib.h>
@@ -57,7 +59,7 @@ void GLSurfaceTestSupport::InitializeOneOff() {
bool gpu_service_logging = false;
bool disable_gl_drawing = true;
- CHECK(GLSurface::InitializeOneOffImplementation(
+ CHECK(init::InitializeGLOneOffImplementation(
impl, fallback_to_osmesa, gpu_service_logging, disable_gl_drawing));
}
@@ -75,7 +77,7 @@ void GLSurfaceTestSupport::InitializeOneOffImplementation(
bool gpu_service_logging = false;
bool disable_gl_drawing = false;
- CHECK(GLSurface::InitializeOneOffImplementation(
+ CHECK(init::InitializeGLOneOffImplementation(
impl, fallback_to_osmesa, gpu_service_logging, disable_gl_drawing));
}
« no previous file with comments | « ui/gl/init/gl_initializer_x11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698