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: |