Change growth function for SkWriter32
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 11 Feb 2014 15:07:26 +0000 (15:07 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 11 Feb 2014 15:07:26 +0000 (15:07 +0000)
commit93d5ffda58391fe819199bf5afddc622e067af7e
treee610a82815418637848db65923e19c35ea03c750
parentac14aac67b50e7f61f6bcd19b5a4c13e1558bdec
Change growth function for SkWriter32

Add setCountExact to SkTDArray to allow external control of array growth.
Use it to allow SkWriter to control the buffer growth pattern.
Change buffer growth pattern to 1.5n+4096

BUG=skia:2125
R=tomhudson@google.com, mtklein@google.com, reed@google.com

Author: iancottrell@google.com

Review URL: https://codereview.chromium.org/150663014

git-svn-id: http://skia.googlecode.com/svn/trunk@13401 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkTDArray.h
src/core/SkWriter32.cpp