![]() |
Flutter Engine
The Flutter Engine
|
#include <embedder_task_runner.h>
Classes | |
struct | DispatchTable |
A. More... | |
Public Member Functions | |
EmbedderTaskRunner (DispatchTable table, size_t embedder_identifier) | |
Create a task runner with a dispatch table for delegation of task runner responsibility to the embedder. When embedders specify task runner dispatch tables that service tasks on the same thread, they also must ensure that their embedder_idetifier s match. This allows the engine to determine task runner equality without actually posting tasks to the task runner. More... | |
~EmbedderTaskRunner () override | |
size_t | GetEmbedderIdentifier () const |
The unique identifier provided by the embedder for the task runner. Embedders whose dispatch tables service tasks on the same underlying OS thread must ensure that their identifiers match. This allows the engine to determine task runner equality without posting tasks on the thread. More... | |
bool | PostTask (uint64_t baton) |
![]() | |
virtual | ~TaskRunner () |
virtual void | PostTask (const fml::closure &task) override |
virtual void | PostTaskForTime (const fml::closure &task, fml::TimePoint target_time) |
virtual void | PostDelayedTask (const fml::closure &task, fml::TimeDelta delay) |
virtual bool | RunsTasksOnCurrentThread () |
virtual TaskQueueId | GetTaskQueueId () |
![]() | |
void | Release () const |
![]() | |
void | AddRef () const |
bool | HasOneRef () const |
void | AssertHasOneRef () const |
virtual void | PostTask (const fml::closure &task)=0 |
Additional Inherited Members | |
![]() | |
static void | RunNowOrPostTask (const fml::RefPtr< fml::TaskRunner > &runner, const fml::closure &task) |
![]() | |
TaskRunner (fml::RefPtr< MessageLoopImpl > loop) | |
![]() | |
RefCountedThreadSafe () | |
~RefCountedThreadSafe () | |
![]() | |
RefCountedThreadSafeBase () | |
~RefCountedThreadSafeBase () | |
bool | Release () const |
void | Adopt () |
A task runner which delegates responsibility of task execution to an embedder. This is done by managing a dispatch table to the embedder.
Definition at line 20 of file embedder_task_runner.h.
flutter::EmbedderTaskRunner::EmbedderTaskRunner | ( | DispatchTable | table, |
size_t | embedder_identifier | ||
) |
Create a task runner with a dispatch table for delegation of task runner responsibility to the embedder. When embedders specify task runner dispatch tables that service tasks on the same thread, they also must ensure that their embedder_idetifier
s match. This allows the engine to determine task runner equality without actually posting tasks to the task runner.
[in] | table | The task runner dispatch table. |
[in] | embedder_identifier | The embedder identifier |
Definition at line 12 of file embedder_task_runner.cc.
|
overridedefault |
size_t flutter::EmbedderTaskRunner::GetEmbedderIdentifier | ( | ) | const |
The unique identifier provided by the embedder for the task runner. Embedders whose dispatch tables service tasks on the same underlying OS thread must ensure that their identifiers match. This allows the engine to determine task runner equality without posting tasks on the thread.
Definition at line 25 of file embedder_task_runner.cc.
bool flutter::EmbedderTaskRunner::PostTask | ( | uint64_t | baton | ) |
Definition at line 60 of file embedder_task_runner.cc.