Lines Matching refs:fAllocated
33 GrTDArray() : fArray(NULL), fAllocated(0), fCount(0) {}
35 fCount = fAllocated = src.fCount;
36 fArray = (T*)GrMalloc(fAllocated * sizeof(T));
61 if (fAllocated < src.fCount) {
62 fAllocated = src.fCount;
64 fArray = (T*)GrMalloc(fAllocated * sizeof(T));
76 fAllocated = fCount = 0;
188 int fAllocated, fCount;
193 GrAssert(fCount <= fAllocated);
194 if (0 == fAllocated) {
195 fAllocated = GrInitialArrayAllocationCount();
196 fArray = (T*)GrMalloc(fAllocated * sizeof(T));
197 } else if (fCount == fAllocated) {
198 fAllocated = GrNextArrayAllocationCount(fAllocated);
199 T* newArray = (T*)GrMalloc(fAllocated * sizeof(T));
212 GrAssert(fCount < fAllocated);