/external/skia/src/gpu/gl/ |
D | GrGLBuffer.cpp | 35 sk_sp<GrGLBuffer> GrGLBuffer::Make(GrGLGpu* gpu, size_t size, GrGpuBufferType intendedType, in Make() 38 (GrGpuBufferType::kXferCpuToGpu == intendedType || in Make() 39 GrGpuBufferType::kXferGpuToCpu == intendedType)) { in Make() 54 inline static GrGLenum gr_to_gl_access_pattern(GrGpuBufferType bufferType, in gr_to_gl_access_pattern() 82 auto usageType = [&drawUsage, &readUsage, &caps](GrGpuBufferType type, in gr_to_gl_access_pattern() 89 case GrGpuBufferType::kVertex: in gr_to_gl_access_pattern() 90 case GrGpuBufferType::kIndex: in gr_to_gl_access_pattern() 91 case GrGpuBufferType::kDrawIndirect: in gr_to_gl_access_pattern() 92 case GrGpuBufferType::kXferCpuToGpu: in gr_to_gl_access_pattern() 93 case GrGpuBufferType::kUniform: in gr_to_gl_access_pattern() [all …]
|
D | GrGLBuffer.h | 19 static sk_sp<GrGLBuffer> Make(GrGLGpu*, size_t size, GrGpuBufferType intendedType, 39 GrGLBuffer(GrGLGpu*, size_t size, GrGpuBufferType intendedType, GrAccessPattern, 59 GrGpuBufferType fIntendedType;
|
D | GrGLGpu.h | 71 GrGLenum bindBuffer(GrGpuBufferType type, const GrBuffer*); 250 sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType intendedType, GrAccessPattern, 323 void unbindXferBuffer(GrGpuBufferType type); 661 auto* hwBufferState(GrGpuBufferType type) { in hwBufferState() 664 SkASSERT(type != GrGpuBufferType::kUniform); in hwBufferState()
|
D | GrGLGpu.cpp | 358 this->hwBufferState(GrGpuBufferType::kVertex)->fGLTarget = GR_GL_ARRAY_BUFFER; in GrGLGpu() 359 this->hwBufferState(GrGpuBufferType::kIndex)->fGLTarget = GR_GL_ELEMENT_ARRAY_BUFFER; in GrGLGpu() 360 this->hwBufferState(GrGpuBufferType::kDrawIndirect)->fGLTarget = GR_GL_DRAW_INDIRECT_BUFFER; in GrGLGpu() 362 this->hwBufferState(GrGpuBufferType::kXferCpuToGpu)->fGLTarget = in GrGLGpu() 364 this->hwBufferState(GrGpuBufferType::kXferGpuToCpu)->fGLTarget = in GrGLGpu() 367 this->hwBufferState(GrGpuBufferType::kXferCpuToGpu)->fGLTarget = GR_GL_PIXEL_UNPACK_BUFFER; in GrGLGpu() 368 this->hwBufferState(GrGpuBufferType::kXferGpuToCpu)->fGLTarget = GR_GL_PIXEL_PACK_BUFFER; in GrGLGpu() 503 this->hwBufferState(GrGpuBufferType::kXferCpuToGpu)->invalidate(); in onResetContext() 504 this->hwBufferState(GrGpuBufferType::kXferGpuToCpu)->invalidate(); in onResetContext() 582 this->hwBufferState(GrGpuBufferType::kVertex)->invalidate(); in onResetContext() [all …]
|
/external/skia/src/gpu/vk/ |
D | GrVkBuffer.cpp | 22 GrGpuBufferType bufferType, in GrVkBuffer() 33 SkASSERT(bufferType != GrGpuBufferType::kUniform || uniformDescriptorSet); in GrVkBuffer() 69 GrGpuBufferType bufferType, in Make() 92 case GrGpuBufferType::kVertex: in Make() 96 case GrGpuBufferType::kIndex: in Make() 100 case GrGpuBufferType::kDrawIndirect: in Make() 104 case GrGpuBufferType::kUniform: in Make() 108 case GrGpuBufferType::kXferCpuToGpu: in Make() 112 case GrGpuBufferType::kXferGpuToCpu: in Make() 142 if (bufferType == GrGpuBufferType::kUniform) { in Make() [all …]
|
D | GrVkBuffer.h | 21 GrGpuBufferType bufferType, 39 GrGpuBufferType bufferType,
|
D | GrVkPipelineStateDataManager.cpp | 54 fUniformSize, GrGpuBufferType::kUniform, kDynamic_GrAccessPattern, in uploadUniforms()
|
/external/skia/src/gpu/d3d/ |
D | GrD3DBuffer.cpp | 21 GrGpuBufferType intendedType, in make_d3d_buffer() 27 SkASSERT(intendedType != GrGpuBufferType::kXferCpuToGpu && in make_d3d_buffer() 28 intendedType != GrGpuBufferType::kXferGpuToCpu); in make_d3d_buffer() 33 if (intendedType == GrGpuBufferType::kXferGpuToCpu) { in make_d3d_buffer() 64 sk_sp<GrD3DBuffer> GrD3DBuffer::Make(GrD3DGpu* gpu, size_t size, GrGpuBufferType intendedType, in Make() 81 GrD3DBuffer::GrD3DBuffer(GrD3DGpu* gpu, size_t size, GrGpuBufferType intendedType, in GrD3DBuffer() 235 SkASSERT(this->intendedType() == GrGpuBufferType::kVertex || in validate() 236 this->intendedType() == GrGpuBufferType::kIndex || in validate() 237 this->intendedType() == GrGpuBufferType::kDrawIndirect || in validate() 238 this->intendedType() == GrGpuBufferType::kXferCpuToGpu || in validate() [all …]
|
D | GrD3DBuffer.h | 20 static sk_sp<GrD3DBuffer> Make(GrD3DGpu*, size_t size, GrGpuBufferType, GrAccessPattern); 32 GrD3DBuffer(GrD3DGpu*, size_t size, GrGpuBufferType, GrAccessPattern, gr_cp<ID3D12Resource>,
|
/external/skia/src/gpu/dawn/ |
D | GrDawnBuffer.cpp | 13 wgpu::BufferUsage GrGpuBufferTypeToDawnUsageBit(GrGpuBufferType type) { in GrGpuBufferTypeToDawnUsageBit() 15 case GrGpuBufferType::kVertex: in GrGpuBufferTypeToDawnUsageBit() 17 case GrGpuBufferType::kIndex: in GrGpuBufferTypeToDawnUsageBit() 19 case GrGpuBufferType::kXferCpuToGpu: in GrGpuBufferTypeToDawnUsageBit() 21 case GrGpuBufferType::kXferGpuToCpu: in GrGpuBufferTypeToDawnUsageBit() 30 GrDawnBuffer::GrDawnBuffer(GrDawnGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrDawnBuffer()
|
D | GrDawnBuffer.h | 18 GrDawnBuffer(GrDawnGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, GrAccessPattern pattern);
|
/external/skia/src/gpu/ |
D | GrGpuBuffer.h | 22 static void ComputeScratchKeyForDynamicBuffer(size_t size, GrGpuBufferType, GrScratchKey*); 84 GrGpuBuffer(GrGpu*, size_t sizeInBytes, GrGpuBufferType, GrAccessPattern); 85 GrGpuBufferType intendedType() const { return fIntendedType; } in intendedType() 100 GrGpuBufferType fIntendedType;
|
D | GrGpuBuffer.cpp | 12 GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrGpuBuffer() 49 if (this->intendedType() == GrGpuBufferType::kXferGpuToCpu) { in updateData() 61 void GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(size_t size, GrGpuBufferType intendedType, in ComputeScratchKeyForDynamicBuffer()
|
D | GrRingBuffer.h | 25 GrRingBuffer(GrGpu* gpu, size_t size, size_t alignment, GrGpuBufferType intendedType) in GrRingBuffer() 63 GrGpuBufferType fType;
|
D | GrBufferAllocPool.h | 86 GrBufferAllocPool(GrGpu* gpu, GrGpuBufferType bufferType, sk_sp<CpuBufferCache> cpuBufferCache); 165 GrGpuBufferType fBufferType; 321 : GrBufferAllocPool(gpu, GrGpuBufferType::kDrawIndirect, std::move(cpuBufferCache)) {} in GrDrawIndirectBufferAllocPool()
|
D | GrOnFlushResourceProvider.h | 81 sk_sp<GrGpuBuffer> makeBuffer(GrGpuBufferType, size_t, const void* data = nullptr); 84 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType, size_t, const void* data,
|
D | GrOnFlushResourceProvider.cpp | 103 sk_sp<GrGpuBuffer> GrOnFlushResourceProvider::makeBuffer(GrGpuBufferType intendedType, size_t size, in makeBuffer() 118 GrGpuBufferType intendedType, size_t size, const void* data, const GrUniqueKey& key) { in findOrMakeStaticBuffer()
|
D | GrBufferAllocPool.cpp | 90 GrBufferAllocPool::GrBufferAllocPool(GrGpu* gpu, GrGpuBufferType bufferType, in GrBufferAllocPool() 415 (fBufferType == GrGpuBufferType::kDrawIndirect && caps.useClientSideIndirectBuffers())) { in getBuffer() 427 : GrBufferAllocPool(gpu, GrGpuBufferType::kVertex, std::move(cpuBufferCache)) {} in GrVertexBufferAllocPool() 480 : GrBufferAllocPool(gpu, GrGpuBufferType::kIndex, std::move(cpuBufferCache)) {} in GrIndexBufferAllocPool()
|
D | GrResourceProvider.h | 190 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType, size_t size, 265 GrGpuBufferType intendedType,
|
D | GrStagingBufferManager.cpp | 33 bufferSize, GrGpuBufferType::kXferCpuToGpu, kDynamic_GrAccessPattern, nullptr); in allocateStagingBufferSlice()
|
D | GrResourceProvider.cpp | 353 sk_sp<const GrGpuBuffer> GrResourceProvider::findOrMakeStaticBuffer(GrGpuBufferType intendedType, in findOrMakeStaticBuffer() 378 this->createBuffer(bufferSize, GrGpuBufferType::kIndex, kStatic_GrAccessPattern)); in createPatternedIndexBuffer() 460 sk_sp<GrGpuBuffer> GrResourceProvider::createBuffer(size_t size, GrGpuBufferType intendedType, in createBuffer() 472 size_t allocSize = intendedType == GrGpuBufferType::kUniform ? std::max(size, MIN_UNIFORM_SIZE) in createBuffer()
|
/external/skia/src/gpu/mtl/ |
D | GrMtlBuffer.mm | 26 sk_sp<GrMtlBuffer> GrMtlBuffer::Make(GrMtlGpu* gpu, size_t size, GrGpuBufferType intendedType, 35 GrMtlBuffer::GrMtlBuffer(GrMtlGpu* gpu, size_t size, GrGpuBufferType intendedType, 193 this->intendedType() == GrGpuBufferType::kVertex || 194 this->intendedType() == GrGpuBufferType::kIndex || 195 this->intendedType() == GrGpuBufferType::kXferCpuToGpu || 196 this->intendedType() == GrGpuBufferType::kXferGpuToCpu || 197 this->intendedType() == GrGpuBufferType::kDrawIndirect);
|
D | GrMtlBuffer.h | 21 static sk_sp<GrMtlBuffer> Make(GrMtlGpu*, size_t size, GrGpuBufferType intendedType, 30 GrMtlBuffer(GrMtlGpu*, size_t size, GrGpuBufferType intendedType, GrAccessPattern);
|
/external/skia/src/gpu/mock/ |
D | GrMockOpTarget.h | 22 sizeof(fStaticVertexData), GrGpuBufferType::kVertex, kDynamic_GrAccessPattern); in GrMockOpTarget() 24 sizeof(fStaticIndirectData), GrGpuBufferType::kDrawIndirect, in GrMockOpTarget()
|
D | GrMockBuffer.h | 17 GrMockBuffer(GrMockGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrMockBuffer()
|