Searched refs:fAllocatedBytes (Results 1 – 1 of 1) sorted by relevance
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()[all …]