Flutter Engine
flutter::PointerDataDispatcher::Delegate Class Referenceabstract

The interface for Engine to implement. More...

#include <pointer_data_dispatcher.h>

Inheritance diagram for flutter::PointerDataDispatcher::Delegate:
flutter::Engine

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). More...
 

Detailed Description

The interface for Engine to implement.

Definition at line 43 of file pointer_data_dispatcher.h.

Member Function Documentation

◆ DoDispatchPacket()

virtual void flutter::PointerDataDispatcher::Delegate::DoDispatchPacket ( std::unique_ptr< PointerDataPacket packet,
uint64_t  trace_flow_id 
)
pure virtual

Actually dispatch the packet using Engine's animator_ and runtime_controller_.

Implemented in flutter::Engine.

Referenced by flutter::DefaultPointerDataDispatcher::DispatchPacket().

◆ ScheduleSecondaryVsyncCallback()

virtual void flutter::PointerDataDispatcher::Delegate::ScheduleSecondaryVsyncCallback ( uintptr_t  id,
const fml::closure callback 
)
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.

Referenced by flutter::SmoothPointerDataDispatcher::DispatchPacket().


The documentation for this class was generated from the following file: