Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
GrBufferUpdateRenderTask Class Referencefinal

#include <GrBufferUpdateRenderTask.h>

Inheritance diagram for GrBufferUpdateRenderTask:
GrRenderTask SkRefCnt SkRefCntBase

Public Member Functions

 ~GrBufferUpdateRenderTask () override
 
- Public Member Functions inherited from GrRenderTask
 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
 
GrSurfaceProxytarget (int i) const
 
virtual skgpu::ganesh::OpsTaskasOpsTask ()
 
bool isUsed (GrSurfaceProxy *proxy) const
 
bool isInstantiated () const
 
 SK_DECLARE_INTERNAL_LLIST_INTERFACE (GrRenderTask)
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Static Public Member Functions

static sk_sp< GrRenderTaskMake (sk_sp< SkData > src, sk_sp< GrGpuBuffer > dst, size_t dstOffset)
 

Private Member Functions

bool onIsUsed (GrSurfaceProxy *proxy) const override
 
void gatherProxyIntervals (GrResourceAllocator *) const override
 
ExpectedOutcome onMakeClosed (GrRecordingContext *, SkIRect *targetUpdateBounds) override
 
bool onExecute (GrOpFlushState *) override
 

Additional Inherited Members

- Protected Types inherited from GrRenderTask
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
}
 
- Protected Member Functions inherited from GrRenderTask
 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
 
- Protected Attributes inherited from GrRenderTask
 sk_sp< GrSurfaceProxy >
 
skia_private::STArray< 1, sk_sp< GrSurfaceProxy > > fTargets
 
skia_private::TArray< GrTextureProxy *, true > fDeferredProxies
 

Detailed Description

Definition at line 15 of file GrBufferUpdateRenderTask.h.

Constructor & Destructor Documentation

◆ ~GrBufferUpdateRenderTask()

GrBufferUpdateRenderTask::~GrBufferUpdateRenderTask ( )
overridedefault

Member Function Documentation

◆ gatherProxyIntervals()

void GrBufferUpdateRenderTask::gatherProxyIntervals ( GrResourceAllocator ) const
inlineoverrideprivatevirtual

Implements GrRenderTask.

Definition at line 25 of file GrBufferUpdateRenderTask.h.

25{} // no proxies

◆ Make()

sk_sp< GrRenderTask > GrBufferUpdateRenderTask::Make ( sk_sp< SkData src,
sk_sp< GrGpuBuffer dst,
size_t  dstOffset 
)
static

Definition at line 14 of file GrBufferUpdateRenderTask.cpp.

16 {
17 return sk_sp<GrRenderTask>(new GrBufferUpdateRenderTask(std::move(src),
18 std::move(dst),
19 dstOffset));
20}

◆ onExecute()

bool GrBufferUpdateRenderTask::onExecute ( GrOpFlushState flushState)
overrideprivatevirtual

Implements GrRenderTask.

Definition at line 33 of file GrBufferUpdateRenderTask.cpp.

33 {
34 return fDst->updateData(fSrc->data(), fDstOffset, fSrc->size(), /*preserve=*/true);
35}
bool updateData(const void *src, size_t offset, size_t size, bool preserve)
const void * data() const
Definition SkData.h:37
size_t size() const
Definition SkData.h:30

◆ onIsUsed()

bool GrBufferUpdateRenderTask::onIsUsed ( GrSurfaceProxy proxy) const
inlineoverrideprivatevirtual

Implements GrRenderTask.

Definition at line 24 of file GrBufferUpdateRenderTask.h.

24{ return false; }

◆ onMakeClosed()

ExpectedOutcome GrBufferUpdateRenderTask::onMakeClosed ( GrRecordingContext ,
SkIRect targetUpdateBounds 
)
inlineoverrideprivatevirtual

Implements GrRenderTask.

Definition at line 26 of file GrBufferUpdateRenderTask.h.

26 {
27 return ExpectedOutcome::kTargetUnchanged; // no target
28 }

The documentation for this class was generated from the following files: