/external/skia/src/gpu/d3d/ |
D | GrD3DBuffer.cpp | 21 GrGpuBufferType intendedType, in make_d3d_buffer() argument 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() argument 70 gr_cp<ID3D12Resource> resource = make_d3d_buffer(gpu, size, intendedType, accessPattern, in Make() 76 return sk_sp<GrD3DBuffer>(new GrD3DBuffer(gpu, size, intendedType, accessPattern, in Make() 81 GrD3DBuffer::GrD3DBuffer(GrD3DGpu* gpu, size_t size, GrGpuBufferType intendedType, in GrD3DBuffer() argument 84 : INHERITED(gpu, size, intendedType, accessPattern) in GrD3DBuffer() 235 SkASSERT(this->intendedType() == GrGpuBufferType::kVertex || in validate() [all …]
|
/external/skqp/src/gpu/ |
D | GrBuffer.cpp | 12 sk_sp<GrBuffer> GrBuffer::MakeCPUBacked(GrGpu* gpu, size_t sizeInBytes, GrBufferType intendedType, in MakeCPUBacked() argument 14 SkASSERT(GrBufferTypeIsVertexOrIndex(intendedType)); in MakeCPUBacked() 24 return sk_sp<GrBuffer>(new GrBuffer(gpu, sizeInBytes, intendedType, cpuData)); in MakeCPUBacked() 47 void GrBuffer::ComputeScratchKeyForDynamicVBO(size_t size, GrBufferType intendedType, in ComputeScratchKeyForDynamicVBO() argument 54 builder[0] = intendedType; in ComputeScratchKeyForDynamicVBO()
|
D | GrOnFlushResourceProvider.cpp | 76 sk_sp<GrBuffer> GrOnFlushResourceProvider::makeBuffer(GrBufferType intendedType, size_t size, in makeBuffer() argument 79 return sk_sp<GrBuffer>(resourceProvider->createBuffer(size, intendedType, in makeBuffer() 85 sk_sp<const GrBuffer> GrOnFlushResourceProvider::findOrMakeStaticBuffer(GrBufferType intendedType, in findOrMakeStaticBuffer() argument 90 sk_sp<const GrBuffer> buffer = resourceProvider->findOrMakeStaticBuffer(intendedType, size, in findOrMakeStaticBuffer()
|
D | GrResourceProvider.cpp | 288 sk_sp<const GrBuffer> GrResourceProvider::findOrMakeStaticBuffer(GrBufferType intendedType, in findOrMakeStaticBuffer() argument 295 if (auto buffer = this->createBuffer(size, intendedType, kStatic_GrAccessPattern, Flags::kNone, in findOrMakeStaticBuffer() 363 sk_sp<GrBuffer> GrResourceProvider::createBuffer(size_t size, GrBufferType intendedType, in createBuffer() argument 370 return this->gpu()->createBuffer(size, intendedType, accessPattern, data); in createBuffer() 374 GrBufferTypeIsVertexOrIndex(intendedType) && in createBuffer() 376 return GrBuffer::MakeCPUBacked(this->gpu(), size, intendedType, data); in createBuffer() 384 GrBuffer::ComputeScratchKeyForDynamicVBO(allocSize, intendedType, &key); in createBuffer() 394 buffer = this->gpu()->createBuffer(allocSize, intendedType, kDynamic_GrAccessPattern); in createBuffer()
|
D | GrResourceProvider.h | 148 sk_sp<const GrBuffer> findOrMakeStaticBuffer(GrBufferType intendedType, size_t size, 208 sk_sp<GrBuffer> createBuffer(size_t size, GrBufferType intendedType, GrAccessPattern, Flags,
|
D | GrGpu.h | 143 sk_sp<GrBuffer> createBuffer(size_t size, GrBufferType intendedType, 470 virtual sk_sp<GrBuffer> onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPattern,
|
D | GrGpu.cpp | 220 sk_sp<GrBuffer> GrGpu::createBuffer(size_t size, GrBufferType intendedType, in createBuffer() argument 223 sk_sp<GrBuffer> buffer = this->onCreateBuffer(size, intendedType, accessPattern, data); in createBuffer()
|
/external/skia/src/gpu/mtl/ |
D | GrMtlBuffer.mm | 26 sk_sp<GrMtlBuffer> GrMtlBuffer::Make(GrMtlGpu* gpu, size_t size, GrGpuBufferType intendedType, 28 sk_sp<GrMtlBuffer> buffer(new GrMtlBuffer(gpu, size, intendedType, accessPattern)); 35 GrMtlBuffer::GrMtlBuffer(GrMtlGpu* gpu, size_t size, GrGpuBufferType intendedType, 37 : INHERITED(gpu, size, intendedType, accessPattern) 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/skqp/src/gpu/gl/ |
D | GrGLBuffer.cpp | 32 sk_sp<GrGLBuffer> GrGLBuffer::Make(GrGLGpu* gpu, size_t size, GrBufferType intendedType, in Make() argument 35 (kXferCpuToGpu_GrBufferType == intendedType || in Make() 36 kXferGpuToCpu_GrBufferType == intendedType)) { in Make() 40 sk_sp<GrGLBuffer> buffer(new GrGLBuffer(gpu, size, intendedType, accessPattern, data)); in Make() 94 GrGLBuffer::GrGLBuffer(GrGLGpu* gpu, size_t size, GrBufferType intendedType, in GrGLBuffer() argument 96 : INHERITED(gpu, size, intendedType, accessPattern) in GrGLBuffer() 97 , fIntendedType(intendedType) in GrGLBuffer() 99 , fUsage(gr_to_gl_access_pattern(intendedType, accessPattern)) in GrGLBuffer()
|
D | GrGLBuffer.h | 19 static sk_sp<GrGLBuffer> Make(GrGLGpu*, size_t size, GrBufferType intendedType, GrAccessPattern, 39 GrGLBuffer(GrGLGpu*, size_t size, GrBufferType intendedType, GrAccessPattern, const void* data);
|
D | GrGLGpu.h | 190 sk_sp<GrBuffer> onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPattern,
|
/external/skia/src/gpu/gl/ |
D | GrGLBuffer.cpp | 35 sk_sp<GrGLBuffer> GrGLBuffer::Make(GrGLGpu* gpu, size_t size, GrGpuBufferType intendedType, in Make() argument 38 (GrGpuBufferType::kXferCpuToGpu == intendedType || in Make() 39 GrGpuBufferType::kXferGpuToCpu == intendedType)) { in Make() 43 sk_sp<GrGLBuffer> buffer(new GrGLBuffer(gpu, size, intendedType, accessPattern, data)); in Make() 104 GrGLBuffer::GrGLBuffer(GrGLGpu* gpu, size_t size, GrGpuBufferType intendedType, in GrGLBuffer() argument 106 : INHERITED(gpu, size, intendedType, accessPattern) in GrGLBuffer() 107 , fIntendedType(intendedType) in GrGLBuffer() 109 , fUsage(gr_to_gl_access_pattern(intendedType, accessPattern, gpu->glCaps())) in GrGLBuffer()
|
D | GrGLBuffer.h | 19 static sk_sp<GrGLBuffer> Make(GrGLGpu*, size_t size, GrGpuBufferType intendedType, 39 GrGLBuffer(GrGLGpu*, size_t size, GrGpuBufferType intendedType, GrAccessPattern,
|
/external/skia/src/gpu/ |
D | GrGpuBuffer.cpp | 49 if (this->intendedType() == GrGpuBufferType::kXferGpuToCpu) { in updateData() 61 void GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(size_t size, GrGpuBufferType intendedType, in ComputeScratchKeyForDynamicBuffer() argument 65 builder[0] = SkToU32(intendedType); in ComputeScratchKeyForDynamicBuffer()
|
D | GrOnFlushResourceProvider.cpp | 103 sk_sp<GrGpuBuffer> GrOnFlushResourceProvider::makeBuffer(GrGpuBufferType intendedType, size_t size, in makeBuffer() argument 114 resourceProvider->createBuffer(size, intendedType, kDynamic_GrAccessPattern, data)); in makeBuffer() 118 GrGpuBufferType intendedType, size_t size, const void* data, const GrUniqueKey& key) { in findOrMakeStaticBuffer() argument 127 return resourceProvider->findOrMakeStaticBuffer(intendedType, size, data, key); in findOrMakeStaticBuffer()
|
D | GrRingBuffer.h | 25 GrRingBuffer(GrGpu* gpu, size_t size, size_t alignment, GrGpuBufferType intendedType) in GrRingBuffer() argument 29 , fType(intendedType) in GrRingBuffer()
|
D | GrResourceProvider.cpp | 353 sk_sp<const GrGpuBuffer> GrResourceProvider::findOrMakeStaticBuffer(GrGpuBufferType intendedType, in findOrMakeStaticBuffer() argument 360 if (auto buffer = this->createBuffer(size, intendedType, kStatic_GrAccessPattern, data)) { in findOrMakeStaticBuffer() 460 sk_sp<GrGpuBuffer> GrResourceProvider::createBuffer(size_t size, GrGpuBufferType intendedType, in createBuffer() argument 467 return this->gpu()->createBuffer(size, intendedType, accessPattern, data); in createBuffer() 472 size_t allocSize = intendedType == GrGpuBufferType::kUniform ? std::max(size, MIN_UNIFORM_SIZE) in createBuffer() 480 GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(allocSize, intendedType, &key); in createBuffer() 485 buffer = this->gpu()->createBuffer(allocSize, intendedType, kDynamic_GrAccessPattern); in createBuffer()
|
D | GrGpuBuffer.h | 85 GrGpuBufferType intendedType() const { return fIntendedType; } in intendedType() function
|
D | GrResourceProvider.h | 190 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType, size_t size, 265 GrGpuBufferType intendedType,
|
D | GrGpu.h | 201 sk_sp<GrGpuBuffer> createBuffer(size_t size, GrGpuBufferType intendedType, 715 virtual sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType intendedType,
|
D | GrGpu.cpp | 356 sk_sp<GrGpuBuffer> GrGpu::createBuffer(size_t size, GrGpuBufferType intendedType, in createBuffer() argument 360 sk_sp<GrGpuBuffer> buffer = this->onCreateBuffer(size, intendedType, accessPattern, data); in createBuffer()
|
/external/skqp/src/gpu/mtl/ |
D | GrMtlBuffer.mm | 19 sk_sp<GrMtlBuffer> GrMtlBuffer::Make(GrMtlGpu* gpu, size_t size, GrBufferType intendedType, 23 SkASSERT(intendedType != kDrawIndirect_GrBufferType); 24 sk_sp<GrMtlBuffer> buffer(new GrMtlBuffer(gpu, size, intendedType, accessPattern)); 31 GrMtlBuffer::GrMtlBuffer(GrMtlGpu* gpu, size_t size, GrBufferType intendedType, 33 : INHERITED(gpu, size, intendedType, accessPattern) 34 , fIntendedType(intendedType)
|
D | GrMtlBuffer.h | 20 static sk_sp<GrMtlBuffer> Make(GrMtlGpu*, size_t size, GrBufferType intendedType, 28 GrMtlBuffer(GrMtlGpu*, size_t size, GrBufferType intendedType, GrAccessPattern);
|
/external/skia/src/gpu/vk/ |
D | GrVkBuffer.cpp | 166 if (fMapPtr && this->intendedType() == GrGpuBufferType::kXferGpuToCpu) { in vkMap() 221 buffer_type_to_access_flags(this->intendedType()), in copyCpuDataToGpuBuffer()
|