Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: src/core/SkVarAlloc.h

Issue 793033002: SkRecord: increase min block to 512B, remove max. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: bump Gr Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkRecord.h ('k') | src/core/SkVarAlloc.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/core/SkRecord.h ('k') | src/core/SkVarAlloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698