Flutter Engine
The Flutter Engine
|
#include <task_runner.h>
Public Types | |
using | TaskTimePoint = std::chrono::steady_clock::time_point |
using | TaskExpiredCallback = std::function< void(const FlutterTask *)> |
using | TaskClosure = std::function< void()> |
Public Member Functions | |
TaskRunner (CurrentTimeProc get_current_time, const TaskExpiredCallback &on_task_expired) | |
virtual | ~TaskRunner () |
virtual bool | RunsTasksOnCurrentThread () const |
void | PostFlutterTask (FlutterTask flutter_task, uint64_t flutter_target_time_nanos) |
void | PostTask (TaskClosure task) |
void | RunNowOrPostTask (TaskClosure task) |
std::chrono::nanoseconds | ProcessTasks () |
virtual std::chrono::nanoseconds | ProcessTasks ()=0 |
Private Member Functions | |
virtual void | WakeUp () |
virtual TaskTimePoint | GetCurrentTimeForTask () const |
Definition at line 26 of file task_runner.h.
using flutter::TaskRunner::TaskClosure = std::function<void()> |
Definition at line 30 of file task_runner.h.
using flutter::TaskRunner::TaskExpiredCallback = std::function<void(const FlutterTask*)> |
Definition at line 29 of file task_runner.h.
using flutter::TaskRunner::TaskTimePoint = std::chrono::steady_clock::time_point |
Definition at line 28 of file task_runner.h.
flutter::TaskRunner::TaskRunner | ( | CurrentTimeProc | get_current_time, |
const TaskExpiredCallback & | on_task_expired | ||
) |
Definition at line 12 of file task_runner.cc.
|
virtual |
Definition at line 21 of file task_runner.cc.
|
inlineprivatevirtual |
Definition at line 90 of file task_runner.h.
void flutter::TaskRunner::PostFlutterTask | ( | FlutterTask | flutter_task, |
uint64_t | flutter_target_time_nanos | ||
) |
Definition at line 80 of file task_runner.cc.
void flutter::TaskRunner::PostTask | ( | TaskClosure | task | ) |
Definition at line 88 of file task_runner.cc.
|
virtual |
Implements flutter::TaskRunnerWindow::Delegate.
Definition at line 25 of file task_runner.cc.
|
inline |
Definition at line 51 of file task_runner.h.
|
virtual |
Definition at line 112 of file task_runner.cc.
|
privatevirtual |
Definition at line 116 of file task_runner.cc.