Add SkMiniData.
authormtklein <mtklein@chromium.org>
Wed, 17 Sep 2014 19:21:59 +0000 (12:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Sep 2014 19:21:59 +0000 (12:21 -0700)
commit6a5c7085bcebe263ac43486f1825407580662924
treeebb0d384a9515a525bfabce34fb51dd31eb729bd
parentef59adba5b5058c60c1b92b17904b2813be644ea
Add SkMiniData.

This is a bit like a limited SkData, geared to store really tiny byte strings.

This is not hooked up anywhere beyond the new unit test.  I did experimentally
plumb it into SkRecord for drawPosTextH: just over 40% of drawPosTextH calls in
our repo can fit into ShortData.

BUG=skia:
R=reed@google.com, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/573323002
gyp/core.gypi
gyp/tests.gypi
src/core/SkMiniData.cpp [new file with mode: 0644]
src/core/SkMiniData.h [new file with mode: 0644]
tests/MiniDataTest.cpp [new file with mode: 0644]