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

Unified Diff: content/common/gpu/client/context_provider_command_buffer.cc

Issue 2275113002: Provide task runner to GLES2Impl / CommandBuffer at creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-cleanup4
Patch Set: cleanup Created 4 years, 4 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/common/gpu/client/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
index 8c1fc34a854a880e129fa5ac3387e182ebac94aa..93f9f04ee8c01b9286b80b3e75ff9e52d180a53a 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -157,7 +157,7 @@ bool ContextProviderCommandBuffer::BindToCurrentThread() {
task_runner = base::ThreadTaskRunnerHandle::Get();
command_buffer_ = gpu::CommandBufferProxyImpl::Create(
std::move(channel_), surface_handle_, shared_command_buffer, stream_id_,
- stream_priority_, attributes_, active_url_, std::move(task_runner));
+ stream_priority_, attributes_, active_url_, task_runner);
if (!command_buffer_) {
DLOG(ERROR) << "GpuChannelHost failed to create command buffer.";
command_buffer_metrics::UmaRecordContextInitFailed(context_type_);
@@ -183,7 +183,7 @@ bool ContextProviderCommandBuffer::BindToCurrentThread() {
gles2_helper_.get(), share_group, transfer_buffer_.get(),
attributes_.bind_generates_resource,
attributes_.lose_context_when_out_of_memory, support_client_side_arrays,
- command_buffer_.get()));
+ command_buffer_.get(), std::move(task_runner)));
if (!gles2_impl_->Initialize(memory_limits_.start_transfer_buffer_size,
memory_limits_.min_transfer_buffer_size,
memory_limits_.max_transfer_buffer_size,
« no previous file with comments | « no previous file | gpu/command_buffer/client/gl_in_process_context.cc » ('j') | gpu/command_buffer/client/gles2_implementation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698