Home
last modified time | relevance | path

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

/external/skqp/src/gpu/gl/
DGrGLBuffer.cpp244 bool GrGLBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { in onUpdateData() argument
252 if (srcSizeInBytes > this->sizeInBytes()) { in onUpdateData()
255 SkASSERT(srcSizeInBytes <= this->sizeInBytes()); in onUpdateData()
260 if (this->sizeInBytes() == srcSizeInBytes) { in onUpdateData()
261 GL_CALL(BufferData(target, (GrGLsizeiptr) srcSizeInBytes, src, fUsage)); in onUpdateData()
271 GL_CALL(BufferSubData(target, 0, (GrGLsizeiptr) srcSizeInBytes, src)); in onUpdateData()
278 GL_CALL(BufferData(target, srcSizeInBytes, src, fUsage)); in onUpdateData()
279 fGLSizeInBytes = srcSizeInBytes; in onUpdateData()
DGrGLBuffer.h52 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
/external/skqp/src/gpu/
DGrBuffer.h93 bool updateData(const void* src, size_t srcSizeInBytes) { in updateData() argument
95 SkASSERT(srcSizeInBytes <= fSizeInBytes); in updateData()
96 return this->onUpdateData(src, srcSizeInBytes); in updateData()
116 virtual bool onUpdateData(const void* src, size_t srcSizeInBytes);
DGrBuffer.cpp61 bool GrBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { in onUpdateData() argument
63 memcpy(fCPUData, src, srcSizeInBytes); in onUpdateData()
/external/skia/src/gpu/gl/
DGrGLBuffer.cpp260 bool GrGLBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { in onUpdateData() argument
268 if (srcSizeInBytes > this->size()) { in onUpdateData()
271 SkASSERT(srcSizeInBytes <= this->size()); in onUpdateData()
276 if (this->size() == srcSizeInBytes) { in onUpdateData()
278 GL_ALLOC_CALL(BufferData(target, (GrGLsizeiptr)srcSizeInBytes, src, fUsage)); in onUpdateData()
295 GL_CALL(BufferSubData(target, 0, (GrGLsizeiptr) srcSizeInBytes, src)); in onUpdateData()
303 GL_ALLOC_CALL(BufferData(target, (GrGLsizeiptr)srcSizeInBytes, src, fUsage)); in onUpdateData()
307 fGLSizeInBytes = srcSizeInBytes; in onUpdateData()
DGrGLBuffer.h53 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
/external/skia/src/gpu/
DGrGpuBuffer.cpp45 bool GrGpuBuffer::updateData(const void* src, size_t srcSizeInBytes) { in updateData() argument
48 SkASSERT(srcSizeInBytes <= fSizeInBytes); in updateData()
52 bool result = this->onUpdateData(src, srcSizeInBytes); in updateData()
DGrGpuBuffer.h81 bool updateData(const void* src, size_t srcSizeInBytes);
92 virtual bool onUpdateData(const void* src, size_t srcSizeInBytes) = 0;
/external/skqp/src/gpu/vk/
DGrVkBuffer.cpp232 bool GrVkBuffer::vkUpdateData(GrVkGpu* gpu, const void* src, size_t srcSizeInBytes, in vkUpdateData() argument
234 if (srcSizeInBytes > fDesc.fSizeInBytes) { in vkUpdateData()
238 this->internalMap(gpu, srcSizeInBytes, createdNewBuffer); in vkUpdateData()
243 memcpy(fMapPtr, src, srcSizeInBytes); in vkUpdateData()
245 this->internalUnmap(gpu, srcSizeInBytes); in vkUpdateData()
DGrVkUniformBuffer.h31 bool updateData(GrVkGpu* gpu, const void* src, size_t srcSizeInBytes, in updateData() argument
33 return this->vkUpdateData(gpu, src, srcSizeInBytes, createdNewBuffer); in updateData()
DGrVkVertexBuffer.cpp62 bool GrVkVertexBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { in onUpdateData() argument
64 return this->vkUpdateData(this->getVkGpu(), src, srcSizeInBytes); in onUpdateData()
DGrVkIndexBuffer.cpp63 bool GrVkIndexBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { in onUpdateData() argument
65 return this->vkUpdateData(this->getVkGpu(), src, srcSizeInBytes); in onUpdateData()
DGrVkIndexBuffer.h31 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
DGrVkVertexBuffer.h30 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
DGrVkTransferBuffer.h44 bool onUpdateData(const void* src, size_t srcSizeInBytes) override { in onUpdateData() argument
DGrVkBuffer.h95 bool vkUpdateData(GrVkGpu* gpu, const void* src, size_t srcSizeInBytes,
/external/skia/src/gpu/vk/
DGrVkBuffer.cpp296 bool GrVkBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { in onUpdateData() argument
301 if (srcSizeInBytes > this->size()) { in onUpdateData()
306 this->vkMap(srcSizeInBytes); in onUpdateData()
310 memcpy(fMapPtr, src, srcSizeInBytes); in onUpdateData()
311 this->vkUnmap(srcSizeInBytes); in onUpdateData()
314 this->copyCpuDataToGpuBuffer(src, srcSizeInBytes); in onUpdateData()
DGrVkBuffer.h55 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
/external/skia/src/gpu/dawn/
DGrDawnBuffer.cpp91 bool GrDawnBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { in onUpdateData() argument
96 memcpy(fMapPtr, src, srcSizeInBytes); in onUpdateData()
DGrDawnBuffer.h24 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
/external/skqp/src/gpu/mock/
DGrMockBuffer.h30 bool onUpdateData(const void* src, size_t srcSizeInBytes) override { return true; } in onUpdateData() argument
/external/skia/src/gpu/mock/
DGrMockBuffer.h30 bool onUpdateData(const void* src, size_t srcSizeInBytes) override { return true; } in onUpdateData() argument
/external/skqp/src/gpu/mtl/
DGrMtlBuffer.h38 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
/external/skia/src/gpu/mtl/
DGrMtlBuffer.h40 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
/external/skia/src/gpu/d3d/
DGrD3DBuffer.h43 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;