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

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

Issue 9619017: Fix context sharing between channels to be order-independent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « content/browser/renderer_host/gpu_message_filter.h ('k') | content/common/gpu/gpu_channel_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/gpu_message_filter.cc
diff --git a/content/browser/renderer_host/gpu_message_filter.cc b/content/browser/renderer_host/gpu_message_filter.cc
index b19f640c50ae8d7e5caa76a44170f83e4addd701..9776cbe0431f5c0e822f6cc37d4d35e2979c73ec 100644
--- a/content/browser/renderer_host/gpu_message_filter.cc
+++ b/content/browser/renderer_host/gpu_message_filter.cc
@@ -24,7 +24,7 @@ GpuMessageFilter::GpuMessageFilter(int render_process_id,
RenderWidgetHelper* render_widget_helper)
: gpu_host_id_(0),
render_process_id_(render_process_id),
- share_client_id_(0),
+ share_contexts_(false),
render_widget_helper_(render_widget_helper) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -32,8 +32,7 @@ GpuMessageFilter::GpuMessageFilter(int render_process_id,
if (command_line->HasSwitch(switches::kUIUseGPUProcess)) {
// When using the GPU process for UI, we need to share renderer GL contexts
// with the compositor context.
- share_client_id_ =
- content::BrowserGpuChannelHostFactory::Get()->gpu_client_id();
+ share_contexts_ = true;
}
}
@@ -82,7 +81,7 @@ void GpuMessageFilter::OnEstablishGpuChannel(
host->EstablishGpuChannel(
render_process_id_,
- share_client_id_,
+ share_contexts_,
base::Bind(&GpuMessageFilter::EstablishChannelCallback,
AsWeakPtr(),
reply));
« no previous file with comments | « content/browser/renderer_host/gpu_message_filter.h ('k') | content/common/gpu/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698