Home
last modified time | relevance | path

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

12

/external/skia/src/gpu/
DGrTBlockList.h65 : fAllocator(policy,
103 int avail = fAllocator->currentBlock()->template avail<alignof(T)>() / sizeof(T); in reserve()
107 fAllocator->template reserve<alignof(T)>( in reserve()
118 GrBlockAllocator::Block* block = fAllocator->currentBlock(); in pop_back()
125 fAllocator->releaseBlock(block); in pop_back()
132 fAllocator->setMetadata(fAllocator->metadata() - 1); in pop_back()
146 fAllocator->reset(); in reset()
156 for (const auto* b :fAllocator->blocks()) { in count()
162 SkASSERT(count == fAllocator->metadata()); in count()
164 return fAllocator->metadata(); in count()
[all …]
DGrMemoryPool.h70 return fAllocator.currentBlock() == fAllocator.headBlock() && in isEmpty()
71 fAllocator.currentBlock()->metadata() == 0; in isEmpty()
84 size_t size() const { return fAllocator.totalSize() - fAllocator.preallocSize(); } in size()
91 return offsetof(GrMemoryPool, fAllocator) + fAllocator.preallocSize(); in preallocSize()
98 fAllocator.resetScratchSpace(); in resetScratchSpace()
126 GrBlockAllocator fAllocator; // Must be the last field, in order to use extra allocated space variable
DGrMemoryPool.cpp34 : fAllocator(GrBlockAllocator::GrowthPolicy::kFixed, minAllocSize, in GrMemoryPool()
35 preallocSize - offsetof(GrMemoryPool, fAllocator) - sizeof(GrBlockAllocator)) { in GrMemoryPool()
66 GrBlockAllocator::ByteRange alloc = fAllocator.allocate<kAlignment, sizeof(Header)>(size); in allocate()
112 GrBlockAllocator::Block* block = fAllocator.owningBlock<kAlignment>(header, header->fStart); in release()
126 fAllocator.releaseBlock(block); in release()
136 fAllocator.validate(); in validate()
139 for (const auto* b : fAllocator.blocks()) { in validate()
DGrBlockAllocator.h693 BlockIter(AllocatorT* allocator) : fAllocator(allocator) {} in BlockIter()
727 Item begin() const { return Item(Forward ? &fAllocator->fHead : fAllocator->fTail); } in begin()
731 AllocatorT* fAllocator;
/external/skqp/src/gpu/
DGrAllocator.h160 : fAllocator(allocator) in Iter()
171 if (fIndexInBlock == fAllocator->fItemsPerBlock) { in next()
175 return fItemIndex < fAllocator->fCount; in next()
183 SkASSERT(fItemIndex >= 0 && fItemIndex < fAllocator->fCount); in get()
184 return (char*) fAllocator->fBlocks[fBlockIndex] + fIndexInBlock * fAllocator->fItemSize; in get()
188 const GrAllocator* fAllocator;
260 : fAllocator(sizeof(T), itemsPerBlock, nullptr) {} in GrTAllocator()
268 void* item = fAllocator.push_back(); in push_back()
275 void* item = fAllocator.push_back(); in push_back()
282 void* item = fAllocator.push_back(); in emplace_back()
[all …]
/external/skqp/src/gpu/vk/
DGrVkAMDMemoryAllocator.cpp17 : fAllocator(VK_NULL_HANDLE) in GrVkAMDMemoryAllocator()
56 vmaCreateAllocator(&info, &fAllocator); in GrVkAMDMemoryAllocator()
60 vmaDestroyAllocator(fAllocator); in ~GrVkAMDMemoryAllocator()
61 fAllocator = VK_NULL_HANDLE; in ~GrVkAMDMemoryAllocator()
84 VkResult result = vmaAllocateMemoryForImage(fAllocator, image, &info, &allocation, nullptr); in allocateMemoryForImage()
139 VkResult result = vmaAllocateMemoryForBuffer(fAllocator, buffer, &info, &allocation, nullptr); in allocateMemoryForBuffer()
144 result = vmaAllocateMemoryForBuffer(fAllocator, buffer, &info, &allocation, nullptr); in allocateMemoryForBuffer()
157 vmaFreeMemory(fAllocator, allocation); in freeMemory()
164 vmaGetAllocationInfo(fAllocator, allocation, &vmaInfo); in getAllocInfo()
167 vmaGetMemoryTypeProperties(fAllocator, vmaInfo.memoryType, &memFlags); in getAllocInfo()
[all …]
DGrVkAMDMemoryAllocator.h46 VmaAllocator fAllocator;
/external/skia/src/gpu/vk/
DGrVkAMDMemoryAllocator.cpp96 : fAllocator(allocator) in GrVkAMDMemoryAllocator()
101 vmaDestroyAllocator(fAllocator); in ~GrVkAMDMemoryAllocator()
102 fAllocator = VK_NULL_HANDLE; in ~GrVkAMDMemoryAllocator()
130 VkResult result = vmaAllocateMemoryForImage(fAllocator, image, &info, &allocation, nullptr); in allocateImageMemory()
199 VkResult result = vmaAllocateMemoryForBuffer(fAllocator, buffer, &info, &allocation, nullptr); in allocateBufferMemory()
210 vmaFreeMemory(fAllocator, allocation); in freeMemory()
217 vmaGetAllocationInfo(fAllocator, allocation, &vmaInfo); in getAllocInfo()
220 vmaGetMemoryTypeProperties(fAllocator, vmaInfo.memoryType, &memFlags); in getAllocInfo()
240 return vmaMapMemory(fAllocator, allocation, data); in mapMemory()
246 vmaUnmapMemory(fAllocator, allocation); in unmapMemory()
[all …]
DGrVkAMDMemoryAllocator.h69 VmaAllocator fAllocator; variable
/external/skia/src/gpu/d3d/
DGrD3DAMDMemoryAllocator.h27 ~GrD3DAMDMemoryAllocator() override { fAllocator->Release(); } in ~GrD3DAMDMemoryAllocator()
52 GrD3DAMDMemoryAllocator(D3D12MA::Allocator* allocator) : fAllocator(allocator) {} in GrD3DAMDMemoryAllocator()
54 D3D12MA::Allocator* fAllocator; variable
DGrD3DAMDMemoryAllocator.cpp39 HRESULT hr = fAllocator->CreateResource(&allocationDesc, resourceDesc, in createResource()
56 HRESULT hr = fAllocator->CreateAliasingResource(alloc->fAllocation, localOffset, resourceDesc, in createAliasingResource()
DGrD3DCommandList.cpp24 , fAllocator(std::move(allocator)) { in GrD3DCommandList()
54 GR_D3D_CALL_ERRCHECK(fAllocator->Reset()); in reset()
55 GR_D3D_CALL_ERRCHECK(fCommandList->Reset(fAllocator.get(), nullptr)); in reset()
DGrD3DCommandList.h150 gr_cp<ID3D12CommandAllocator> fAllocator; variable
/external/skia/src/gpu/mock/
DGrMockOpTarget.h36 void resetAllocator() { fAllocator.reset(); } in resetAllocator()
37 SkArenaAlloc* allocator() override { return &fAllocator; } in allocator()
121 SkSTArenaAllocWithReset<1024 * 1024> fAllocator; variable
/external/dng_sdk/source/
Ddng_host.cpp42 : fAllocator (allocator) in dng_host()
72 if (fAllocator) in Allocator()
75 return *fAllocator; in Allocator()
Ddng_simple_image.cpp35 , fAllocator (allocator) in dng_simple_image()
63 fAllocator)); in Clone()
Ddng_memory_stream.cpp33 , fAllocator (allocator) in dng_memory_stream()
174 fPageList [fPageCount] = fAllocator.Allocate (fPageSize); in DoSetLength()
Ddng_simple_image.h38 dng_memory_allocator &fAllocator; variable
Ddng_memory_stream.h38 dng_memory_allocator &fAllocator;
Ddng_host.h55 dng_memory_allocator *fAllocator;
/external/skqp/include/private/
DGrCCPerOpListPaths.h28 SkSTArenaAlloc<10 * 1024> fAllocator{10 * 1024 * 2};
/external/skqp/src/core/
DSkDevice.h307 , fAllocator(allocator) in CreateInfo()
314 SkRasterHandleAllocator* fAllocator = nullptr; member
/external/skqp/src/pathops/
DSkPathOpsTypes.h54 return fAllocator; in allocator()
184 SkArenaAlloc* fAllocator;
/external/skia/src/pathops/
DSkPathOpsTypes.h54 return fAllocator; in allocator()
184 SkArenaAlloc* fAllocator;
/external/skia/src/core/
DSkDevice.h387 , fAllocator(allocator) in CreateInfo()
394 SkRasterHandleAllocator* fAllocator = nullptr; member

12