Lines Matching refs:fAllocatedBytes
25 GrAutoMalloc() : fPtr(NULL), fAllocatedBytes(0){ in GrAutoMalloc()
28 GrAutoMalloc(size_t bytes) : fPtr(GrMalloc(bytes)), fAllocatedBytes(bytes) {} in GrAutoMalloc()
37 size_t size() const { return fAllocatedBytes; } in size()
46 fAllocatedBytes = 0; in detach()
58 alloc = newSize > fAllocatedBytes;
60 alloc = newSize != fAllocatedBytes;
65 fAllocatedBytes = newSize;
67 GrAssert(fAllocatedBytes >= newSize);
68 GR_DEBUGCODE(memset(fPtr, 0xEF, fAllocatedBytes));
78 fAllocatedBytes = 0; in free()
83 size_t fAllocatedBytes; variable
95 fAllocatedBytes = SIZE; in GrAutoSMalloc()
101 fAllocatedBytes = bytes; in GrAutoSMalloc()
104 fAllocatedBytes = SIZE; in GrAutoSMalloc()
129 fAllocatedBytes = SIZE;
133 fAllocatedBytes = SIZE;
135 } else if ((newSize > fAllocatedBytes) ||
136 (!growOnly && newSize < (fAllocatedBytes >> 1))) {
141 fAllocatedBytes = newSize;
143 GrAssert(fAllocatedBytes >= newSize);
144 GrAssert((fPtr == fStorage) == (fAllocatedBytes == SIZE));
145 GR_DEBUGCODE(memset(fPtr, 0xEF, fAllocatedBytes));
156 fAllocatedBytes = 0; in free()
162 uint32_t fAllocatedBytes; variable