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

Unified Diff: android_webview/browser/scoped_app_gl_state_restore.cc

Issue 2480373002: Refactor context creation parameters into a struct. (Closed)
Patch Set: address piman's comments Created 4 years, 1 month 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
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 42fbb7e9776d8d5509552766887fcb0b9fffe8b0..9b35faf0e7b664179fbba65d77a9d0a87666cc08 100644
--- a/android_webview/browser/scoped_app_gl_state_restore.cc
+++ b/android_webview/browser/scoped_app_gl_state_restore.cc
@@ -25,7 +25,7 @@ class AppContextSurface {
: surface(new gl::GLSurfaceStub),
context(gl::init::CreateGLContext(nullptr,
surface.get(),
- gl::PreferDiscreteGpu)) {}
+ gl::GLContextAttribs())) {}
Torne 2016/11/08 14:34:29 If I'm reading correctly the default is PreferInte
Geoff Lang 2016/11/08 14:44:01 Yes, piman suggested it because Android doesn't ha
void MakeCurrent() { context->MakeCurrent(surface.get()); }
private:
« no previous file with comments | « no previous file | android_webview/browser/test/fake_window.cc » ('j') | android_webview/browser/test/fake_window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698