DescriptionAdd 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=
Committed: http://code.google.com/p/skia/source/detail?r=11624
Patch Set 1 #Patch Set 2 : Add test and header comments #
Total comments: 2
Patch Set 3 : Fix 3x3 comment #Patch Set 4 : Rebase #Patch Set 5 : Reupload for trybots #Patch Set 6 : Switch SkMatrix inputs to SkScalar and be more careful about scalar comparisons #
Messages
Total messages: 16 (0 generated)
|