Flutter Engine
flutter::TaskRunners Class Reference

#include <task_runners.h>

Public Member Functions

 TaskRunners (std::string label, fml::RefPtr< fml::TaskRunner > platform, fml::RefPtr< fml::TaskRunner > raster, fml::RefPtr< fml::TaskRunner > ui, fml::RefPtr< fml::TaskRunner > io)
 
 TaskRunners (const TaskRunners &other)
 
 ~TaskRunners ()
 
const std::string & GetLabel () const
 
fml::RefPtr< fml::TaskRunnerGetPlatformTaskRunner () const
 
fml::RefPtr< fml::TaskRunnerGetUITaskRunner () const
 
fml::RefPtr< fml::TaskRunnerGetIOTaskRunner () const
 
fml::RefPtr< fml::TaskRunnerGetRasterTaskRunner () const
 
bool IsValid () const
 

Detailed Description

Definition at line 15 of file task_runners.h.

Constructor & Destructor Documentation

◆ TaskRunners() [1/2]

flutter::TaskRunners::TaskRunners ( std::string  label,
fml::RefPtr< fml::TaskRunner platform,
fml::RefPtr< fml::TaskRunner raster,
fml::RefPtr< fml::TaskRunner ui,
fml::RefPtr< fml::TaskRunner io 
)

Definition at line 11 of file task_runners.cc.

References ~TaskRunners().

16  : label_(std::move(label)),
17  platform_(std::move(platform)),
18  raster_(std::move(raster)),
19  ui_(std::move(ui)),
20  io_(std::move(io)) {}

◆ TaskRunners() [2/2]

flutter::TaskRunners::TaskRunners ( const TaskRunners other)
default

◆ ~TaskRunners()

flutter::TaskRunners::~TaskRunners ( )
default

Referenced by TaskRunners().

Member Function Documentation

◆ GetIOTaskRunner()

◆ GetLabel()

const std::string & flutter::TaskRunners::GetLabel ( ) const

Definition at line 26 of file task_runners.cc.

Referenced by flutter::DartIsolate::GetMessageHandlingTaskRunner().

26  {
27  return label_;
28 }

◆ GetPlatformTaskRunner()

◆ GetRasterTaskRunner()

◆ GetUITaskRunner()

◆ IsValid()

bool flutter::TaskRunners::IsValid ( ) const

Definition at line 46 of file task_runners.cc.

Referenced by flutter::Shell::Create(), flutter::ImageDecoder::ImageDecoder(), and flutter::EmbedderThreadHost::IsValid().

46  {
47  return platform_ && raster_ && ui_ && io_;
48 }

The documentation for this class was generated from the following files: