commit | 60e3b3fa60a672583fe6294139feb940845efc9b | [log] [tgz] |
---|---|---|
author | Gilles Debunne <debunne@google.com> | Tue Mar 13 11:26:05 2012 -0700 |
committer | Gilles Debunne <debunne@google.com> | Tue Mar 13 15:58:33 2012 -0700 |
tree | 714ceb21482c5982067924a66c9bd6d8a77357d3 | |
parent | 6810a2442b7c38a3f5d04aa91cef9c0cc5f92cb9 [diff] |
Use SpanSet to accelerate Layout.drawBackground The main performance improvement should come from the fact that we entirely skip the loop (which calls getLineStart, getLineTop and getLineDescent on each line) in the frequent case where there are no LineBackgroundSpans. Change-Id: Ie2d3168521e88d43f1a4236da2b3e8447606df1e