Structs§
- Animation
Refresh 🔒Driver Observer - The
AnimationRefreshDriverObserveris the default implementation of aRefreshDriveron systems without vsync hardware integration. It has a very basic way of triggering frames using a timer. It prevents new animation frames until the timer has fired. - Base
Refresh 🔒Driver - The
BaseRefreshDriveris a “base class” forRefreshDrivertrait implementations. It encapsulates shared behavior so that it does not have to be implemented by all trait implementations. It is responsible for providingRefreshDriverimplementations with a callback that is used to wake up the event loop and trigger frame readiness. - Timer
Refresh 🔒Driver - A thread that manages a
TimerSchedulerrunning in the background of theRefreshDriver. This is necessary because we need a reliable way of waking up the embedder’s main thread, which may just be sleeping until theEventLoopWakerasks it to wake up.
Enums§
Traits§
- Refresh
Driver 🔒Observer - A
RefreshDriverObserveris an internal subscriber to frame start signals from theRefreshDriver. Examples of these kind of observers would be one that triggers new animation frames right after vsync signals or one that handles touch interactions once per frame.