Now that we landed TaskRunnerHelper, our goal is to replace Platform::current()->currentThread(->scheduler())->... and timers with TaskRunnerHelper::getXXXTaskRunner().
We can start distributing the work :)
We discussed what tasks should use what task runners in https://groups.google.com/a/chromium.org/d/topic/platform-architecture-dev/uRvrk4CYSEc/discussion.
The conclusion is as follows:
- Per-frame scheduler
---- Idle task runner
---- Timer task runner
---- Loading task runner
---- Rendering task runner
---- ... (<= We may add more specific task runners as necessary.)
---- Unthrottled task runner (<= not encouraged)
- Per-thread scheduler
--- Idle task runner (<= not encouraged)
--- Default task runner (<= not encouraged)
Comment 1 by haraken@chromium.org
, Jun 30 2016