Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
13namespace flutter {
14
16 public:
17 TaskRunners(std::string label,
22
23 TaskRunners(const TaskRunners& other);
24
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_
fml::RefPtr< fml::TaskRunner > GetRasterTaskRunner() const
fml::RefPtr< fml::TaskRunner > GetUITaskRunner() const
fml::RefPtr< fml::TaskRunner > GetIOTaskRunner() const
fml::RefPtr< fml::TaskRunner > GetPlatformTaskRunner() const
TaskRunners(const TaskRunners &other)
const std::string & GetLabel() const