Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrMockOpsRenderPass Class Reference

#include <GrMockOpsRenderPass.h>

Inheritance diagram for GrMockOpsRenderPass:
GrOpsRenderPass

Public Member Functions

 GrMockOpsRenderPass (GrMockGpu *gpu, GrRenderTarget *rt, GrSurfaceOrigin origin, LoadAndStoreInfo colorInfo)
 
GrGpugpu () override
 
void inlineUpload (GrOpFlushState *, GrDeferredTextureUploadFn &) override
 
int numDraws () const
 
- Public Member Functions inherited from GrOpsRenderPass
virtual ~GrOpsRenderPass ()
 
void begin ()
 
void end ()
 
void bindPipeline (const GrProgramInfo &, const SkRect &drawBounds)
 
void setScissorRect (const SkIRect &)
 
void bindTextures (const GrGeometryProcessor &, const GrSurfaceProxy *const geomProcTextures[], const GrPipeline &)
 
void bindBuffers (sk_sp< const GrBuffer > indexBuffer, sk_sp< const GrBuffer > instanceBuffer, sk_sp< const GrBuffer > vertexBuffer, GrPrimitiveRestart=GrPrimitiveRestart::kNo)
 
void draw (int vertexCount, int baseVertex)
 
void drawIndexed (int indexCount, int baseIndex, uint16_t minIndexValue, uint16_t maxIndexValue, int baseVertex)
 
void drawInstanced (int instanceCount, int baseInstance, int vertexCount, int baseVertex)
 
void drawIndexedInstanced (int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex)
 
void drawIndirect (const GrBuffer *drawIndirectBuffer, size_t bufferOffset, int drawCount)
 
void drawIndexedIndirect (const GrBuffer *drawIndirectBuffer, size_t bufferOffset, int drawCount)
 
void drawIndexPattern (int patternIndexCount, int patternRepeatCount, int maxPatternRepetitionsInIndexBuffer, int patternVertexCount, int baseVertex)
 
virtual void inlineUpload (GrOpFlushState *, GrDeferredTextureUploadFn &)=0
 
void clear (const GrScissorState &scissor, std::array< float, 4 > color)
 
void clearStencilClip (const GrScissorState &scissor, bool insideStencilMask)
 
void executeDrawable (std::unique_ptr< SkDrawable::GpuDrawHandler >)
 

Additional Inherited Members

- Protected Member Functions inherited from GrOpsRenderPass
 GrOpsRenderPass ()
 
 GrOpsRenderPass (GrRenderTarget *rt, GrSurfaceOrigin origin)
 
void set (GrRenderTarget *rt, GrSurfaceOrigin origin)
 
- Protected Attributes inherited from GrOpsRenderPass
GrSurfaceOrigin fOrigin
 
GrRenderTargetfRenderTarget
 
sk_sp< const GrBufferfActiveIndexBuffer
 
sk_sp< const GrBufferfActiveVertexBuffer
 
sk_sp< const GrBufferfActiveInstanceBuffer
 

Detailed Description

Definition at line 35 of file GrMockOpsRenderPass.h.

Constructor & Destructor Documentation

◆ GrMockOpsRenderPass()

GrMockOpsRenderPass::GrMockOpsRenderPass ( GrMockGpu gpu,
GrRenderTarget rt,
GrSurfaceOrigin  origin,
LoadAndStoreInfo  colorInfo 
)
inline

Definition at line 37 of file GrMockOpsRenderPass.h.

39 : INHERITED(rt, origin)
40 , fGpu(gpu)
41 , fColorLoadOp(colorInfo.fLoadOp) {
42 }
GrGpu * gpu() override

Member Function Documentation

◆ gpu()

GrGpu * GrMockOpsRenderPass::gpu ( )
inlineoverridevirtual

Implements GrOpsRenderPass.

Definition at line 44 of file GrMockOpsRenderPass.h.

44{ return fGpu; }

◆ inlineUpload()

void GrMockOpsRenderPass::inlineUpload ( GrOpFlushState ,
GrDeferredTextureUploadFn  
)
inlineoverridevirtual

Implements GrOpsRenderPass.

Definition at line 45 of file GrMockOpsRenderPass.h.

45{}

◆ numDraws()

int GrMockOpsRenderPass::numDraws ( ) const
inline

Definition at line 47 of file GrMockOpsRenderPass.h.

47{ return fNumDraws; }

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