blob: f4befe96c1b63ac0030ed96d6b0496133d8b7965 [file] [log] [blame]
/*
* 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 <vector>
#include "experimental/graphite/src/Task.h"
namespace skgpu {
class CommandBuffer;
class ResourceProvider;
class TaskGraph {
public:
TaskGraph();
~TaskGraph();
void add(sk_sp<Task>);
void addCommands(Context*, CommandBuffer*);
void reset();
protected:
private:
std::vector<sk_sp<Task>> fTasks;
};
} // namespace skgpu
#endif // skgpu_TaskGraph_DEFINED