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

Unified Diff: gpu/ipc/client/gpu_channel_host.cc

Issue 1963263002: Fix Mac resize, delete more Mac code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 | « gpu/ipc/client/gpu_channel_host.h ('k') | gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/gpu_channel_host.cc
diff --git a/gpu/ipc/client/gpu_channel_host.cc b/gpu/ipc/client/gpu_channel_host.cc
index 2b8de288e0d821b8a0cd47aafa5631ff7748770a..c16b0f6a0251cde03f425aeb6c755a7198c03354 100644
--- a/gpu/ipc/client/gpu_channel_host.cc
+++ b/gpu/ipc/client/gpu_channel_host.cc
@@ -197,7 +197,8 @@ std::unique_ptr<CommandBufferProxyImpl> GpuChannelHost::CreateCommandBuffer(
gpu::GpuStreamPriority stream_priority,
const std::vector<int32_t>& attribs,
const GURL& active_url,
- gfx::GpuPreference gpu_preference) {
+ gfx::GpuPreference gpu_preference,
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
DCHECK(!share_group || (stream_id == share_group->stream_id()));
TRACE_EVENT1("gpu", "GpuChannelHost::CreateViewCommandBuffer",
"surface_handle", surface_handle);
@@ -237,7 +238,8 @@ std::unique_ptr<CommandBufferProxyImpl> GpuChannelHost::CreateCommandBuffer(
std::unique_ptr<CommandBufferProxyImpl> command_buffer =
base::WrapUnique(new CommandBufferProxyImpl(this, route_id, stream_id));
- AddRoute(route_id, command_buffer->AsWeakPtr());
+ AddRouteWithTaskRunner(route_id, command_buffer->AsWeakPtr(),
+ std::move(task_runner));
if (!command_buffer->Initialize())
return nullptr;
« no previous file with comments | « gpu/ipc/client/gpu_channel_host.h ('k') | gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698