Home
last modified time | relevance | path

Searched refs:fMapPtr (Results 1 – 22 of 22) sorted by relevance

/external/skqp/src/gpu/vk/
DGrVkBuffer.cpp117 delete[] (unsigned char*)fMapPtr; in vkRelease()
119 fMapPtr = nullptr; in vkRelease()
127 delete[] (unsigned char*)fMapPtr; in vkAbandon()
129 fMapPtr = nullptr; in vkAbandon()
160 SkASSERT(fMapPtr); in internalMap()
176 fMapPtr = GrVkMemory::MapAlloc(gpu, alloc); in internalMap()
178 if (!fMapPtr) { in internalMap()
179 fMapPtr = new unsigned char[this->size()]; in internalMap()
199 fMapPtr = nullptr; in internalUnmap()
204 gpu->updateBuffer(this, fMapPtr, this->offset(), size); in internalUnmap()
[all …]
DGrVkBuffer.h25 delete [] (unsigned char*)fMapPtr; in ~GrVkBuffer()
84 : fDesc(desc), fResource(resource), fOffset(0), fMapPtr(nullptr) { in GrVkBuffer()
89 return fMapPtr; in vkMap()
116 void* fMapPtr; variable
DGrVkTransferBuffer.h34 this->GrBuffer::fMapPtr = this->vkMap(this->getVkGpu()); in onMap()
DGrVkVertexBuffer.cpp52 this->GrBuffer::fMapPtr = this->vkMap(this->getVkGpu()); in onMap()
DGrVkIndexBuffer.cpp53 this->GrBuffer::fMapPtr = this->vkMap(this->getVkGpu()); in onMap()
/external/skqp/src/gpu/
DGrBuffer.h55 if (!fMapPtr) { in map()
58 return fMapPtr; in map()
67 SkASSERT(fMapPtr); in unmap()
69 fMapPtr = nullptr; in unmap()
77 bool isMapped() const { return SkToBool(fMapPtr); } in isMapped()
106 void* fMapPtr; variable
114 virtual void onMap() { SkASSERT(this->isCPUBacked()); fMapPtr = fCPUData; } in onMap()
DGrBuffer.cpp29 , fMapPtr(nullptr) in GrBuffer()
39 , fMapPtr(nullptr) in GrBuffer()
/external/skia/src/gpu/
DGrGpuBuffer.cpp15 , fMapPtr(nullptr) in GrGpuBuffer()
25 if (!fMapPtr) { in map()
28 return fMapPtr; in map()
35 SkASSERT(fMapPtr); in unmap()
37 fMapPtr = nullptr; in unmap()
43 bool GrGpuBuffer::isMapped() const { return SkToBool(fMapPtr); } in isMapped()
DGrStagingBufferManager.h54 , fMapPtr(mapPtr) {} in StagingBuffer()
57 void* fMapPtr; member
DGrGpuBuffer.h87 void* fMapPtr; variable
DGrStagingBufferManager.cpp50 char* offsetMapPtr = static_cast<char*>(buffer->fMapPtr) + offset; in allocateStagingBufferSlice()
/external/skqp/src/gpu/gl/
DGrGLBuffer.cpp143 fMapPtr = nullptr; in onRelease()
153 fMapPtr = nullptr; in onAbandon()
180 GL_CALL_RET(fMapPtr, MapBuffer(target, readOnly ? GR_GL_READ_ONLY : GR_GL_WRITE_ONLY)); in onMap()
194 GL_CALL_RET(fMapPtr, MapBufferRange(target, 0, this->sizeInBytes(), in onMap()
204 GL_CALL_RET(fMapPtr, MapBufferSubData(target, 0, this->sizeInBytes(), in onMap()
222 fMapPtr = nullptr; in onUnmap()
238 GL_CALL(UnmapBufferSubData(fMapPtr)); in onUnmap()
241 fMapPtr = nullptr; in onUnmap()
297 SkASSERT(nullptr == fMapPtr || fGLSizeInBytes <= this->sizeInBytes()); in validate()
/external/skia/src/gpu/gl/
DGrGLBuffer.cpp150 fMapPtr = nullptr; in onRelease()
160 fMapPtr = nullptr; in onAbandon()
190 GL_CALL_RET(fMapPtr, MapBuffer(target, readOnly ? GR_GL_READ_ONLY : GR_GL_WRITE_ONLY)); in onMap()
212 GL_CALL_RET(fMapPtr, MapBufferRange(target, 0, this->size(), access)); in onMap()
224 GL_CALL_RET(fMapPtr, MapBufferSubData(target, 0, this->size(), in onMap()
238 fMapPtr = nullptr; in onUnmap()
254 GL_CALL(UnmapBufferSubData(fMapPtr)); in onUnmap()
257 fMapPtr = nullptr; in onUnmap()
325 SkASSERT(nullptr == fMapPtr || fGLSizeInBytes <= this->size()); in validate()
/external/skia/src/gpu/mtl/
DGrMtlBuffer.mm67 SkASSERT(fMapPtr == nullptr);
82 if (fMapPtr == nil) {
89 memcpy(fMapPtr, src, srcInBytes);
104 fMapPtr = nullptr;
114 fMapPtr = nullptr;
128 fMapPtr = static_cast<char*>(fMtlBuffer.contents) + fOffset;
143 fMapPtr = fMappedBuffer.contents;
157 fMapPtr = nullptr;
179 fMapPtr = nullptr;
/external/skqp/src/gpu/mtl/
DGrMtlBuffer.mm57 SkASSERT(fMapPtr == nullptr);
74 if (fMapPtr == nil) {
79 memcpy(fMapPtr, src, srcInBytes);
94 fMapPtr = nullptr;
104 fMapPtr = nullptr;
121 fMapPtr = fMappedBuffer.contents;
133 fMapPtr = fMappedBuffer.contents;
147 fMapPtr = nullptr;
166 fMapPtr = nullptr;
/external/skia/src/gpu/d3d/
DGrD3DBuffer.cpp120 fMapPtr = nullptr; in onRelease()
131 fMapPtr = nullptr; in onAbandon()
155 if (!fMapPtr) { in onUpdateData()
163 memcpy(fMapPtr, src, size); in onUpdateData()
189 fMapPtr = slice.fOffsetMapPtr; in internalMap()
194 fD3DResource->Map(0, &range, &fMapPtr); in internalMap()
228 fMapPtr = nullptr; in internalUnmap()
/external/skia/src/gpu/vk/
DGrVkBuffer.cpp156 SkASSERT(!fMapPtr); in vkMap()
165 fMapPtr = GrVkMemory::MapAlloc(this->getVkGpu(), fAlloc); in vkMap()
166 if (fMapPtr && this->intendedType() == GrGpuBufferType::kXferGpuToCpu) { in vkMap()
173 SkASSERT(fMapPtr && this->isVkMappable()); in vkUnmap()
254 if (fMapPtr) { in vkRelease()
256 fMapPtr = nullptr; in vkRelease()
307 if (!fMapPtr) { in onUpdateData()
310 memcpy(fMapPtr, src, srcSizeInBytes); in onUpdateData()
312 fMapPtr = nullptr; in onUpdateData()
DGrVkBuffer.h47 bool vkIsMapped() const { return SkToBool(fMapPtr); } in vkIsMapped()
/external/skqp/src/gpu/mock/
DGrMockBuffer.h26 fMapPtr = sk_malloc_throw(this->sizeInBytes()); in onMap()
29 void onUnmap() override { sk_free(fMapPtr); } in onUnmap()
/external/skia/src/gpu/mock/
DGrMockBuffer.h26 fMapPtr = sk_malloc_throw(this->size()); in onMap()
29 void onUnmap() override { sk_free(fMapPtr); } in onUnmap()
/external/skia/src/gpu/dawn/
DGrDawnBuffer.cpp49 fMapPtr = fBuffer.GetMappedRange(); in GrDawnBuffer()
69 fMapPtr = slice.fOffsetMapPtr; in onMap()
96 memcpy(fMapPtr, src, srcSizeInBytes); in onUpdateData()
DGrDawnBuffer.h33 fMapPtr = mapPtr; in setMapPtr()