Searched refs:SkBlockAllocator (Results 1 – 11 of 11) sorted by relevance
/third_party/skia/src/core/ |
D | SkBlockAllocator.h | 53 class SkBlockAllocator final : SkNoncopyable { 132 friend class SkBlockAllocator; 183 SkBlockAllocator(GrowthPolicy policy, size_t blockIncrementBytes, 186 ~SkBlockAllocator() { this->reset(); } in ~SkBlockAllocator() 231 return sizeof(SkBlockAllocator) + fHead.fSize - BaseHeadBlockSize(); in preallocSize() 337 return const_cast<SkBlockAllocator*>(this)->owningBlock<Align, Padding>(ptr, start); in owningBlock() 346 return const_cast<SkBlockAllocator*>(this)->findOwningBlock(ptr); in findOwningBlock() 375 void stealHeapBlocks(SkBlockAllocator* other); 438 return sizeof(SkBlockAllocator) - offsetof(SkBlockAllocator, fHead); in BaseHeadBlockSize() 482 using GrowthPolicy = SkBlockAllocator::GrowthPolicy; [all …]
|
D | SkTBlockList.h | 16 using IndexFn = int (*)(const SkBlockAllocator::Block*); 17 using NextFn = int (*)(const SkBlockAllocator::Block*, int); 20 ItemFn<T, typename std::conditional<Const, const SkBlockAllocator::Block, 21 SkBlockAllocator::Block>::type> Resolve> 63 SkBlockAllocator::GrowthPolicy policy = 64 SkBlockAllocator::GrowthPolicy::kFixed) 66 SkBlockAllocator::BlockOverhead<alignof(T)>() + sizeof(T)*itemsPerBlock) {} 108 reserved * sizeof(T), SkBlockAllocator::kIgnoreExistingBytes_Flag); in reserve() 118 SkBlockAllocator::Block* block = fAllocator->currentBlock(); in pop_back() 233 SkBlockAllocator::Overhead<alignof(T)>() + StartingItems * sizeof(T); [all …]
|
D | SkBlockAllocator.cpp | 14 SkBlockAllocator::SkBlockAllocator(GrowthPolicy policy, size_t blockIncrementBytes, in SkBlockAllocator() function in SkBlockAllocator 31 SkBlockAllocator::Block::Block(Block* prev, int allocationSize) in Block() 44 SkBlockAllocator::Block::~Block() { in ~Block() 51 size_t SkBlockAllocator::totalSize() const { in totalSize() 53 size_t size = offsetof(SkBlockAllocator, fHead) + this->scratchBlockSize(); in totalSize() 61 size_t SkBlockAllocator::totalUsableSpace() const { in totalUsableSpace() 73 size_t SkBlockAllocator::totalSpaceInUse() const { in totalSpaceInUse() 82 SkBlockAllocator::Block* SkBlockAllocator::findOwningBlock(const void* p) { in findOwningBlock() 96 void SkBlockAllocator::releaseBlock(Block* block) { in releaseBlock() 150 void SkBlockAllocator::stealHeapBlocks(SkBlockAllocator* other) { in stealHeapBlocks() [all …]
|
D | BUILD.bazel | 54 "SkBlockAllocator.cpp", 55 "SkBlockAllocator.h",
|
/third_party/skia/src/gpu/ |
D | GrMemoryPool.cpp | 25 (size_t) SkBlockAllocator::kMaxAllocationSize); in Make() 27 (size_t) SkBlockAllocator::kMaxAllocationSize); in Make() 33 : fAllocator(SkBlockAllocator::GrowthPolicy::kFixed, minAllocSize, in GrMemoryPool() 34 preallocSize - offsetof(GrMemoryPool, fAllocator) - sizeof(SkBlockAllocator)) { in GrMemoryPool() 65 SkBlockAllocator::ByteRange alloc = fAllocator.allocate<kAlignment, sizeof(Header)>(size); in allocate() 78 header->fSentinel = SkBlockAllocator::kAssignedMarker; in allocate() 102 SkASSERT(SkBlockAllocator::kAssignedMarker == header->fSentinel); in release() 103 header->fSentinel = SkBlockAllocator::kFreedMarker; in release() 111 SkBlockAllocator::Block* block = fAllocator.owningBlock<kAlignment>(header, header->fStart); in release()
|
D | GrMemoryPool.h | 126 SkBlockAllocator fAllocator; // Must be the last field, in order to use extra allocated space
|
/third_party/skia/tests/ |
D | SkBlockAllocatorTest.cpp | 13 using Block = SkBlockAllocator::Block; 14 using GrowthPolicy = SkBlockAllocator::GrowthPolicy; 62 SkBlockAllocator::Block* current = pool->currentBlock(); in add_block() 77 SkBlockAllocator stack{GrowthPolicy::kFixed, 2048}; in DEF_TEST() 80 REPORTER_ASSERT(r, stack.preallocSize() == sizeof(SkBlockAllocator)); in DEF_TEST() 85 SkBlockAllocator* placement = new (mem) SkBlockAllocator(GrowthPolicy::kLinear, 1024, in DEF_TEST() 86 1024 - sizeof(SkBlockAllocator)); in DEF_TEST() 89 placement->preallocUsableSpace() >= (1024 - sizeof(SkBlockAllocator))); in DEF_TEST() 90 placement->~SkBlockAllocator(); in DEF_TEST() 98 inlined->preallocUsableSpace() >= (2048 - sizeof(SkBlockAllocator))); in DEF_TEST() [all …]
|
/third_party/skia/src/gpu/ops/ |
D | AtlasRenderTask.h | 66 PathDrawAllocator fPathDrawAllocator{64, SkBlockAllocator::GrowthPolicy::kFibonacci};
|
/third_party/skia/experimental/graphite/src/geom/ |
D | BoundsManager.h | 110 SkTBlockList<Record> fRects{16, SkBlockAllocator::GrowthPolicy::kFibonacci};
|
/third_party/skia/gn/ |
D | core.gni | 141 "$_src/core/SkBlockAllocator.cpp", 142 "$_src/core/SkBlockAllocator.h",
|
/third_party/skia/ |
D | BUILD.gn | 891 "src/core/SkBlockAllocator.cpp",
|