#include <GrCopyRenderTask.h>
|
| GrRenderTask () |
|
| SkDEBUGCODE (~GrRenderTask() override;) void makeClosed(GrRecordingContext *) |
|
void | prePrepare (GrRecordingContext *context) |
|
void | prepare (GrOpFlushState *flushState) |
|
bool | execute (GrOpFlushState *flushState) |
|
virtual bool | requiresExplicitCleanup () const |
|
virtual void | endFlush (GrDrawingManager *) |
|
virtual void | disown (GrDrawingManager *) |
|
bool | isClosed () const |
|
void | makeSkippable () |
|
bool | isSkippable () const |
|
bool | blocksReordering () const |
|
void | addDependency (GrDrawingManager *, GrSurfaceProxy *dependedOn, skgpu::Mipmapped, GrTextureResolveManager, const GrCaps &caps) |
|
void | addDependenciesFromOtherTask (GrRenderTask *otherTask) |
|
SkSpan< GrRenderTask * > | dependencies () |
|
SkSpan< GrRenderTask * > | dependents () |
|
void | replaceDependency (const GrRenderTask *toReplace, GrRenderTask *replaceWith) |
|
void | replaceDependent (const GrRenderTask *toReplace, GrRenderTask *replaceWith) |
|
bool | dependsOn (const GrRenderTask *dependedOn) const |
|
uint32_t | uniqueID () const |
|
int | numTargets () const |
|
GrSurfaceProxy * | target (int i) const |
|
virtual skgpu::ganesh::OpsTask * | asOpsTask () |
|
bool | isUsed (GrSurfaceProxy *proxy) const |
|
bool | isInstantiated () const |
|
| SK_DECLARE_INTERNAL_LLIST_INTERFACE (GrRenderTask) |
|
| SkRefCntBase () |
|
virtual | ~SkRefCntBase () |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
enum class | ExpectedOutcome : bool { kTargetUnchanged
, kTargetDirty
} |
|
enum | Flags {
kClosed_Flag = 0x01
, kDisowned_Flag = 0x02
, kSkippable_Flag = 0x04
, kAtlas_Flag = 0x08
,
kBlocksReordering_Flag = 0x10
, kWasOutput_Flag = 0x20
, kTempMark_Flag = 0x40
} |
|
| SkDEBUGCODE (bool deferredProxiesAreInstantiated() const ;) void addTarget(GrDrawingManager * |
|
void | addTarget (GrDrawingManager *dm, const GrSurfaceProxyView &view) |
|
void | setFlag (uint32_t flag) |
|
void | resetFlag (uint32_t flag) |
|
bool | isSetFlag (uint32_t flag) const |
|
void | setIndex (uint32_t index) |
|
uint32_t | getIndex () const |
|
| sk_sp< GrSurfaceProxy > |
|
skia_private::STArray< 1, sk_sp< GrSurfaceProxy > > | fTargets |
|
skia_private::TArray< GrTextureProxy *, true > | fDeferredProxies |
|
Definition at line 14 of file GrCopyRenderTask.h.
◆ gatherProxyIntervals()
Implements GrRenderTask.
Definition at line 53 of file GrCopyRenderTask.cpp.
53 {
54 if (!fSrc) {
56 return;
57 }
58
59
60
68}
void addInterval(GrSurfaceProxy *, unsigned int start, unsigned int end, ActualUse actualUse, AllowRecycling SkDEBUGCODE(, bool isDirectDstRead=false))
unsigned int curOp() const
◆ Make()
Copies pixels from srcRect in src to dstRect in dst. srcRect and dstRect must both be contained in their respective surface dimensions; they do not have to have the same size if the GPU supports scaling and filtering while copying. The src/dst share a common origin.
Definition at line 15 of file GrCopyRenderTask.cpp.
21 {
24
25
28
30 std::move(dst),
31 dstRect,
32 std::move(src),
33 srcRect,
34 filter,
35 origin));
36}
static constexpr SkIRect MakeSize(const SkISize &size)
bool contains(int32_t x, int32_t y) const
◆ onExecute()
Implements GrRenderTask.
Definition at line 81 of file GrCopyRenderTask.cpp.
81 {
82 if (!fSrc) {
83
84 return true;
85 }
88 return false;
89 }
94 return flushState->
gpu()->
copySurface(dstSurface, dstRect, srcSurface, srcRect, fFilter);
95}
bool copySurface(GrSurface *dst, const SkIRect &dstRect, GrSurface *src, const SkIRect &srcRect, GrSamplerState::Filter filter)
GrSurface * peekSurface() const
bool isInstantiated() const
static SkIRect MakeIRectRelativeTo(GrSurfaceOrigin origin, int rtHeight, SkIRect devRect)
◆ onIsUsed()
|
inlineoverrideprivatevirtual |
◆ onMakeClosed()
◆ onMakeSkippable()
void GrCopyRenderTask::onMakeSkippable |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following files: