diff options
author | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-23 18:09:54 +0000 |
---|---|---|
committer | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-23 18:09:54 +0000 |
commit | fbfcd5602128ec010c82cb733c9cdc0a3254f9f3 (patch) | |
tree | d8b4815d15946c32ee9d254e932411e93be942bb /include/core/SkChunkAlloc.h | |
parent | 2abed834789bb64c7da740df4c47efc142b7311a (diff) |
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)
This CL is part I of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6485054
git-svn-id: http://skia.googlecode.com/svn/trunk@5262 2bbb7eff-a529-9590-31e7-b0007b416f81
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; } |