/* * Copyright 2021 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef skgpu_TaskGraph_DEFINED #define skgpu_TaskGraph_DEFINED #include #include "experimental/graphite/src/Task.h" namespace skgpu { class CommandBuffer; class ResourceProvider; class TaskGraph { public: TaskGraph(); ~TaskGraph(); void add(sk_sp); void addCommands(ResourceProvider*, CommandBuffer*); void reset(); protected: private: std::vector> fTasks; }; } // namespace skgpu #endif // skgpu_TaskGraph_DEFINED