[scheduler] Delayed fences

Desktop / Chromium - Alexander Timin [chromium.org] - 11 October 2017 09:43 EDT

Introduce a concept of a delayed fence - a fence which is scheduled to be inserted as a regular fence after a certain point in time. This is mostly equivalent to a delayed task to insert a regular fence, but it is integrated into the scheduler and does not have an associated wake-up cost.

R=alexclarke@chromium.org, skyostil@chromium.org

Bug: Change-Id: Id0637e7fbe0a724aed016314e9dc63592ee535da Reviewed-on: https://chromium-review.googlesource.com/712051 Commit-Queue: Alexander Timin

890d7b7 [scheduler] Delayed fences
.../Source/platform/scheduler/base/task_queue.cc | 4 +
.../Source/platform/scheduler/base/task_queue.h | 12 +++
.../platform/scheduler/base/task_queue_impl.cc | 62 ++++++++++--
.../platform/scheduler/base/task_queue_impl.h | 8 ++
.../scheduler/base/task_queue_manager_unittest.cc | 105 +++++++++++++++++++++
.../Source/platform/scheduler/base/work_queue.cc | 2 +-
6 files changed, 183 insertions(+), 10 deletions(-)

Upstream: git.chromium.org


  • Share