7#include <lib/async/cpp/task.h>
8#include <lib/async/default.h>
9#include <lib/zx/time.h>
11#include "flutter/fml/message_loop_impl.h"
23 async::PostTask(forwarding_target_, task);
28 async::PostTaskForTime(
29 forwarding_target_, task,
35 async::PostDelayedTask(forwarding_target_, task,
40 return forwarding_target_ == async_get_default_dispatcher();
44 async_dispatcher_t* forwarding_target_;
52 async_dispatcher_t* dispatcher) {
53 return fml::MakeRefCounted<CompatTaskRunner>(dispatcher);
bool RunsTasksOnCurrentThread() override
void PostTask(const fml::closure &task) override
void PostTaskForTime(const fml::closure &task, fml::TimePoint target_time) override
void PostDelayedTask(const fml::closure &task, fml::TimeDelta delay) override
CompatTaskRunner(async_dispatcher_t *dispatcher)
TaskRunner(fml::RefPtr< MessageLoopImpl > loop)
constexpr int64_t ToNanoseconds() const
TimeDelta ToEpochDelta() const
#define FML_DCHECK(condition)
fml::RefPtr< fml::TaskRunner > CreateFMLTaskRunner(async_dispatcher_t *dispatcher)
std::function< void()> closure
static double time(int loops, Benchmark *bench, Target *target)