diff options
Diffstat (limited to 'include/core/SkChunkAlloc.h')
-rw-r--r-- | include/core/SkChunkAlloc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkChunkAlloc.h b/include/core/SkChunkAlloc.h index 102962b02a..1b52a35c16 100644 --- a/include/core/SkChunkAlloc.h +++ b/include/core/SkChunkAlloc.h @@ -27,12 +27,12 @@ public: kReturnNil_AllocFailType, kThrow_AllocFailType }; - + void* alloc(size_t bytes, AllocFailType); void* allocThrow(size_t bytes) { return this->alloc(bytes, kThrow_AllocFailType); } - + /** Call this to unalloc the most-recently allocated ptr by alloc(). On success, the number of bytes freed is returned, or 0 if the block could not be unallocated. This is a hint to the underlying allocator that @@ -40,7 +40,7 @@ public: to ignore this call (and return 0). */ size_t unalloc(void* ptr); - + size_t totalCapacity() const { return fTotalCapacity; } int blockCount() const { return fBlockCount; } |