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

Unified Diff: content/browser/gpu/browser_gpu_channel_host_factory.cc

Issue 1365563002: Make channel preemption not require view contexts for hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wakeup_gpu
Patch Set: rebase Created 5 years, 3 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/gpu/browser_gpu_channel_host_factory.cc
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.cc b/content/browser/gpu/browser_gpu_channel_host_factory.cc
index 3dda55152db9b6f73e976baeda86ca43d34816db..3a385ca6a46dd01f11a5e17b6d92d5f0c9057671 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.cc
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.cc
@@ -148,8 +148,13 @@ void BrowserGpuChannelHostFactory::EstablishRequest::EstablishOnIO() {
reused_gpu_process_ = true;
}
+ bool preempts = true;
+ bool preempted = false;
+ bool allow_future_sync_points = true;
+ bool allow_real_time_streams = true;
host->EstablishGpuChannel(
- gpu_client_id_, gpu_client_tracing_id_, true, true, true,
+ gpu_client_id_, gpu_client_tracing_id_, preempts, preempted,
+ allow_future_sync_points, allow_real_time_streams,
base::Bind(
&BrowserGpuChannelHostFactory::EstablishRequest::OnEstablishedOnIO,
this));
@@ -300,7 +305,6 @@ void BrowserGpuChannelHostFactory::CreateViewCommandBufferOnIO(
host->CreateViewCommandBuffer(
surface,
- surface_id,
gpu_client_id_,
init_params,
request->route_id,
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_child_frame.cc ('k') | content/browser/gpu/gpu_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698