Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
DrawTask.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2024 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
9
11
12namespace skgpu::graphite {
13
15
16DrawTask::~DrawTask() = default;
17
19 const RuntimeEffectDictionary* rteDict) {
20 return fChildTasks.prepareResources(resourceProvider, rteDict);
21}
22
24 CommandBuffer* commandBuffer,
25 ReplayTargetData replayTarget) {
26 return fChildTasks.addCommands(ctx, commandBuffer, replayTarget);
27}
28
29} // namespace skgpu::graphite
DrawTask(sk_sp< TextureProxy > target)
Definition DrawTask.cpp:14
Status prepareResources(ResourceProvider *, const RuntimeEffectDictionary *) override
Definition DrawTask.cpp:18
Status addCommands(Context *, CommandBuffer *, ReplayTargetData) override
Definition DrawTask.cpp:23
Task::Status addCommands(Context *, CommandBuffer *, Task::ReplayTargetData)
Definition TaskList.cpp:44
Task::Status prepareResources(ResourceProvider *, const RuntimeEffectDictionary *)
Definition TaskList.cpp:36
uint32_t * target
Definition ref_ptr.h:256