Reduce size of second iteration in SkTileGridNextDatum<>().
authortomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 5 Apr 2013 14:21:04 +0000 (14:21 +0000)
committertomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 5 Apr 2013 14:21:04 +0000 (14:21 +0000)
commit1aa5129680859eba35f27e2a2b435947edb1a192
tree461bfcb5d29c6f84a3a093605645ab7a6ab68f42
parente3b4c5097a6fd9b6c09d2ffbc3db170a287fdd99
Reduce size of second iteration in SkTileGridNextDatum<>().

Rather than iterating over the entire dataset twice, during the first pass
track how large the second pass needs to be. Entirely data-dependent but
in practice approaches 2x speedup.

BUG=1212
R=junov
https://codereview.appspot.com/8315044/

git-svn-id: http://skia.googlecode.com/svn/trunk@8543 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkTileGrid.h