Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
GrWritePixelsRenderTask.h
Go to the documentation of this file.
1
/*
2
* Copyright 2021 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 GrWritePixelsTask_DEFINED
9
#define GrWritePixelsTask_DEFINED
10
11
#include "
src/gpu/ganesh/GrRenderTask.h
"
12
13
class
GrWritePixelsTask
final :
public
GrRenderTask
{
14
public
:
15
static
sk_sp<GrRenderTask>
Make
(
GrDrawingManager
*,
16
sk_sp<GrSurfaceProxy>
,
17
SkIRect
,
18
GrColorType
srcColorType,
19
GrColorType
dstColorType,
20
const
GrMipLevel
[],
21
int
levelCount);
22
23
private
:
24
GrWritePixelsTask
(
GrDrawingManager
*,
25
sk_sp<GrSurfaceProxy>
dst
,
26
SkIRect
,
27
GrColorType
srcColorType,
28
GrColorType
dstColorType,
29
const
GrMipLevel
[],
30
int
levelCount);
31
32
bool
onIsUsed(
GrSurfaceProxy
* proxy)
const override
{
return
false
; }
33
void
gatherProxyIntervals(
GrResourceAllocator
*)
const override
;
34
ExpectedOutcome
onMakeClosed(
GrRecordingContext
*,
SkIRect
* targetUpdateBounds)
override
;
35
bool
onExecute(
GrOpFlushState
*)
override
;
36
37
#if defined(GR_TEST_UTILS)
38
const
char
*
name
()
const
final
{
return
"WritePixels"
; }
39
#endif
40
#ifdef SK_DEBUG
41
void
visitProxies_debugOnly(
const
GrVisitProxyFunc
&)
const override
{}
42
#endif
43
44
skia_private::AutoSTArray<16, GrMipLevel>
fLevels;
45
SkIRect
fRect;
46
GrColorType
fSrcColorType;
47
GrColorType
fDstColorType;
48
};
49
50
#endif
51
GrRenderTask.h
GrVisitProxyFunc
std::function< void(GrSurfaceProxy *, skgpu::Mipmapped)> GrVisitProxyFunc
Definition:
GrTypesPriv.h:943
GrColorType
GrColorType
Definition:
GrTypesPriv.h:540
GrDrawingManager
Definition:
GrDrawingManager.h:46
GrOpFlushState
Definition:
GrOpFlushState.h:58
GrRecordingContext
Definition:
GrRecordingContext.h:42
GrRenderTask
Definition:
GrRenderTask.h:31
GrRenderTask::ExpectedOutcome
ExpectedOutcome
Definition:
GrRenderTask.h:170
GrResourceAllocator
Definition:
GrResourceAllocator.h:78
GrSurfaceProxy
Definition:
GrSurfaceProxy.h:49
GrWritePixelsTask
Definition:
GrWritePixelsRenderTask.h:13
GrWritePixelsTask::Make
static sk_sp< GrRenderTask > Make(GrDrawingManager *, sk_sp< GrSurfaceProxy >, SkIRect, GrColorType srcColorType, GrColorType dstColorType, const GrMipLevel[], int levelCount)
Definition:
GrWritePixelsRenderTask.cpp:14
sk_sp< GrRenderTask >
skia_private::AutoSTArray< 16, GrMipLevel >
flutter::name
DEF_SWITCHES_START aot vmservice shared library name
Definition:
switches.h:32
gn.cp.dst
dst
Definition:
cp.py:12
GrMipLevel
Definition:
GrTypesPriv.h:134
SkIRect
Definition:
SkRect.h:32
Generated on Sun Jun 23 2024 21:56:21 for Flutter Engine by
1.9.4