Searched refs:GrowthPolicy (Results 1 – 7 of 7) sorted by relevance
/third_party/skia/src/core/ |
D | SkBlockAllocator.cpp | 14 SkBlockAllocator::SkBlockAllocator(GrowthPolicy policy, size_t blockIncrementBytes, in SkBlockAllocator() 22 , fN0((policy == GrowthPolicy::kLinear || policy == GrowthPolicy::kExponential) ? 1 : 0) in SkBlockAllocator() 129 GrowthPolicy gp = static_cast<GrowthPolicy>(fGrowthPolicy); in releaseBlock() 130 if (fN0 > 0 && (fN1 > 1 || gp == GrowthPolicy::kFibonacci)) { in releaseBlock() 131 SkASSERT(gp != GrowthPolicy::kFixed); // fixed never needs undoing, fN0 always is 0 in releaseBlock() 132 if (gp == GrowthPolicy::kLinear) { in releaseBlock() 134 } else if (gp == GrowthPolicy::kFibonacci) { in releaseBlock() 140 SkASSERT(gp == GrowthPolicy::kExponential); in releaseBlock() 185 GrowthPolicy gp = static_cast<GrowthPolicy>(fGrowthPolicy); in reset() 186 fN0 = (gp == GrowthPolicy::kLinear || gp == GrowthPolicy::kExponential) ? 1 : 0; in reset() [all …]
|
D | SkBlockAllocator.h | 59 enum class GrowthPolicy : int { enum 66 inline static constexpr int kGrowthPolicyCount = static_cast<int>(GrowthPolicy::kLast) + 1; 183 SkBlockAllocator(GrowthPolicy policy, size_t blockIncrementBytes, 482 using GrowthPolicy = SkBlockAllocator::GrowthPolicy; 485 new (fStorage) SkBlockAllocator(GrowthPolicy::kFixed, N, N - sizeof(SkBlockAllocator)); in SkSBlockAllocator() 487 explicit SkSBlockAllocator(GrowthPolicy policy) { in SkSBlockAllocator() 491 SkSBlockAllocator(GrowthPolicy policy, size_t blockIncrementBytes) { in SkSBlockAllocator()
|
D | SkTBlockList.h | 63 SkBlockAllocator::GrowthPolicy policy = 64 SkBlockAllocator::GrowthPolicy::kFixed)
|
/third_party/skia/tests/ |
D | SkBlockAllocatorTest.cpp | 14 using GrowthPolicy = SkBlockAllocator::GrowthPolicy; typedef 77 SkBlockAllocator stack{GrowthPolicy::kFixed, 2048}; in DEF_TEST() 85 SkBlockAllocator* placement = new (mem) SkBlockAllocator(GrowthPolicy::kLinear, 1024, in DEF_TEST() 307 SkSBlockAllocator<kInitSize> pool{(GrowthPolicy) gp}; in DEF_TEST() 322 SkSBlockAllocator<kBlockIncrement> pool{GrowthPolicy::kLinear}; in DEF_TEST() 356 SkSBlockAllocator<1024> pool{(GrowthPolicy) gp}; in DEF_TEST()
|
/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/src/gpu/ |
D | GrMemoryPool.cpp | 33 : fAllocator(SkBlockAllocator::GrowthPolicy::kFixed, minAllocSize, in GrMemoryPool()
|