summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorBen Wagner <bungeman@google.com>2015-01-12 14:26:14 -0500
committerBen Wagner <bungeman@google.com>2015-01-12 15:19:18 -0500
commitf462c2491bae67815ae9e4a2ff7ce77db97b49c6 (patch)
tree56d010a882738c3e107230ae0971deec429077c0 /tools/aapt2/diff/Diff.cpp
parent91a9bfc346848359d4946ac970748b48454ece32 (diff)
Use at least SkStreamAsset for SkTypefaces.
The existing AssetStreamAdapter is only SkStreamRewindable, and does not support 'duplicate'. This is needed in order for SkTypeface to be used properly. Also, SkTypeface is moving to require SkStreamAsset for creating typefaces for performance and code reasons. In the previous code, Asset::getBuffer is called on creation of the typeface, so do so explicitly and manage the memory directly. This also prevents additional copies being made of the asset data. BUG: 18867034 Change-Id: I458a8ec024efefb761138178b87b88b48cb4a773
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions