Index: android_webview/browser/test/fake_window.cc |
diff --git a/android_webview/browser/test/fake_window.cc b/android_webview/browser/test/fake_window.cc |
index a13be3376b1fe87673cca7bcb4fdac93a4cee3a9..916c5451e26e798e8c2c4f57041d9b576f6e380d 100644 |
--- a/android_webview/browser/test/fake_window.cc |
+++ b/android_webview/browser/test/fake_window.cc |
@@ -12,6 +12,7 @@ |
#include "base/thread_task_runner_handle.h" |
#include "base/threading/thread.h" |
#include "ui/gl/gl_bindings.h" |
+#include "ui/gl/init/gl_factory.h" |
namespace android_webview { |
@@ -192,11 +193,11 @@ void FakeWindow::CreateRenderThreadIfNeeded() { |
void FakeWindow::InitializeOnRT(base::WaitableEvent* sync) { |
CheckCurrentlyOnRT(); |
- surface_ = gfx::GLSurface::CreateOffscreenGLSurface(surface_size_); |
+ surface_ = gl::init::CreateOffscreenGLSurface(surface_size_); |
DCHECK(surface_); |
DCHECK(surface_->GetHandle()); |
- context_ = gfx::GLContext::CreateGLContext(nullptr, surface_.get(), |
- gfx::PreferDiscreteGpu); |
+ context_ = gl::init::CreateGLContext(nullptr, surface_.get(), |
+ gfx::PreferDiscreteGpu); |
DCHECK(context_); |
sync->Signal(); |
} |