am c7095947: Call setShader after setLocalMatrix.

* commit 'c7095947cbae1f55ef04a2357957b323e8b1ee64':
  Call setShader after setLocalMatrix.
This commit is contained in:
Leon Scroggins III
2014-07-14 19:12:25 +00:00
committed by Android Git Automerger
2 changed files with 2 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ public class Sweep extends GraphicsActivity {
mMatrix.setRotate(mRotate, x, y);
mShader.setLocalMatrix(mMatrix);
mPaint.setShader(mShader);
mRotate += 3;
if (mRotate >= 360) {
mRotate = 0;

View File

@@ -477,6 +477,7 @@ public class FoldingLayout extends ViewGroup {
mShadowGradientMatrix.setScale(1, mFoldDrawHeight);
mShadowLinearGradient.setLocalMatrix(mShadowGradientMatrix);
}
mGradientShadow.setShader(mShadowLinearGradient);
mGradientShadow.setAlpha(alpha);
}