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

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

Issue 2286873003: Provide TaskRunner to ContextCacheController (Closed)
Patch Set: feedback Created 4 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: gpu/ipc/client/command_buffer_proxy_impl.cc
diff --git a/gpu/ipc/client/command_buffer_proxy_impl.cc b/gpu/ipc/client/command_buffer_proxy_impl.cc
index 2f4a67fc604a1acf9a988cbe64a42de6abeac95e..f988509ee733677fce35316fcc7a601516d86435 100644
--- a/gpu/ipc/client/command_buffer_proxy_impl.cc
+++ b/gpu/ipc/client/command_buffer_proxy_impl.cc
@@ -61,8 +61,7 @@ CommandBufferProxyImpl::CommandBufferProxyImpl(int channel_id,
flushed_fence_sync_release_(0),
verified_fence_sync_release_(0),
next_signal_id_(0),
- weak_this_(AsWeakPtr()),
- callback_thread_(base::ThreadTaskRunnerHandle::Get()) {
+ weak_this_(AsWeakPtr()) {
DCHECK(route_id);
DCHECK_NE(stream_id, GPU_STREAM_INVALID);
}
@@ -218,8 +217,7 @@ bool CommandBufferProxyImpl::Initialize(
// Route must be added before sending the message, otherwise messages sent
// from the GPU process could race against adding ourselves to the filter.
- channel->AddRouteWithTaskRunner(route_id_, AsWeakPtr(),
- std::move(task_runner));
+ channel->AddRouteWithTaskRunner(route_id_, AsWeakPtr(), task_runner);
// We're blocking the UI thread, which is generally undesirable.
// In this case we need to wait for this before we can show any UI /anyway/,
@@ -236,6 +234,7 @@ bool CommandBufferProxyImpl::Initialize(
channel_ = std::move(channel);
capabilities_.image = true;
+ callback_thread_ = std::move(task_runner);
return true;
}
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | gpu/ipc/client/gpu_in_process_context_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698