diff options
author | Raph Levien <raph@google.com> | 2015-03-02 14:30:53 -0800 |
---|---|---|
committer | Raph Levien <raph@google.com> | 2015-03-04 13:49:12 -0800 |
commit | d3ab692d28018825578ff05832644cfad60233fb (patch) | |
tree | ff5e9106660f5248e67a101eaf6481133452062d /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | f63a665f92fe13f8f9d8eb58cf0987616cade9b5 (diff) |
Some refactoring of StaticLayout
This patch refactors construction of StaticLayout to use an explicit
Builder object, which is intended to hold state used for constructing
the layout but not needed for merely reading out the results.
Builder objects are allocated from a pool and explicitly recycled,
so there is insignificant additional allocation cost.
This patch has very little impact on performance (it does avoid
allocating a FontMetricsInt object) but opens the way for significant
performance and functionality improvements as more of the Builder
functionality migrates to native code.
Change-Id: I2a576643e573a38b61f895a80d5d92a85c94b6b4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions