Flutter Engine
The Flutter Engine
|
#include <GrMockOpTarget.h>
Public Member Functions | |
GrMockOpTarget (sk_sp< GrDirectContext > mockContext) | |
const GrDirectContext * | mockContext () const |
const GrCaps & | caps () const override |
GrThreadSafeCache * | threadSafeCache () const override |
GrResourceProvider * | resourceProvider () const override |
skgpu::ganesh::SmallPathAtlasMgr * | smallPathAtlasManager () const override |
void | resetAllocator () |
SkArenaAlloc * | allocator () override |
void | putBackVertices (int vertices, size_t vertexStride) override |
GrAppliedClip | detachAppliedClip () override |
const GrDstProxyView & | dstProxyView () const override |
GrXferBarrierFlags | renderPassBarriers () const override |
GrLoadOp | colorLoadOp () const override |
void * | makeVertexSpace (size_t vertexSize, int vertexCount, sk_sp< const GrBuffer > *buffer, int *startVertex) override |
void * | makeVertexSpaceAtLeast (size_t vertexSize, int minVertexCount, int fallbackVertexCount, sk_sp< const GrBuffer > *buffer, int *startVertex, int *actualVertexCount) override |
GrDrawIndirectWriter | makeDrawIndirectSpace (int drawCount, sk_sp< const GrBuffer > *buffer, size_t *offsetInBytes) override |
void | putBackIndirectDraws (int count) override |
GrDrawIndexedIndirectWriter | makeDrawIndexedIndirectSpace (int drawCount, sk_sp< const GrBuffer > *buffer, size_t *offsetInBytes) override |
void | putBackIndexedIndirectDraws (int count) override |
const void * | peekStaticVertexData () const |
const void * | peekStaticIndirectData () const |
Public Member Functions inherited from GrMeshDrawTarget | |
virtual | ~GrMeshDrawTarget () |
virtual void | recordDraw (const GrGeometryProcessor *, const GrSimpleMesh[], int meshCnt, const GrSurfaceProxy *const primProcProxies[], GrPrimitiveType)=0 |
void | recordDraw (const GrGeometryProcessor *gp, const GrSimpleMesh meshes[], int meshCnt, GrPrimitiveType primitiveType) |
virtual uint16_t * | makeIndexSpace (int indexCount, sk_sp< const GrBuffer > *, int *startIndex)=0 |
virtual uint16_t * | makeIndexSpaceAtLeast (int minIndexCount, int fallbackIndexCount, sk_sp< const GrBuffer > *, int *startIndex, int *actualIndexCount)=0 |
skgpu::VertexWriter | makeVertexWriter (size_t vertexSize, int vertexCount, sk_sp< const GrBuffer > *, int *startVertex) |
skgpu::IndexWriter | makeIndexWriter (int indexCount, sk_sp< const GrBuffer > *, int *startIndex) |
skgpu::VertexWriter | makeVertexWriterAtLeast (size_t vertexSize, int minVertexCount, int fallbackVertexCount, sk_sp< const GrBuffer > *, int *startVertex, int *actualVertexCount) |
skgpu::IndexWriter | makeIndexWriterAtLeast (int minIndexCount, int fallbackIndexCount, sk_sp< const GrBuffer > *, int *startIndex, int *actualIndexCount) |
virtual void | putBackIndices (int indices)=0 |
GrSimpleMesh * | allocMesh () |
GrSimpleMesh * | allocMeshes (int n) |
const GrSurfaceProxy ** | allocPrimProcProxyPtrs (int n) |
virtual GrRenderTargetProxy * | rtProxy () const =0 |
virtual const GrSurfaceProxyView & | writeView () const =0 |
virtual const GrAppliedClip * | appliedClip () const =0 |
virtual bool | usesMSAASurface () const =0 |
uint32_t | contextUniqueID () const |
virtual sktext::gpu::StrikeCache * | strikeCache () const =0 |
virtual GrAtlasManager * | atlasManager () const =0 |
virtual skia_private::TArray< GrSurfaceProxy *, true > * | sampledProxyArray ()=0 |
virtual GrDeferredUploadTarget * | deferredUploadTarget ()=0 |
Public Attributes | |
UNIMPL(void recordDraw(const GrGeometryProcessor *, const GrSimpleMesh | fStaticVertexData [], int, const GrSurfaceProxy *const [], GrPrimitiveType)) private char[6 *1024 *1024] |
sk_sp< GrGpuBuffer > | fStaticVertexBuffer |
char | fStaticIndirectData [sizeof(GrDrawIndexedIndirectCommand) *32] |
sk_sp< GrGpuBuffer > | fStaticIndirectBuffer |
SkSTArenaAllocWithReset< 1024 *1024 > | fAllocator |
GrDstProxyView | fDstProxyView |
Definition at line 48 of file GrMockOpTarget.h.
|
inline |
Definition at line 50 of file GrMockOpTarget.h.
|
inlineoverridevirtual |
Implements GrMeshDrawTarget.
Definition at line 69 of file GrMockOpTarget.h.
|
inlineoverridevirtual |
Implements GrMeshDrawTarget.
Definition at line 58 of file GrMockOpTarget.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Makes space for elements in a draw-indexed-indirect buffer. Upon success, the returned pointer is a CPU mapping where the data should be written.
Implements GrMeshDrawTarget.
Definition at line 113 of file GrMockOpTarget.h.
|
inlineoverridevirtual |
Makes space for elements in a draw-indirect buffer. Upon success, the returned pointer is a CPU mapping where the data should be written.
Implements GrMeshDrawTarget.
Definition at line 100 of file GrMockOpTarget.h.
|
inlineoverridevirtual |
Makes space for vertex data. The returned pointer is the location where vertex data should be written. On return the buffer that will hold the data as well as an offset into the buffer (in 'vertexSize' units) where the data will be placed.
Implements GrMeshDrawTarget.
Definition at line 76 of file GrMockOpTarget.h.
|
inlineoverridevirtual |
This is similar to makeVertexSpace. It allows the caller to use up to 'actualVertexCount' vertices in the returned pointer, which may exceed 'minVertexCount'. 'fallbackVertexCount' is the maximum number of vertices that should be allocated if a new buffer is allocated on behalf of this request.
Implements GrMeshDrawTarget.
Definition at line 87 of file GrMockOpTarget.h.
|
inline |
Definition at line 57 of file GrMockOpTarget.h.
|
inline |
Definition at line 129 of file GrMockOpTarget.h.
|
inline |
Definition at line 128 of file GrMockOpTarget.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inline |
Definition at line 68 of file GrMockOpTarget.h.
|
inlineoverridevirtual |
Implements GrMeshDrawTarget.
Definition at line 62 of file GrMockOpTarget.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements GrMeshDrawTarget.
Definition at line 59 of file GrMockOpTarget.h.
SkSTArenaAllocWithReset<1024 * 1024> GrMockOpTarget::fAllocator |
Definition at line 153 of file GrMockOpTarget.h.
GrDstProxyView GrMockOpTarget::fDstProxyView |
Definition at line 154 of file GrMockOpTarget.h.
sk_sp<GrGpuBuffer> GrMockOpTarget::fStaticIndirectBuffer |
Definition at line 152 of file GrMockOpTarget.h.
char GrMockOpTarget::fStaticIndirectData[sizeof(GrDrawIndexedIndirectCommand) *32] |
Definition at line 151 of file GrMockOpTarget.h.
sk_sp<GrGpuBuffer> GrMockOpTarget::fStaticVertexBuffer |
Definition at line 150 of file GrMockOpTarget.h.
UNIMPL (void recordDraw(const GrGeometryProcessor*, const GrSimpleMesh GrMockOpTarget::fStaticVertexData[], int, const GrSurfaceProxy* const[], GrPrimitiveType)) private char[6 *1024 *1024] |
Definition at line 149 of file GrMockOpTarget.h.