5#ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_VSYNC_WAITER_H_
6#define FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_VSYNC_WAITER_H_
8#include <lib/async/cpp/wait.h>
10#include "flutter/fml/macros.h"
11#include "flutter/fml/memory/weak_ptr.h"
12#include "flutter/fml/time/time_delta.h"
13#include "flutter/fml/time/time_point.h"
14#include "flutter/shell/common/vsync_waiter.h"
31 await_vsync_for_secondary_callback_callback,
38 void AwaitVSync()
override;
41 void AwaitVSyncForSecondaryCallback()
override;
47 await_vsync_for_secondary_callback_callback_;
50 std::unique_ptr<fml::WeakPtrFactory<VsyncWaiter>> weak_factory_ui_;
VsyncWaiter(AwaitVsyncCallback await_vsync_callback, AwaitVsyncForSecondaryCallbackCallback await_vsync_for_secondary_callback_callback, flutter::TaskRunners task_runners)
Dart_NativeFunction function
std::function< void(fml::TimePoint, fml::TimePoint)> FireCallbackCallback
std::function< void(FireCallbackCallback)> AwaitVsyncForSecondaryCallbackCallback
std::function< void(FireCallbackCallback)> AwaitVsyncCallback