SkRWBuffer: preallocate 'initialCapacity'
authorfmalita <fmalita@chromium.org>
Fri, 30 Sep 2016 17:52:08 +0000 (10:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 30 Sep 2016 17:52:08 +0000 (10:52 -0700)
commit2e36e88f40c8a37043d5b9ef17bc72b69a394b95
tree723f445fa0287a76cc219117f5e0bdf0c9415020
parentc8deb023344211979476490d9296d42ed8538ba2
SkRWBuffer: preallocate 'initialCapacity'

We're currently ignoring the hint, resulting in multiple unneeded
allocations later.

BUG=chromium:651698
R=scroggo@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2384763002

Review-Url: https://codereview.chromium.org/2384763002
src/core/SkRWBuffer.cpp