Reduce sizeof(SkPicture::Analysis) from 24 bytes to 2 bytes.
authorjbroman <jbroman@chromium.org>
Mon, 27 Apr 2015 14:55:33 +0000 (07:55 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Apr 2015 14:55:34 +0000 (07:55 -0700)
commitde8667b81f2fed2fbecba68e751756a48df5e0dd
tree359c0bb38d135a3cb733bff8b5d2ab14352c6084
parent7831a4bbb46a919316efc7c70808dcaaf8ee629a
Reduce sizeof(SkPicture::Analysis) from 24 bytes to 2 bytes.

This saves "up to" 22 bytes per SkPicture.

Due to alignment, this reduces sizeof(SkPicture):
- from 88 to 72 bytes on Linux x64
- from 68 to 48 bytes on Android
(with Chrome's build settings)

It also somewhat simplifies the GPU veto logic.

BUG=skia:

[mtklein] No public API changes.
TBR=reed@google.com

Review URL: https://codereview.chromium.org/1060863004
include/core/SkPicture.h
src/core/SkPicture.cpp