Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
GrBufferUpdateRenderTask.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 GrBufferUpdateRenderTask_DEFINED
9
#define GrBufferUpdateRenderTask_DEFINED
10
11
#include "
src/gpu/ganesh/GrRenderTask.h
"
12
13
class
GrGpuBuffer
;
14
15
class
GrBufferUpdateRenderTask
final :
public
GrRenderTask
{
16
public
:
17
static
sk_sp<GrRenderTask>
Make
(
sk_sp<SkData>
src
,
sk_sp<GrGpuBuffer>
dst
,
size_t
dstOffset);
18
19
~GrBufferUpdateRenderTask
()
override
;
20
21
private
:
22
GrBufferUpdateRenderTask
(
sk_sp<SkData>
src
,
sk_sp<GrGpuBuffer>
dst
,
size_t
dstOffset);
23
24
bool
onIsUsed(
GrSurfaceProxy
* proxy)
const override
{
return
false
; }
25
void
gatherProxyIntervals(
GrResourceAllocator
*)
const override
{}
// no proxies
26
ExpectedOutcome
onMakeClosed(
GrRecordingContext
*,
SkIRect
* targetUpdateBounds)
override
{
27
return
ExpectedOutcome::kTargetUnchanged
;
// no target
28
}
29
bool
onExecute(
GrOpFlushState
*)
override
;
30
31
#if defined(GR_TEST_UTILS)
32
const
char
*
name
() const final {
return
"BufferUpdate"
; }
33
#endif
34
#ifdef SK_DEBUG
35
void
visitProxies_debugOnly(
const
GrVisitProxyFunc
&)
const override
{}
36
#endif
37
38
sk_sp<SkData>
fSrc;
39
sk_sp<GrGpuBuffer>
fDst;
40
size_t
fDstOffset;
41
};
42
43
#endif
GrRenderTask.h
GrVisitProxyFunc
std::function< void(GrSurfaceProxy *, skgpu::Mipmapped)> GrVisitProxyFunc
Definition:
GrTypesPriv.h:943
GrBufferUpdateRenderTask
Definition:
GrBufferUpdateRenderTask.h:15
GrBufferUpdateRenderTask::~GrBufferUpdateRenderTask
~GrBufferUpdateRenderTask() override
GrBufferUpdateRenderTask::Make
static sk_sp< GrRenderTask > Make(sk_sp< SkData > src, sk_sp< GrGpuBuffer > dst, size_t dstOffset)
Definition:
GrBufferUpdateRenderTask.cpp:14
GrGpuBuffer
Definition:
GrGpuBuffer.h:24
GrOpFlushState
Definition:
GrOpFlushState.h:58
GrRecordingContext
Definition:
GrRecordingContext.h:42
GrRenderTask
Definition:
GrRenderTask.h:31
GrRenderTask::ExpectedOutcome
ExpectedOutcome
Definition:
GrRenderTask.h:170
GrRenderTask::ExpectedOutcome::kTargetUnchanged
@ kTargetUnchanged
GrResourceAllocator
Definition:
GrResourceAllocator.h:78
GrSurfaceProxy
Definition:
GrSurfaceProxy.h:49
sk_sp< GrRenderTask >
flutter::name
DEF_SWITCHES_START aot vmservice shared library name
Definition:
switches.h:32
gn.cp.dst
dst
Definition:
cp.py:12
mskp_parser.src
src
Definition:
mskp_parser.py:22
SkIRect
Definition:
SkRect.h:32
Generated on Sun Jun 23 2024 21:56:19 for Flutter Engine by
1.9.4