Lines Matching refs:fReserve
18 SkTDArray() : fArray(nullptr), fReserve(0), fCount(0) {} in SkTDArray()
22 fReserve = fCount = 0; in SkTDArray()
27 fReserve = fCount = count; in SkTDArray()
30 SkTDArray(const SkTDArray<T>& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray()
34 SkTDArray(SkTDArray<T>&& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray()
43 if (src.fCount > fReserve) {
72 SkTSwap(fReserve, other.fReserve); in swap()
88 fReserve = fCount = 0; in release()
104 int reserved() const { return fReserve; } in reserved()
136 fReserve = fCount = 0; in reset()
138 SkASSERT(fReserve == 0 && fCount == 0); in reset()
155 if (count > fReserve) { in setCount()
162 if (reserve > fReserve) { in setReserve()
348 SkASSERT((fReserve == 0 && fArray == NULL) || in validate()
349 (fReserve > 0 && fArray != NULL)); in validate()
350 SkASSERT(fCount <= fReserve); in validate()
355 fReserve = fCount; in shrinkToFit()
356 fArray = (T*)sk_realloc_throw(fArray, fReserve * sizeof(T)); in shrinkToFit()
361 int fReserve; variable
381 SkASSERT(count > fReserve); in resizeStorageToAtLeast()
382 fReserve = count + 4; in resizeStorageToAtLeast()
383 fReserve += fReserve / 4; in resizeStorageToAtLeast()
384 fArray = (T*)sk_realloc_throw(fArray, fReserve * sizeof(T)); in resizeStorageToAtLeast()