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

Unified Diff: android_webview/browser/test/fake_window.cc

Issue 1920163005: Split //ui/gl into //ui/gl + //ui/gi/init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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 | « android_webview/browser/scoped_app_gl_state_restore.cc ('k') | blimp/client/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3319db1f736224258c827e614cc79815089efcc6..4b63f741579de4349e7b5beff962510c8b15abdf 100644
--- a/android_webview/browser/test/fake_window.cc
+++ b/android_webview/browser/test/fake_window.cc
@@ -12,6 +12,7 @@
#include "base/threading/thread.h"
#include "base/threading/thread_task_runner_handle.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();
}
« no previous file with comments | « android_webview/browser/scoped_app_gl_state_restore.cc ('k') | blimp/client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698