The interface for Engine to implement. More...
#include <pointer_data_dispatcher.h>
Public Member Functions | |
| virtual void | DoDispatchPacket (std::unique_ptr< PointerDataPacket > packet, uint64_t trace_flow_id)=0 |
| virtual void | ScheduleSecondaryVsyncCallback (uintptr_t id, const fml::closure &callback)=0 |
Schedule a secondary callback to be executed right after the main VsyncWaiter::AsyncWaitForVsync callback (which is added by Animator::RequestFrame). | |
The interface for Engine to implement.
Definition at line 43 of file pointer_data_dispatcher.h.
|
pure virtual |
Actually dispatch the packet using Engine's animator_ and runtime_controller_.
Implemented in flutter::Engine.
Referenced by flutter::DefaultPointerDataDispatcher::DispatchPacket().
|
pure virtual |
Schedule a secondary callback to be executed right after the main VsyncWaiter::AsyncWaitForVsync callback (which is added by Animator::RequestFrame).
Like the callback in AsyncWaitForVsync, this callback is only scheduled to be called once per |id|, and it will be called in the UI thread. If there is no AsyncWaitForVsync callback (Animator::RequestFrame is not called), this secondary callback will still be executed at vsync.
This callback is used to provide the vsync signal needed by SmoothPointerDataDispatcher, and for Animator input flow events.
Implemented in flutter::Engine.