Use Identity matrix for SkTransparentShader.
authorscroggo <scroggo@google.com>
Wed, 4 Jun 2014 15:21:01 +0000 (08:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 4 Jun 2014 15:21:01 +0000 (08:21 -0700)
commitca76c55d60dfe041e30e210d41fa0feb7fb54a1f
tree5cc7e631d077148d564c2b62a396630df0eb8a8b
parent2583b6257fea931c31c6b3b75cc583106335ad90
Use Identity matrix for SkTransparentShader.

The SkTransparentShader is just a placeholder that should not
actually be used, so its CTM is not meaningful. However, it needs
to be invertible in order to not assert in SkShader::Context's
constructor. So use SkMatrix::I().

This fixes a CTS test on Android.

R=reed@google.com

Author: scroggo@google.com

Review URL: https://codereview.chromium.org/315743003
src/core/SkBlitter.cpp