aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/SkArenaAlloc.h
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2018-06-07 13:13:54 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-07 22:59:36 +0000
commit9f752aada37c9e1e10328721ea0b480553da50d5 (patch)
treedf66b62e3e3e5b4cc873d54ba3ae7f490a475a42 /include/private/SkArenaAlloc.h
parentae957c4f9daf276bf5603dc8e04a92400e3bba33 (diff)
tweak SkArenaAlloc comments, parameter names
Change-Id: Ie7518f2ad2e0f11f0acd5a3bfeff4e5ca7188311 Reviewed-on: https://skia-review.googlesource.com/132925 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'include/private/SkArenaAlloc.h')
-rw-r--r--include/private/SkArenaAlloc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/private/SkArenaAlloc.h b/include/private/SkArenaAlloc.h
index 5646f88daf..ebc7f13399 100644
--- a/include/private/SkArenaAlloc.h
+++ b/include/private/SkArenaAlloc.h
@@ -26,14 +26,14 @@
// Examples:
//
// char block[mostCasesSize];
-// SkArenaAlloc arena(block, almostAllCasesSize);
+// SkArenaAlloc arena(block, mostCasesSize);
//
// If mostCasesSize is too large for the stack, you can use the following pattern.
//
// std::unique_ptr<char[]> block{new char[mostCasesSize]};
// SkArenaAlloc arena(block.get(), mostCasesSize, almostAllCasesSize);
//
-// If the program only sometimes allocates memory, use the following.
+// If the program only sometimes allocates memory, use the following pattern.
//
// SkArenaAlloc arena(nullptr, 0, almostAllCasesSize);
//
@@ -42,7 +42,7 @@
//
// class Foo {
// char storage[mostCasesSize];
-// SkArenaAlloc arena (storage, almostAllCasesSize);
+// SkArenaAlloc arena (storage, mostCasesSize);
// };
//
// In addition, the system is optimized to handle POD data including arrays of PODs (where
@@ -57,7 +57,7 @@
// there are 71 allocations.
class SkArenaAlloc {
public:
- SkArenaAlloc(char* block, size_t size, size_t);
+ SkArenaAlloc(char* block, size_t blockSize, size_t extraSize);
SkArenaAlloc(size_t extraSize)
: SkArenaAlloc(nullptr, 0, extraSize)