Fix unnitialized memory in Sk2DPathEffect. The SkDescriptor checksum
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 20 May 2011 19:19:09 +0000 (19:19 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 20 May 2011 19:19:09 +0000 (19:19 +0000)
commit1a39493b328d945a000a0690659beb18aa932d3d
tree1ae5141d75e2363524aa2f2d852ac7a9a59b2840
parent8c5753ea2e74ac46224f4b38f3bdec3e1bba64c6
Fix unnitialized memory in Sk2DPathEffect.  The SkDescriptor checksum
calculation for Sk2DPathEffect currently evaluates all the bytes in the
embedded SkMatrix.  This includes the type mask, which contains some
uninitialized padding.  Changing it to use SkMatrix::flatten() and
SkMatrix::unflatten() (as SkGroupShape was doing) avoids the uninitialized
data errors.

Review URL:  http://codereview.appspot.com/4529074/

git-svn-id: http://skia.googlecode.com/svn/trunk@1395 2bbb7eff-a529-9590-31e7-b0007b416f81
src/effects/Sk2DPathEffect.cpp