// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef FLUTTER_COMMON_TASK_RUNNERS_H_ #define FLUTTER_COMMON_TASK_RUNNERS_H_ #include #include "flutter/fml/macros.h" #include "flutter/fml/task_runner.h" namespace flutter { class TaskRunners { public: TaskRunners(std::string label, fml::RefPtr platform, fml::RefPtr raster, fml::RefPtr ui, fml::RefPtr io); TaskRunners(const TaskRunners& other); ~TaskRunners(); const std::string& GetLabel() const; fml::RefPtr GetPlatformTaskRunner() const; fml::RefPtr GetUITaskRunner() const; fml::RefPtr GetIOTaskRunner() const; fml::RefPtr GetRasterTaskRunner() const; bool IsValid() const; private: const std::string label_; fml::RefPtr platform_; fml::RefPtr raster_; fml::RefPtr ui_; fml::RefPtr io_; }; } // namespace flutter #endif // FLUTTER_COMMON_TASK_RUNNERS_H_