Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
graphite
task
ClearBuffersTask.h
Go to the documentation of this file.
1
/*
2
* Copyright 2022 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
#ifndef skgpu_graphite_task_ClearBuffersTask_DEFINED
9
#define skgpu_graphite_task_ClearBuffersTask_DEFINED
10
11
#include "
include/private/base/SkTArray.h
"
12
#include "
src/gpu/graphite/ResourceTypes.h
"
13
#include "
src/gpu/graphite/task/Task.h
"
14
15
namespace
skgpu::graphite
{
16
17
/**
18
* Task that clears a region of a list of buffers to 0.
19
*/
20
class
ClearBuffersTask
final :
public
Task
{
21
public
:
22
static
sk_sp<ClearBuffersTask>
Make
(
skia_private::TArray<ClearBufferInfo>
);
23
~ClearBuffersTask
()
override
;
24
25
Status
prepareResources
(
ResourceProvider
*,
26
ScratchResourceManager
*,
27
const
RuntimeEffectDictionary
*)
override
{
28
return
Status::kSuccess
;
29
}
30
31
Status
addCommands
(
Context
*,
CommandBuffer
*, ReplayTargetData)
override
;
32
33
private
:
34
explicit
ClearBuffersTask
(
skia_private::TArray<ClearBufferInfo>
clearList)
35
: fClearList(
std
::move(clearList)) {}
36
37
skia_private::TArray<ClearBufferInfo>
fClearList;
38
};
39
40
}
// namespace skgpu::graphite
41
42
#endif
// skgpu_graphite_task_ClearBuffersTask_DEFINED
ResourceTypes.h
SkTArray.h
Task.h
sk_sp
Definition:
SkRefCnt.h:220
skgpu::graphite::ClearBuffersTask
Definition:
ClearBuffersTask.h:20
skgpu::graphite::ClearBuffersTask::addCommands
Status addCommands(Context *, CommandBuffer *, ReplayTargetData) override
Definition:
ClearBuffersTask.cpp:20
skgpu::graphite::ClearBuffersTask::Make
static sk_sp< ClearBuffersTask > Make(skia_private::TArray< ClearBufferInfo >)
Definition:
ClearBuffersTask.cpp:14
skgpu::graphite::ClearBuffersTask::~ClearBuffersTask
~ClearBuffersTask() override
Definition:
ClearBuffersTask.cpp:18
skgpu::graphite::ClearBuffersTask::prepareResources
Status prepareResources(ResourceProvider *, ScratchResourceManager *, const RuntimeEffectDictionary *) override
Definition:
ClearBuffersTask.h:25
skgpu::graphite::CommandBuffer
Definition:
CommandBuffer.h:38
skgpu::graphite::Context
Definition:
Context.h:43
skgpu::graphite::ResourceProvider
Definition:
ResourceProvider.h:50
skgpu::graphite::RuntimeEffectDictionary
Definition:
RuntimeEffectDictionary.h:22
skgpu::graphite::ScratchResourceManager
Definition:
ScratchResourceManager.h:75
skgpu::graphite::Task
Definition:
Task.h:23
skgpu::graphite::Task::Status
Status
Definition:
Task.h:31
skgpu::graphite::Task::Status::kSuccess
@ kSuccess
skia_private::TArray
Definition:
SkTArray.h:40
skgpu::graphite
Definition:
BoundsManagerBench.cpp:27
std
Definition:
ref_ptr.h:256
Generated on Sun Jun 23 2024 21:56:28 for Flutter Engine by
1.9.4