Home
last modified time | relevance | path

Searched refs:intendedType (Results 1 – 25 of 28) sorted by relevance

12

/external/skia/src/gpu/d3d/
DGrD3DBuffer.cpp21 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/
DGrBuffer.cpp12 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()
DGrOnFlushResourceProvider.cpp76 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()
DGrResourceProvider.cpp288 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()
DGrResourceProvider.h148 sk_sp<const GrBuffer> findOrMakeStaticBuffer(GrBufferType intendedType, size_t size,
208 sk_sp<GrBuffer> createBuffer(size_t size, GrBufferType intendedType, GrAccessPattern, Flags,
DGrGpu.h143 sk_sp<GrBuffer> createBuffer(size_t size, GrBufferType intendedType,
470 virtual sk_sp<GrBuffer> onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPattern,
DGrGpu.cpp220 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/
DGrMtlBuffer.mm26 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);
DGrMtlBuffer.h21 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/
DGrGLBuffer.cpp32 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()
DGrGLBuffer.h19 static sk_sp<GrGLBuffer> Make(GrGLGpu*, size_t size, GrBufferType intendedType, GrAccessPattern,
39 GrGLBuffer(GrGLGpu*, size_t size, GrBufferType intendedType, GrAccessPattern, const void* data);
DGrGLGpu.h190 sk_sp<GrBuffer> onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPattern,
/external/skia/src/gpu/gl/
DGrGLBuffer.cpp35 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()
DGrGLBuffer.h19 static sk_sp<GrGLBuffer> Make(GrGLGpu*, size_t size, GrGpuBufferType intendedType,
39 GrGLBuffer(GrGLGpu*, size_t size, GrGpuBufferType intendedType, GrAccessPattern,
/external/skia/src/gpu/
DGrGpuBuffer.cpp49 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()
DGrOnFlushResourceProvider.cpp103 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()
DGrRingBuffer.h25 GrRingBuffer(GrGpu* gpu, size_t size, size_t alignment, GrGpuBufferType intendedType) in GrRingBuffer() argument
29 , fType(intendedType) in GrRingBuffer()
DGrResourceProvider.cpp353 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()
DGrGpuBuffer.h85 GrGpuBufferType intendedType() const { return fIntendedType; } in intendedType() function
DGrResourceProvider.h190 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType, size_t size,
265 GrGpuBufferType intendedType,
DGrGpu.h201 sk_sp<GrGpuBuffer> createBuffer(size_t size, GrGpuBufferType intendedType,
715 virtual sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType intendedType,
DGrGpu.cpp356 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/
DGrMtlBuffer.mm19 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)
DGrMtlBuffer.h20 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/
DGrVkBuffer.cpp166 if (fMapPtr && this->intendedType() == GrGpuBufferType::kXferGpuToCpu) { in vkMap()
221 buffer_type_to_access_flags(this->intendedType()), in copyCpuDataToGpuBuffer()

12