commit | 69225d02500c882053864410b1b775197455f2c5 | [log] [tgz] |
---|---|---|
author | Brian Salomon <bsalomon@google.com> | Wed Mar 15 20:52:35 2017 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Mar 16 13:08:04 2017 +0000 |
tree | 46ffa2c1056efee1968a01b492571a1856eff1d8 | |
parent | 0c984a0af30989fe20b1f8af18867983a88c48b6 [diff] |
Make SkTArray not allocate unless reserve or initial count > 0 This also makes it so that it doesn't shrink back into preallocated storage and therefore doesn't need to store the reserve count. Change-Id: Ia320fed04c329641a5494947db39cefd2fb6d80f Reviewed-on: https://skia-review.googlesource.com/9531 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>