commit | 08d1fccf6eeec0a9fd5421e59e4d05daccf6e339 | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Thu Nov 20 09:18:31 2014 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Thu Nov 20 09:18:32 2014 -0800 |
tree | 4b4e6e07b4f4371a443d057591665a5ac0bcbdd3 | |
parent | cdeeb095a629b0db9f0ddff09516f2b78255c047 [diff] |
Add 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 Review URL: https://codereview.chromium.org/741793002