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

Unified Diff: gpu/ipc/in_process_command_buffer.cc

Issue 2815023004: InProcessCommandBuffer::OnWaitSyncTokenCompleted should not enqueue a new task. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/in_process_command_buffer.cc
diff --git a/gpu/ipc/in_process_command_buffer.cc b/gpu/ipc/in_process_command_buffer.cc
index fe7d2fa998ce6b274f30795f76109fc6bf514f92..07f287b5ac2ceaae64f1269f94fca0ba5926320b 100644
--- a/gpu/ipc/in_process_command_buffer.cc
+++ b/gpu/ipc/in_process_command_buffer.cc
@@ -884,8 +884,8 @@ void InProcessCommandBuffer::OnWaitSyncTokenCompleted(
mailbox_manager->PullTextureUpdates(sync_token);
waiting_for_sync_point_ = false;
executor_->SetScheduled(true);
- QueueTask(false, base::Bind(&InProcessCommandBuffer::FlushOnGpuThread,
- gpu_thread_weak_ptr_, last_put_offset_));
+ service_->ScheduleTask(base::Bind(
+ &InProcessCommandBuffer::ProcessTasksOnGpuThread, gpu_thread_weak_ptr_));
}
void InProcessCommandBuffer::DescheduleUntilFinishedOnGpuThread() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698