tree: f8fbbefdfe4b5d240547e681818bc237d299c2c9 [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. OWNERS
  4. README.md
  5. TaskSchedulingInBlink.md
  6. base/
  7. common/
  8. links.md
  9. main_thread/
  10. public/
  11. test/
  12. worker/
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.