Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
src
gpu
graphite
task
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
8
#include "
src/gpu/graphite/task/DrawTask.h
"
9
10
#include "
src/gpu/graphite/TextureProxy.h
"
11
12
namespace
skgpu::graphite
{
13
14
DrawTask::DrawTask
(
sk_sp<TextureProxy>
target
) : fTarget(
std
::move(
target
)) {}
15
16
DrawTask::~DrawTask
() =
default
;
17
18
Task::Status
DrawTask::prepareResources
(
ResourceProvider
* resourceProvider,
19
const
RuntimeEffectDictionary
* rteDict) {
20
return
fChildTasks.
prepareResources
(resourceProvider, rteDict);
21
}
22
23
Task::Status
DrawTask::addCommands
(
Context
* ctx,
24
CommandBuffer
* commandBuffer,
25
ReplayTargetData
replayTarget) {
26
return
fChildTasks.
addCommands
(ctx, commandBuffer, replayTarget);
27
}
28
29
}
// namespace skgpu::graphite
DrawTask.h
TextureProxy.h
sk_sp
Definition
SkRefCnt.h:220
skgpu::graphite::CommandBuffer
Definition
CommandBuffer.h:38
skgpu::graphite::Context
Definition
Context.h:43
skgpu::graphite::DrawTask::~DrawTask
~DrawTask() override
skgpu::graphite::DrawTask::DrawTask
DrawTask(sk_sp< TextureProxy > target)
Definition
DrawTask.cpp:14
skgpu::graphite::DrawTask::prepareResources
Status prepareResources(ResourceProvider *, const RuntimeEffectDictionary *) override
Definition
DrawTask.cpp:18
skgpu::graphite::DrawTask::addCommands
Status addCommands(Context *, CommandBuffer *, ReplayTargetData) override
Definition
DrawTask.cpp:23
skgpu::graphite::ResourceProvider
Definition
ResourceProvider.h:50
skgpu::graphite::RuntimeEffectDictionary
Definition
RuntimeEffectDictionary.h:22
skgpu::graphite::TaskList::addCommands
Task::Status addCommands(Context *, CommandBuffer *, Task::ReplayTargetData)
Definition
TaskList.cpp:44
skgpu::graphite::TaskList::prepareResources
Task::Status prepareResources(ResourceProvider *, const RuntimeEffectDictionary *)
Definition
TaskList.cpp:36
skgpu::graphite::Task::Status
Status
Definition
Task.h:30
target
uint32_t * target
Definition
fl_texture_registrar_test.cc:40
skgpu::graphite
Definition
BoundsManagerBench.cpp:27
std
Definition
ref_ptr.h:256
skgpu::graphite::Task::ReplayTargetData
Definition
Task.h:25
Generated on Fri Apr 26 2024 06:17:20 for Flutter Engine by
1.9.8