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

Side by Side Diff: src/core/SkVarAlloc.h

Issue 741793002: Add SkNVRefCnt, prune down SkPicture's size (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: pack better, who knows why Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 #ifndef SkVarAlloc_DEFINED 1 #ifndef SkVarAlloc_DEFINED
2 #define SkVarAlloc_DEFINED 2 #define SkVarAlloc_DEFINED
3 3
4 #include "SkTypes.h" 4 #include "SkTypes.h"
5 5
6 class SkVarAlloc : SkNoncopyable { 6 class SkVarAlloc : SkNoncopyable {
7 public: 7 public:
8 SkVarAlloc(); 8 SkVarAlloc();
9 ~SkVarAlloc(); 9 ~SkVarAlloc();
10 10
(...skipping 19 matching lines...) Expand all
30 private: 30 private:
31 void makeSpace(size_t bytes, unsigned flags); 31 void makeSpace(size_t bytes, unsigned flags);
32 32
33 char* fByte; 33 char* fByte;
34 unsigned fRemaining; 34 unsigned fRemaining;
35 unsigned fLgSize; // This is always in the range [4, 16], so it really only needs 4 bits. 35 unsigned fLgSize; // This is always in the range [4, 16], so it really only needs 4 bits.
36 36
37 struct Block; 37 struct Block;
38 Block* fBlock; 38 Block* fBlock;
39 }; 39 };
40 SK_COMPILE_ASSERT(sizeof(SkVarAlloc) <= 24, SkVarAllocSize);
40 41
41 #endif//SkVarAlloc_DEFINED 42 #endif//SkVarAlloc_DEFINED
OLDNEW
« include/core/SkPicture.h ('K') | « src/core/SkRecord.h ('k') | tests/PictureTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698