Descriptionbase: Make it possible to replace the MessageLoop's task runner
This patch makes it possible to customize the task posting behavior
of a MessageLoop. More specifically, a client can change the value
returned by MessageLoop::task_runner() as well as
ThreadTaskRunnerHandle::Get() on the target thread. The original task
runner can still be used to post tasks to be run on the message loop.
The Blink/renderer scheduler will use this functionality to manage task
posting on the renderer main thread. This is needed to ensure consistent
ordering of tasks posted through the MessageLoop w.r.t. tasks posted to
the scheduler.
Design doc: https://docs.google.com/a/chromium.org/document/d/1qxdh2I61_aB_Uzh1QgNqvdWFBCL_E65G2smoSySw7KU/edit#
Alex Clarke <alexclarke@chromium.org> also contributed to this patch (https://codereview.chromium.org/1206893003/).
BUG=465354
Committed: https://crrev.com/85f43a3185f38eb89c63ad108fd1b73000e0ac56
Cr-Commit-Position: refs/heads/master@{#338564}
Patch Set 1 #Patch Set 2 : No more subclassing. #Patch Set 3 : Documentation. #Patch Set 4 : No more MessageLoopProxy. #
Total comments: 8
Patch Set 5 : Only support swapping after binding to a thread. #Patch Set 6 : Removed unused forward decl. #Patch Set 7 : Rebased. #Patch Set 8 : Fix data race (see https://codereview.chromium.org/1232573002/) #
Messages
Total messages: 29 (8 generated)
|