8#ifndef skgpu_graphite_task_TaskList_DEFINED
9#define skgpu_graphite_task_TaskList_DEFINED
19class ScratchResourceManager;
25 void add(
TaskList&& tasks) { fTasks.move_back(tasks.fTasks); }
27 void reset() { fTasks.clear(); }
29 int size()
const {
return fTasks.size(); }
30 bool hasTasks()
const {
return !fTasks.empty(); }
42 template <
typename Fn>
void add(sk_sp< Task > task)
Task::Status addCommands(Context *, CommandBuffer *, Task::ReplayTargetData)
Task::Status prepareResources(ResourceProvider *, ScratchResourceManager *, const RuntimeEffectDictionary *)
void add(TaskList &&tasks)