Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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:942
GrColorType
GrColorType
Definition
GrTypesPriv.h:539
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::gatherProxyIntervals
void gatherProxyIntervals(GrResourceAllocator *) const override
Definition
GrWritePixelsRenderTask.cpp:45
GrWritePixelsTask::Make
static sk_sp< GrRenderTask > Make(GrDrawingManager *, sk_sp< GrSurfaceProxy >, SkIRect, GrColorType srcColorType, GrColorType dstColorType, const GrMipLevel[], int levelCount)
Definition
GrWritePixelsRenderTask.cpp:14
GrWritePixelsTask::onExecute
bool onExecute(GrOpFlushState *) override
Definition
GrWritePixelsRenderTask.cpp:58
GrWritePixelsTask::onMakeClosed
ExpectedOutcome onMakeClosed(GrRecordingContext *, SkIRect *targetUpdateBounds) override
Definition
GrWritePixelsRenderTask.cpp:52
GrWritePixelsTask::onIsUsed
bool onIsUsed(GrSurfaceProxy *proxy) const override
Definition
GrWritePixelsRenderTask.h:32
sk_sp
Definition
SkRefCnt.h:220
skia_private::AutoSTArray
Definition
SkTemplates.h:169
name
const char * name
Definition
fuchsia.cc:50
GrMipLevel
Definition
GrTypesPriv.h:133
SkIRect
Definition
SkRect.h:32
Generated on Fri Apr 26 2024 06:17:06 for Flutter Engine by
1.9.8