Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
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.

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

Member Function Documentation

◆ GetIOTaskRunner()

fml::RefPtr< fml::TaskRunner > flutter::TaskRunners::GetIOTaskRunner ( ) const

Definition at line 38 of file task_runners.cc.

38 {
39 return io_;
40}

◆ GetLabel()

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

Definition at line 26 of file task_runners.cc.

26 {
27 return label_;
28}

◆ GetPlatformTaskRunner()

fml::RefPtr< fml::TaskRunner > flutter::TaskRunners::GetPlatformTaskRunner ( ) const

Definition at line 30 of file task_runners.cc.

30 {
31 return platform_;
32}

◆ GetRasterTaskRunner()

fml::RefPtr< fml::TaskRunner > flutter::TaskRunners::GetRasterTaskRunner ( ) const

Definition at line 42 of file task_runners.cc.

42 {
43 return raster_;
44}

◆ GetUITaskRunner()

fml::RefPtr< fml::TaskRunner > flutter::TaskRunners::GetUITaskRunner ( ) const

Definition at line 34 of file task_runners.cc.

34 {
35 return ui_;
36}

◆ IsValid()

bool flutter::TaskRunners::IsValid ( ) const

Definition at line 46 of file task_runners.cc.

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

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