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

Unified Diff: blimp/client/feature/compositor/blimp_context_provider.cc

Issue 2107783003: Pass initial size and GPU preference via context attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp fix Created 4 years, 6 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
Index: blimp/client/feature/compositor/blimp_context_provider.cc
diff --git a/blimp/client/feature/compositor/blimp_context_provider.cc b/blimp/client/feature/compositor/blimp_context_provider.cc
index a4699fee8df78e35740827ae02aaf4fde7c0878f..a87aeef522f8c80efd76c2e676a0aa5ba3b52c8b 100644
--- a/blimp/client/feature/compositor/blimp_context_provider.cc
+++ b/blimp/client/feature/compositor/blimp_context_provider.cc
@@ -43,9 +43,9 @@ BlimpContextProvider::BlimpContextProvider(
context_.reset(gpu::GLInProcessContext::Create(
nullptr /* service */, nullptr /* surface */, false /* is_offscreen */,
- widget, gfx::Size(1, 1), nullptr /* share_context */, attribs_for_gles2,
- gl::PreferDiscreteGpu, gpu::SharedMemoryLimits(),
- gpu_memory_buffer_manager, nullptr /* memory_limits */));
+ widget, nullptr /* share_context */, attribs_for_gles2,
+ gpu::SharedMemoryLimits(), gpu_memory_buffer_manager,
+ nullptr /* memory_limits */));
context_->GetImplementation()->SetLostContextCallback(
base::Bind(&BlimpContextProvider::OnLostContext, base::Unretained(this)));
}
« no previous file with comments | « android_webview/browser/aw_render_thread_context_provider.cc ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698