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

Issue 2533603002: [scheduler] Add options to TaskQueue::InsertFence (Closed)

Created:
4 years ago by altimin
Modified:
4 years ago
CC:
chromium-reviews, blink-reviews, dglazkov+blink, scheduler-bugs_chromium.org, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[scheduler] Add options to TaskQueue::InsertFence Make TaskQueue::InsertFence configurable and allow to insert a fence in the beginning for the TaskQueue, effectively disabling it. It will allow TaskQueueThrottler to use only fences without disabling and enabling queues. R=alexclarke@chromium.org,skyostil@chromium.org BUG=638542 Committed: https://crrev.com/d15597b8f924879440a66ef0f12f9a939b7c30ea Cr-Commit-Position: refs/heads/master@{#434542}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Upload #

Patch Set 3 : BlockByFence -> InsertFence #

Patch Set 4 : Reupload #

Total comments: 14

Patch Set 5 : Fix DCHECK #

Patch Set 6 : Addressed comments #

Total comments: 6

Patch Set 7 : Addressed nits from skyostil@ #

Total comments: 4

Patch Set 8 : More nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -254 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/enqueue_order.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 1 2 3 4 5 3 chunks +10 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc View 1 2 10 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue_sets.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue_sets.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue_sets_unittest.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue_unittest.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/idle_helper.cc View 1 2 3 4 5 3 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.h View 2 chunks +1 line, -18 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc View 1 2 3 4 5 6 10 chunks +42 lines, -80 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler_unittest.cc View 1 2 3 4 5 6 chunks +23 lines, -119 lines 0 comments Download
M third_party/WebKit/public/platform/scheduler/base/task_queue.h View 1 2 3 4 5 1 chunk +12 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
altimin
PTAL
4 years ago (2016-11-25 14:51:20 UTC) #1
alex clarke (OOO till 29th)
Overall this looks like it's going to be a really nice simplification :) https://codereview.chromium.org/2533603002/diff/1/third_party/WebKit/public/platform/scheduler/base/task_queue.h File ...
4 years ago (2016-11-25 15:06:39 UTC) #2
altimin
PTAL https://codereview.chromium.org/2533603002/diff/1/third_party/WebKit/public/platform/scheduler/base/task_queue.h File third_party/WebKit/public/platform/scheduler/base/task_queue.h (right): https://codereview.chromium.org/2533603002/diff/1/third_party/WebKit/public/platform/scheduler/base/task_queue.h#newcode180 third_party/WebKit/public/platform/scheduler/base/task_queue.h:180: virtual void InsertFence() = 0; On 2016/11/25 15:06:38, ...
4 years ago (2016-11-25 15:55:28 UTC) #3
alex clarke (OOO till 29th)
https://codereview.chromium.org/2533603002/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h (right): https://codereview.chromium.org/2533603002/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h#newcode198 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h:198: bool IsQueueUnblockedForTest() const; minor: I'd slightly prefer a GetFenceForTest() ...
4 years ago (2016-11-25 16:20:50 UTC) #5
altimin
PTAL https://codereview.chromium.org/2533603002/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h File third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h (right): https://codereview.chromium.org/2533603002/diff/60001/third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h#newcode198 third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h:198: bool IsQueueUnblockedForTest() const; On 2016/11/25 16:20:49, alex clarke ...
4 years ago (2016-11-25 16:59:26 UTC) #6
alex clarke (OOO till 29th)
lgtm
4 years ago (2016-11-25 17:04:12 UTC) #9
Sami
Thanks for cleaning this up! https://codereview.chromium.org/2533603002/diff/100001/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc File third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc (right): https://codereview.chromium.org/2533603002/diff/100001/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc#newcode11 third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc:11: // Note we set ...
4 years ago (2016-11-25 17:12:59 UTC) #10
Sami
Oh and lgtm with the above nits.
4 years ago (2016-11-25 17:13:21 UTC) #11
Sami
Still lgtm. https://codereview.chromium.org/2533603002/diff/120001/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc File third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc (right): https://codereview.chromium.org/2533603002/diff/120001/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc#newcode11 third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc:11: // Note we set the first |enqueue_order_| ...
4 years ago (2016-11-25 17:38:43 UTC) #14
altimin
PTAL https://codereview.chromium.org/2533603002/diff/100001/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc File third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc (right): https://codereview.chromium.org/2533603002/diff/100001/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc#newcode11 third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc:11: // Note we set the first |enqueue_order_| to ...
4 years ago (2016-11-25 17:44:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2533603002/130001
4 years ago (2016-11-25 17:45:04 UTC) #18
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years ago (2016-11-25 19:30:35 UTC) #21
commit-bot: I haz the power
4 years ago (2016-11-25 19:32:34 UTC) #23
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d15597b8f924879440a66ef0f12f9a939b7c30ea
Cr-Commit-Position: refs/heads/master@{#434542}

Powered by Google App Engine
This is Rietveld 408576698