Home
last modified time | relevance | path

Searched refs:srcSizeInBytes (Results 1 - 11 of 11) sorted by relevance

/third_party/skia/src/gpu/gl/
H A DGrGLBuffer.cpp262 bool GrGLBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { in onUpdateData() argument
270 if (srcSizeInBytes > this->size()) { in onUpdateData()
273 SkASSERT(srcSizeInBytes <= this->size()); in onUpdateData()
278 if (this->size() == srcSizeInBytes) { in onUpdateData()
280 GL_ALLOC_CALL(BufferData(target, (GrGLsizeiptr)srcSizeInBytes, src, fUsage)); in onUpdateData()
297 GL_CALL(BufferSubData(target, 0, (GrGLsizeiptr) srcSizeInBytes, src)); in onUpdateData()
305 GL_ALLOC_CALL(BufferData(target, (GrGLsizeiptr)srcSizeInBytes, src, fUsage)); in onUpdateData()
309 fGLSizeInBytes = srcSizeInBytes; in onUpdateData()
H A DGrGLBuffer.h53 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
/third_party/skia/src/gpu/
H A 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()
H A DGrGpuBuffer.h70 * be undefined. srcSizeInBytes must be <= to the buffer size.
81 bool updateData(const void* src, size_t srcSizeInBytes);
92 virtual bool onUpdateData(const void* src, size_t srcSizeInBytes) = 0;
/third_party/skia/src/gpu/vk/
H A DGrVkBuffer.cpp375 bool GrVkBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { argument
380 if (srcSizeInBytes > this->size()) {
385 this->vkMap(srcSizeInBytes);
389 memcpy(fMapPtr, src, srcSizeInBytes);
390 this->vkUnmap(srcSizeInBytes);
393 this->copyCpuDataToGpuBuffer(src, srcSizeInBytes);
H A DGrVkBuffer.h64 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
/third_party/skia/src/gpu/dawn/
H A DGrDawnBuffer.cpp91 bool GrDawnBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { in onUpdateData() argument
96 memcpy(fMapPtr, src, srcSizeInBytes); in onUpdateData()
H A DGrDawnBuffer.h24 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
/third_party/skia/src/gpu/mock/
H A DGrMockBuffer.h30 bool onUpdateData(const void* src, size_t srcSizeInBytes) override { return true; }
/third_party/skia/src/gpu/mtl/
H A DGrMtlBuffer.h39 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
/third_party/skia/src/gpu/d3d/
H A DGrD3DBuffer.h45 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;

Completed in 4 milliseconds