Improve performance of matrix inversion.

The inversion of scale+translate matrices was using 6 division
operations when it could be using 3. Also, general affine
matrices do not need to compute perspective components of the
matrix. This patch updates the matrix inversion with those
optimizations, and includes benchmark code to exercise those
paths.

R=jvanverth@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk/src@10883 2bbb7eff-a529-9590-31e7-b0007b416f81
1 file changed