Index: src/core/SkVarAlloc.h |
diff --git a/src/core/SkVarAlloc.h b/src/core/SkVarAlloc.h |
index 2e8f19c8fe01e6efbdcc16c08331b19da4df6484..6b0250ad28805f3c53308109696e4c9c0c7cca0c 100644 |
--- a/src/core/SkVarAlloc.h |
+++ b/src/core/SkVarAlloc.h |
@@ -5,7 +5,8 @@ |
class SkVarAlloc : SkNoncopyable { |
public: |
- SkVarAlloc(); |
+ // Smallest block we'll allocate is 2**N bytes. |
+ explicit SkVarAlloc(size_t minLgSize); |
~SkVarAlloc(); |
// Returns contiguous bytes aligned at least for pointers. You may pass SK_MALLOC_THROW, etc. |
@@ -32,7 +33,7 @@ private: |
char* fByte; |
unsigned fRemaining; |
- unsigned fLgSize; // This is always in the range [4, 16], so it really only needs 4 bits. |
+ unsigned fLgSize; |
struct Block; |
Block* fBlock; |