7 #include "flutter/fml/message_loop.h"
13 return tChoreographer;
16 Choreographer::Choreographer() {
23 fml::MessageLoop::EnsureInitializedForCurrentThread();
47 auto data = std::make_unique<InFlightData>();
48 data->callback = std::move(callback);
51 if (table.AChoreographer_postFrameCallback64) {
52 table.AChoreographer_postFrameCallback64(
53 const_cast<AChoreographer*
>(instance_),
54 [](int64_t nanos,
void* p_data) {
55 auto data =
reinterpret_cast<InFlightData*
>(p_data);
61 }
else if (table.AChoreographer_postFrameCallback) {
62 table.AChoreographer_postFrameCallback(
63 const_cast<AChoreographer*
>(instance_),
64 [](
long nanos,
void* p_data) {
65 auto data =
reinterpret_cast<InFlightData*
>(p_data);