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

Unified Diff: android_webview/browser/scoped_app_gl_state_restore.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/aw_gl_surface.h ('k') | android_webview/browser/test/fake_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/scoped_app_gl_state_restore.cc
diff --git a/android_webview/browser/scoped_app_gl_state_restore.cc b/android_webview/browser/scoped_app_gl_state_restore.cc
index caa23879f6c312a918491831f80b095c83db1264..0c6867f3cbf5c21f05d9f1c3cae1ec3d67252cf0 100644
--- a/android_webview/browser/scoped_app_gl_state_restore.cc
+++ b/android_webview/browser/scoped_app_gl_state_restore.cc
@@ -11,6 +11,7 @@
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_surface_stub.h"
+#include "ui/gl/init/gl_factory.h"
namespace android_webview {
@@ -22,9 +23,9 @@ class AppContextSurface {
public:
AppContextSurface()
: surface(new gfx::GLSurfaceStub),
- context(gfx::GLContext::CreateGLContext(NULL,
- surface.get(),
- gfx::PreferDiscreteGpu)) {}
+ context(gl::init::CreateGLContext(nullptr,
+ surface.get(),
+ gfx::PreferDiscreteGpu)) {}
void MakeCurrent() { context->MakeCurrent(surface.get()); }
private:
« no previous file with comments | « android_webview/browser/aw_gl_surface.h ('k') | android_webview/browser/test/fake_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698