Flutter Engine
task_runners.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_COMMON_TASK_RUNNERS_H_
6 #define FLUTTER_COMMON_TASK_RUNNERS_H_
7 
8 #include <string>
9 
10 #include "flutter/fml/macros.h"
11 #include "flutter/fml/task_runner.h"
12 
13 namespace flutter {
14 
15 class TaskRunners {
16  public:
17  TaskRunners(std::string label,
22 
23  TaskRunners(const TaskRunners& other);
24 
25  ~TaskRunners();
26 
27  const std::string& GetLabel() const;
28 
30 
32 
34 
36 
37  bool IsValid() const;
38 
39  private:
40  const std::string label_;
45 };
46 
47 } // namespace flutter
48 
49 #endif // FLUTTER_COMMON_TASK_RUNNERS_H_
bool IsValid() const
Definition: task_runners.cc:46
fml::RefPtr< fml::TaskRunner > GetPlatformTaskRunner() const
Definition: task_runners.cc:30
fml::RefPtr< fml::TaskRunner > GetRasterTaskRunner() const
Definition: task_runners.cc:42
fml::RefPtr< fml::TaskRunner > GetIOTaskRunner() const
Definition: task_runners.cc:38
fml::RefPtr< fml::TaskRunner > GetUITaskRunner() const
Definition: task_runners.cc:34
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: task_runners.cc:11
const std::string & GetLabel() const
Definition: task_runners.cc:26