Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
 
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)
 
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 25 of file GrMockRenderTask.h.

Constructor & Destructor Documentation

◆ GrMockRenderTask()

GrMockRenderTask::GrMockRenderTask ( )
inline

Definition at line 27 of file GrMockRenderTask.h.

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

Member Function Documentation

◆ addDependency()

void GrMockRenderTask::addDependency ( GrRenderTask dep)
inline

Definition at line 33 of file GrMockRenderTask.h.

33{ fDependencies.push_back(dep); }

◆ addTarget()

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

Definition at line 32 of file GrMockRenderTask.h.

32{ fTargets.push_back(std::move(proxy)); }
skia_private::STArray< 1, sk_sp< GrSurfaceProxy > > fTargets

◆ addUsed()

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

Definition at line 34 of file GrMockRenderTask.h.

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

◆ gatherProxyIntervals()

void GrMockRenderTask::gatherProxyIntervals ( GrResourceAllocator ) const
inlineoverridevirtual

Implements GrRenderTask.

Definition at line 40 of file GrMockRenderTask.h.

40{}

◆ onExecute()

bool GrMockRenderTask::onExecute ( GrOpFlushState )
inlineoverridevirtual

Implements GrRenderTask.

Definition at line 50 of file GrMockRenderTask.h.

50{ return true; }

◆ onIsUsed()

bool GrMockRenderTask::onIsUsed ( GrSurfaceProxy proxy) const
inlineoverridevirtual

Implements GrRenderTask.

Definition at line 42 of file GrMockRenderTask.h.

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

◆ onMakeClosed()

ExpectedOutcome GrMockRenderTask::onMakeClosed ( GrRecordingContext ,
SkIRect  
)
inlineoverridevirtual

Implements GrRenderTask.

Definition at line 41 of file GrMockRenderTask.h.

#define SkUNREACHABLE
Definition SkAssert.h:135

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