Add perspective support to SkMatrix44 initializers.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sat, 5 Oct 2013 01:16:30 +0000 (01:16 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sat, 5 Oct 2013 01:16:30 +0000 (01:16 +0000)
commit722555bebbe9128783b8dbe0e897c09c9ccb88ce
treed780741ca0bfdb69da7791df65574bcd5e734e8f
parent851af07b11ad1d5482958dcef5689bd8841b4a94
Add perspective support to SkMatrix44 initializers.

I noticed SkMatrix <-> SkMatrix44 conversions were dropping the
perspective values on the floor.  As we use SkMatrix44 heavily in
Chromium, I'm concerned this missing code will cause a bug eventually.
It should be correct to simply use the bottom row of the 4x4 matrix
excluding the third column.

Previously committed and reverted, second attempt with fix for
incorrect use of SkMScalar/SkScalar.

BUG=
R=reed@google.com, caryclark@google.com

Author: aelias@chromium.org

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

git-svn-id: http://skia.googlecode.com/svn/trunk@11624 2bbb7eff-a529-9590-31e7-b0007b416f81
include/utils/SkMatrix44.h
src/utils/SkMatrix44.cpp
tests/Matrix44Test.cpp