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

Issue 559973003: Adds the concept of Policies to the Blink Scheduler (Closed)

Created:
6 years, 3 months ago by alex clarke (OOO till 29th)
Modified:
6 years, 3 months ago
Reviewers:
alexclarke, Sami, eseidel
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Adds the concept of Policies to the Blink Scheduler In Normal mode (the default), there's virtually no prioritization of compositor events, and shouldYieldForHighPriorityWork always returns false. In CompositorPriority mode, there *is* prioritization of compositor tasks and shouldYieldForHighPriorityWork will return false if there are pending high priority events. Currently there is no way for client code to set the policy but that will be introduced in a follow up CL. Also adds some disabled by default tracing in "blink.scheduler" to track the number of pending high priority tasks and which policy mode the scheduler is in. BUG=391005, 411520 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181818

Patch Set 1 #

Patch Set 2 : Added an APP for the compositor to tell us when it handled input events #

Patch Set 3 : Minor tweaks #

Patch Set 4 : Split up into two patches #

Patch Set 5 : Adds a comment to a test #

Total comments: 23

Patch Set 6 : AAdded a comment #

Total comments: 2

Patch Set 7 : Responding to Sami's feedback #

Patch Set 8 : Rename LatencyMode to SchedulerPolicy #

Patch Set 9 : Fixed some names #

Total comments: 20

Patch Set 10 : Responding to Sami's feedbacl #

Patch Set 11 : Responding to Sami's feecback #

Patch Set 12 : Minor change #

Patch Set 13 : Change the test time funcstions to be non-static #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -18 lines) Patch
M Source/platform/scheduler/Scheduler.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +40 lines, -10 lines 0 comments Download
M Source/platform/scheduler/Scheduler.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +63 lines, -3 lines 0 comments Download
M Source/platform/scheduler/SchedulerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +111 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
alexclarke
6 years, 3 months ago (2014-09-10 11:31:55 UTC) #2
alexclarke
6 years, 3 months ago (2014-09-10 14:28:04 UTC) #4
Sami
Thanks Alex, I think functionally this looks fine but as usual I'm being picky about ...
6 years, 3 months ago (2014-09-10 16:00:39 UTC) #5
eseidel
lgtm https://codereview.chromium.org/559973003/diff/100001/Source/platform/scheduler/Scheduler.h File Source/platform/scheduler/Scheduler.h (right): https://codereview.chromium.org/559973003/diff/100001/Source/platform/scheduler/Scheduler.h#newcode65 Source/platform/scheduler/Scheduler.h:65: LowLatency, What does LowLatency mode mean? Maybe just ...
6 years, 3 months ago (2014-09-10 16:09:01 UTC) #6
alexclarke
PTAL https://codereview.chromium.org/559973003/diff/80001/Source/platform/scheduler/Scheduler.cpp File Source/platform/scheduler/Scheduler.cpp (right): https://codereview.chromium.org/559973003/diff/80001/Source/platform/scheduler/Scheduler.cpp#newcode68 Source/platform/scheduler/Scheduler.cpp:68: // NOTE if we're not in low latency ...
6 years, 3 months ago (2014-09-10 17:35:38 UTC) #7
Sami
Thanks for the comprehensive tests! https://codereview.chromium.org/559973003/diff/160001/Source/platform/scheduler/Scheduler.cpp File Source/platform/scheduler/Scheduler.cpp (right): https://codereview.chromium.org/559973003/diff/160001/Source/platform/scheduler/Scheduler.cpp#newcode241 Source/platform/scheduler/Scheduler.cpp:241: ASSERT(m_pendingTasksMutex.locked()); Also add ASSERT(isMainThread()); ...
6 years, 3 months ago (2014-09-11 11:32:19 UTC) #8
alexclarke
https://codereview.chromium.org/559973003/diff/160001/Source/platform/scheduler/Scheduler.cpp File Source/platform/scheduler/Scheduler.cpp (right): https://codereview.chromium.org/559973003/diff/160001/Source/platform/scheduler/Scheduler.cpp#newcode241 Source/platform/scheduler/Scheduler.cpp:241: ASSERT(m_pendingTasksMutex.locked()); On 2014/09/11 11:32:18, Sami wrote: > Also add ...
6 years, 3 months ago (2014-09-11 11:52:06 UTC) #9
Sami
Thanks, lgtm!
6 years, 3 months ago (2014-09-11 12:10:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/559973003/230001
6 years, 3 months ago (2014-09-11 12:12:15 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 13:15:27 UTC) #13
Message was sent while issue was closed.
Committed patchset #13 (id:230001) as 181818

Powered by Google App Engine
This is Rietveld 408576698