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

Unified Diff: android_webview/browser/test/fake_window.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/test/fake_window.cc
diff --git a/android_webview/browser/test/fake_window.cc b/android_webview/browser/test/fake_window.cc
index cd47a3c93e4beef8ec747100e7afcf5b04688a0c..411ee217352a1235a529a24663e0104da913147c 100644
--- a/android_webview/browser/test/fake_window.cc
+++ b/android_webview/browser/test/fake_window.cc
@@ -189,8 +189,8 @@ void FakeWindow::InitializeOnRT(base::WaitableEvent* sync) {
surface_ = gl::init::CreateOffscreenGLSurface(surface_size_);
DCHECK(surface_);
DCHECK(surface_->GetHandle());
- context_ =
- gl::init::CreateGLContext(nullptr, surface_.get(), gl::PreferDiscreteGpu);
+ context_ = gl::init::CreateGLContext(nullptr, surface_.get(),
+ gl::GLContextAttribs());
Torne 2016/11/08 14:34:29 Same here
DCHECK(context_);
sync->Signal();
}

Powered by Google App Engine
This is Rietveld 408576698