Searched refs:SkBlockAllocator (Results 1 - 8 of 8) sorted by relevance
/third_party/skia/src/core/ |
H A D | SkBlockAllocator.h | 24 * SkBlockAllocator provides low-level support for a block allocated arena with a dynamic tail that 28 * its blocks has its destructors called externally. It is recommended that SkBlockAllocator is 32 * SkBlockAllocator has no limit to its total size, but each allocation is limited to 512MB (which 39 * SkBlockAllocator allocator(policy, heapAllocSize); 43 * SkBlockAllocator* allocator = new (mem) SkBlockAllocator(policy, heapAllocSize, 44 * totalSize- sizeof(SkBlockAllocator)); 53 class SkBlockAllocator final : SkNoncopyable { 132 friend class SkBlockAllocator; 183 SkBlockAllocator(GrowthPolic [all...] |
H A D | SkTBlockList.h | 11 #include "src/core/SkBlockAllocator.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 = in SkTBlockList() 64 SkBlockAllocator::GrowthPolicy::kFixed) in SkTBlockList() 66 SkBlockAllocator::BlockOverhead<alignof(T)>() + sizeof(T)*itemsPerBlock) {} in SkTBlockList() 108 reserved * sizeof(T), SkBlockAllocator::kIgnoreExistingBytes_Flag); in reserve() 118 SkBlockAllocator in pop_back() 62 SkTBlockList(int itemsPerBlock, SkBlockAllocator::GrowthPolicy policy = SkBlockAllocator::GrowthPolicy::kFixed) SkTBlockList() argument [all...] |
H A D | SkBlockAllocator.cpp | 8 #include "src/core/SkBlockAllocator.h" 14 SkBlockAllocator::SkBlockAllocator(GrowthPolicy policy, size_t blockIncrementBytes, in SkBlockAllocator() function in SkBlockAllocator 24 // The head block always fills remaining space from SkBlockAllocator's size, because it's 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 [all...] |
/third_party/skia/src/gpu/ |
H A 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() 114 // (p - block) matches the original alignedOffset value from SkBlockAllocator in release() [all...] |
H A D | GrMemoryPool.h | 11 #include "src/core/SkBlockAllocator.h" 45 * and less than SkBlockAllocator::kMaxAllocationSize. 126 SkBlockAllocator fAllocator; // Must be the last field, in order to use extra allocated space
|
/third_party/skia/tests/ |
H A D | SkBlockAllocatorTest.cpp | 8 #include "src/core/SkBlockAllocator.h" 13 using Block = SkBlockAllocator::Block; 14 using GrowthPolicy = SkBlockAllocator::GrowthPolicy; 51 // SkBlockAllocator holds on to the largest last-released block to reuse for new allocations, 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() [all...] |
/third_party/skia/src/gpu/ops/ |
H A D | AtlasRenderTask.h | 66 PathDrawAllocator fPathDrawAllocator{64, SkBlockAllocator::GrowthPolicy::kFibonacci};
|
/third_party/skia/experimental/graphite/src/geom/ |
H A D | BoundsManager.h | 110 SkTBlockList<Record> fRects{16, SkBlockAllocator::GrowthPolicy::kFibonacci};
|
Completed in 4 milliseconds