Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrMockRenderTask Class Referencefinal

#include <GrMockRenderTask.h>

Inheritance diagram for GrMockRenderTask:
GrRenderTask SkRefCnt SkRefCntBase

Public Member Functions

 GrMockRenderTask ()
 
void addTarget (sk_sp< GrSurfaceProxy > proxy)
 
void addDependency (GrRenderTask *dep)
 
void addUsed (sk_sp< GrSurfaceProxy > proxy)
 
void gatherProxyIntervals (GrResourceAllocator *) const override
 
ExpectedOutcome onMakeClosed (GrRecordingContext *, SkIRect *) override
 
bool onIsUsed (GrSurfaceProxy *proxy) const override
 
bool onExecute (GrOpFlushState *) 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
 
virtual void gatherProxyIntervals (GrResourceAllocator *) const =0
 
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
 

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)
 
virtual ExpectedOutcome onMakeClosed (GrRecordingContext *, SkIRect *targetUpdateBounds)=0
 
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 *, truefDeferredProxies
 

Detailed Description

Definition at line 26 of file GrMockRenderTask.h.

Constructor & Destructor Documentation

◆ GrMockRenderTask()

GrMockRenderTask::GrMockRenderTask ( )
inline

Definition at line 28 of file GrMockRenderTask.h.

28 : GrRenderTask() {
29 // Mock tasks are never "owned" by a drawmgr in the first place.
31 }
void setFlag(uint32_t flag)
Definition: GrRenderTask.h:200
@ kDisowned_Flag
This task is disowned by its GrDrawingManager.
Definition: GrRenderTask.h:191

Member Function Documentation

◆ addDependency()

void GrMockRenderTask::addDependency ( GrRenderTask dep)
inline

Definition at line 34 of file GrMockRenderTask.h.

34{ fDependencies.push_back(dep); }

◆ addTarget()

void GrMockRenderTask::addTarget ( sk_sp< GrSurfaceProxy proxy)
inline

Definition at line 33 of file GrMockRenderTask.h.

33{ fTargets.push_back(std::move(proxy)); }
skia_private::STArray< 1, sk_sp< GrSurfaceProxy > > fTargets
Definition: GrRenderTask.h:182

◆ addUsed()

void GrMockRenderTask::addUsed ( sk_sp< GrSurfaceProxy proxy)
inline

Definition at line 35 of file GrMockRenderTask.h.

35{ fUsed.push_back(std::move(proxy)); }

◆ gatherProxyIntervals()

void GrMockRenderTask::gatherProxyIntervals ( GrResourceAllocator ) const
inlineoverridevirtual

Implements GrRenderTask.

Definition at line 41 of file GrMockRenderTask.h.

41{}

◆ onExecute()

bool GrMockRenderTask::onExecute ( GrOpFlushState )
inlineoverridevirtual

Implements GrRenderTask.

Definition at line 51 of file GrMockRenderTask.h.

51{ return true; }

◆ onIsUsed()

bool GrMockRenderTask::onIsUsed ( GrSurfaceProxy proxy) const
inlineoverridevirtual

Implements GrRenderTask.

Definition at line 43 of file GrMockRenderTask.h.

43 {
44 for (const auto& entry : fUsed) {
45 if (entry.get() == proxy) {
46 return true;
47 }
48 }
49 return false;
50 }

◆ onMakeClosed()

ExpectedOutcome GrMockRenderTask::onMakeClosed ( GrRecordingContext ,
SkIRect  
)
inlineoverridevirtual

Implements GrRenderTask.

Definition at line 42 of file GrMockRenderTask.h.

#define SkUNREACHABLE
Definition: SkAssert.h:135

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