Home
last modified time | relevance | path

Searched refs:fAllocCount (Results 1 – 4 of 4) sorted by relevance

/external/skia/legacy/include/core/
DSkTArray.h57 fAllocCount = 0; in SkTArray()
311 fAllocCount = fReserveCount; in init()
314 fAllocCount = SkMax32(fCount, fReserveCount); in init()
315 fMemArray = sk_malloc_throw(fAllocCount * sizeof(T)); in init()
327 SkASSERT(fAllocCount >= 0); in checkRealloc()
332 int newAllocCount = fAllocCount; in checkRealloc()
334 if (newCount > fAllocCount) { in checkRealloc()
337 } else if (newCount < fAllocCount / 3) { in checkRealloc()
338 newAllocCount = SkMax32(fAllocCount / 2, fReserveCount); in checkRealloc()
341 if (newAllocCount != fAllocCount) { in checkRealloc()
[all …]
/external/skia/include/core/
DSkTArray.h57 fAllocCount = 0; in SkTArray()
311 fAllocCount = fReserveCount; in init()
314 fAllocCount = SkMax32(fCount, fReserveCount); in init()
315 fMemArray = sk_malloc_throw(fAllocCount * sizeof(T)); in init()
327 SkASSERT(fAllocCount >= 0); in checkRealloc()
332 int newAllocCount = fAllocCount; in checkRealloc()
334 if (newCount > fAllocCount || newCount < (fAllocCount / 3)) { in checkRealloc()
339 if (newAllocCount != fAllocCount) { in checkRealloc()
341 fAllocCount = newAllocCount; in checkRealloc()
344 if (fAllocCount == fReserveCount && NULL != fPreAllocMemArray) { in checkRealloc()
[all …]
DSkDeque.h126 int fAllocCount; // number of elements to allocate per block variable
/external/skia/src/core/
DSkDeque.cpp33 , fAllocCount(allocCount) { in SkDeque()
43 , fAllocCount(allocCount) { in SkDeque()
74 fFrontBlock = this->allocateBlock(fAllocCount); in push_front()
89 first = this->allocateBlock(fAllocCount); in push_front()
114 fBackBlock = this->allocateBlock(fAllocCount); in push_back()
129 last = this->allocateBlock(fAllocCount); in push_back()