Skip to content

Commit

Permalink
InProcessCommandBuffer::OnWaitSyncTokenCompleted should not enqueue a…
Browse files Browse the repository at this point in the history
… new task.

Instead it should simply schedule the service to process tasks again.

BUG=NONE
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2815023004
Cr-Commit-Position: refs/heads/master@{#464188}
  • Loading branch information
mfomitchev authored and Commit bot committed Apr 12, 2017
1 parent ffcbc0b commit 995b74d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpu/ipc/in_process_command_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 995b74d

Please sign in to comment.