DescriptionAdd SkNVRefCnt, prune down SkPicture's size
SkNVRefCnt is a variant of SkRefCnt that's Not Virtual, so weighs 4 bytes
instead of 8 or 16. There's only benefit to doing this if the deriving class
does not otherwise need a vtable, e.g. SkPicture.
I've stripped out some cruft from SkPicture, rearranged fields to pack tightly,
and added compile asserts for the sizes of SkPicture, SkRecord, and
SkVarAlloc.
BUG=skia:3144
Committed: https://skia.googlesource.com/skia/+/08d1fccf6eeec0a9fd5421e59e4d05daccf6e339
Patch Set 1 #Patch Set 2 : dtor #Patch Set 3 : trim some bytes #Patch Set 4 : notes #
Total comments: 4
Patch Set 5 : tom #Patch Set 6 : trim a bit more, add a compile assert #Patch Set 7 : update test to current size on my desktop #Patch Set 8 : pack better, who knows why #
Total comments: 2
Patch Set 9 : picture #Patch Set 10 : tweak name #
Messages
Total messages: 18 (4 generated)
|