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) |
void | clear (const GrScissorState &scissor, std::array< float, 4 > color) |
void | clearStencilClip (const GrScissorState &scissor, bool insideStencilMask) |
void | executeDrawable (std::unique_ptr< SkDrawable::GpuDrawHandler >) |
Private Member Functions | |
GrGpu * | gpu () override |
void | onBegin () override |
void | onEnd () override |
bool | onBindPipeline (const GrProgramInfo &programInfo, const SkRect &drawBounds) override |
void | onSetScissorRect (const SkIRect &scissor) override |
bool | onBindTextures (const GrGeometryProcessor &, const GrSurfaceProxy *const geomProcTextures[], const GrPipeline &) override |
void | onBindBuffers (sk_sp< const GrBuffer > indexBuffer, sk_sp< const GrBuffer > instanceBuffer, sk_sp< const GrBuffer > vertexBuffer, GrPrimitiveRestart) override |
void | onDraw (int vertexCount, int baseVertex) override |
void | onDrawIndexed (int indexCount, int baseIndex, uint16_t minIndexValue, uint16_t maxIndexValue, int baseVertex) override |
void | onDrawInstanced (int instanceCount, int baseInstance, int vertexCount, int baseVertex) override |
void | onDrawIndexedInstanced (int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex) override |
void | onDrawIndirect (const GrBuffer *drawIndirectBuffer, size_t offset, int drawCount) override |
void | onDrawIndexedIndirect (const GrBuffer *drawIndirectBuffer, size_t offset, int drawCount) override |
void | onClear (const GrScissorState &scissor, std::array< float, 4 > color) override |
void | onClearStencilClip (const GrScissorState &scissor, bool insideStencilMask) override |
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.
|
inlineoverrideprivatevirtual |
|
inlineoverridevirtual |
Implements GrOpsRenderPass.
Definition at line 29 of file GrGLOpsRenderPass.h.
|
overrideprivatevirtual |
Reimplemented from GrOpsRenderPass.
Definition at line 48 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Implements GrOpsRenderPass.
Definition at line 100 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Implements GrOpsRenderPass.
Definition at line 81 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Implements GrOpsRenderPass.
Definition at line 91 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Implements GrOpsRenderPass.
Definition at line 433 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Implements GrOpsRenderPass.
Definition at line 437 of file GrGLOpsRenderPass.cpp.
Implements GrOpsRenderPass.
Definition at line 182 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Implements GrOpsRenderPass.
Definition at line 193 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Reimplemented from GrOpsRenderPass.
Definition at line 353 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Implements GrOpsRenderPass.
Definition at line 244 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Reimplemented from GrOpsRenderPass.
Definition at line 276 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Implements GrOpsRenderPass.
Definition at line 219 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Reimplemented from GrOpsRenderPass.
Definition at line 66 of file GrGLOpsRenderPass.cpp.
|
overrideprivatevirtual |
Implements GrOpsRenderPass.
Definition at line 87 of file GrGLOpsRenderPass.cpp.
|
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.