Coalesces browser frame notifications and invalidates callbacks across shutdown/restart. More...
#include <algorithm>#include <array>#include <atomic>#include <cstdint>#include <optional>#include "donner/base/FatalAbort.h"Classes | |
| struct | donner::editor::FrameAttemptStats |
| Owner-thread counters; index zero is scheduled work and index one is an event frame. More... | |
| class | donner::editor::FrameCallbackAdmission |
| Start/stop and callback execution belong to the app thread; admission may run on another thread. More... | |
| class | donner::editor::EventFrameWake |
| Coalesces event-frame requests into at most one queued frame without losing a request. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Functions | |
| std::optional< double > | donner::editor::NextScheduledFrameDeadline (std::optional< double > previousDeadlineMs, std::optional< double > nextDeadlineMs, bool eventFrame) |
| Preserve scheduled work across asynchronous event frames that cannot service an animation tick. | |
Coalesces browser frame notifications and invalidates callbacks across shutdown/restart.
|
inline |
Preserve scheduled work across asynchronous event frames that cannot service an animation tick.
| previousDeadlineMs | Deadline owed before this frame, on the host's monotonic clock. |
| nextDeadlineMs | Recomputed deadline after this frame, or no remaining idle work. |
| eventFrame | Whether this frame services an event rather than a scheduled tick. |