Flutter Engine
The Flutter Engine
|
#include <GrGLOpsRenderPass.h>
Public Member Functions | |
GrGLOpsRenderPass (GrGLGpu *gpu) | |
void | inlineUpload (GrOpFlushState *state, GrDeferredTextureUploadFn &upload) override |
void | set (GrRenderTarget *, bool useMSAASurface, const SkIRect &contentBounds, GrSurfaceOrigin, const LoadAndStoreInfo &, const StencilLoadAndStoreInfo &) |
void | reset () |
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 |
GrRenderTarget * | fRenderTarget |
sk_sp< const GrBuffer > | fActiveIndexBuffer |
sk_sp< const GrBuffer > | fActiveVertexBuffer |
sk_sp< const GrBuffer > | fActiveInstanceBuffer |
Definition at line 20 of file GrGLOpsRenderPass.h.
|
inline |
We do not actually buffer up draws or do any work in the this class for GL. Instead commands are immediately sent to the gpu to execute. Thus all the commands in this class are simply pass through functions to corresponding calls in the GrGLGpu class.
Definition at line 27 of file GrGLOpsRenderPass.h.
|
inlineoverridevirtual |
Implements GrOpsRenderPass.
Definition at line 29 of file GrGLOpsRenderPass.h.
|
inline |
Definition at line 36 of file GrGLOpsRenderPass.h.
void GrGLOpsRenderPass::set | ( | GrRenderTarget * | rt, |
bool | useMSAASurface, | ||
const SkIRect & | contentBounds, | ||
GrSurfaceOrigin | origin, | ||
const LoadAndStoreInfo & | colorInfo, | ||
const StencilLoadAndStoreInfo & | stencilInfo | ||
) |
Definition at line 21 of file GrGLOpsRenderPass.cpp.