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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 1916923004: Request context sharing via content::ContextProviderCommandBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sharegroup: . Created 4 years, 8 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: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 47235d4d6350248afb3b0ea2169acb86e9db9fcb..28f2ff02024e94a2523b1a1656819ca23f029ad2 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -183,7 +183,6 @@ void GLHelperHolder::Initialize() {
// screen readback to be mapped.
limits.mapped_memory_reclaim_limit = full_screen_texture_size_in_bytes;
- bool share_resources = false;
bool automatic_flushes = false;
GURL url("chrome://gpu/RenderWidgetHostViewAndroid");
@@ -191,9 +190,10 @@ void GLHelperHolder::Initialize() {
new WebGraphicsContext3DCommandBufferImpl(
gpu::kNullSurfaceHandle, // offscreen
url, gpu_channel_host.get(), attributes, gfx::PreferIntegratedGpu,
- share_resources, automatic_flushes, nullptr));
- provider_ = new ContextProviderCommandBuffer(
- std::move(context), limits, BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT);
+ automatic_flushes));
+ provider_ =
+ new ContextProviderCommandBuffer(std::move(context), limits, nullptr,
+ BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT);
if (!provider_->BindToCurrentThread())
return;
provider_->ContextGL()->TraceBeginCHROMIUM(

Powered by Google App Engine
This is Rietveld 408576698