Benchmarking suggests that replacing some of the conversions from float to int
authortomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 6 Jun 2011 15:18:28 +0000 (15:18 +0000)
committertomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 6 Jun 2011 15:18:28 +0000 (15:18 +0000)
commitac3852571e4079e7dee8fb576e31048d596c8c17
treee6b171b5eb3386e4265a5e63488939adefa1854e
parentf910b36e45b3211ac46ad964b221d6251dda2cf7
Benchmarking suggests that replacing some of the conversions from float to int
with direct floating-point comparisons in computeTypeMask() is a significant win
(up to 40%?).
In practice, we see a 10-15% speedup in this function (the current most
expensive Skia function) in Chrome on the FishIETank demo.

The remainder of the function looks like it ought to be amenable to similar
speedups, but we haven't found a rewrite that behaves well in benchmarking yet.

http://codereview.appspot.com/4551097/

git-svn-id: http://skia.googlecode.com/svn/trunk@1512 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkMatrix.cpp