tree: e090e8b9f4ebce52afd190a49236601313903bea [path history] [tgz]
  1. base/
  2. common/
  3. main_thread/
  4. public/
  5. test/
  6. worker/
  7. BUILD.gn
  8. COMMON_METADATA
  9. DEPS
  10. DIR_METADATA
  11. links.md
  12. OWNERS
  13. README.md
  14. TaskSchedulingInBlink.md
third_party/blink/renderer/platform/scheduler/README.md

Blink Scheduler

This directory contains the Blink Scheduler, which coordinates task execution in renderer processes. The main subdirectories are:

  • public -- contains the interfaces which scheduler exposes to the other parts of Blink (FrameScheduler, PageScheduler, WorkerScheduler and others). Other code in Blink should not depend on files outside of this directory.
  • common -- contains ThreadSchedulerImpl which is the base class for all thread schedulers, as well as other functionality which is required for both main thread and worker threads.
  • main_thread -- contains implementation of the main thread scheduler (MainThreadSchedulerImpl) and main thread scheduling policies.
  • worker -- contains implementation of scheduling infrastructure for the non-main threads (compositor thread, worker threads).

The scheduler exposes an API to the content layer at public/platform/scheduler.

Further reading

Overview of task scheduling in Blink. Collection of scheduling-related documentation.