diff options
author | Chris Craik <ccraik@google.com> | 2014-07-29 12:50:14 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-07-30 17:15:50 +0000 |
commit | af4d04cab6d48ae0d6a5e79bd30f679af87abaad (patch) | |
tree | b1fe9d83f5ccc32b1e0db8f002d2d3035368dfac /libs/hwui/Animator.cpp | |
parent | 3d1856f4449f02a9a3bda06738c3eb83df96f88b (diff) |
Use RoundRect clipping for circle reveal animation
bug:16630975
Also, remove inverse clipping feature from reveal animator.
Change-Id: I770a4eb48cd123b0ca0f39d16a0f3eefd1be3653
Diffstat (limited to 'libs/hwui/Animator.cpp')
-rw-r--r-- | libs/hwui/Animator.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libs/hwui/Animator.cpp b/libs/hwui/Animator.cpp index 24ed6cd51de0..dd2e2fd52827 100644 --- a/libs/hwui/Animator.cpp +++ b/libs/hwui/Animator.cpp @@ -288,21 +288,20 @@ void CanvasPropertyPaintAnimator::setValue(RenderNode* target, float value) { LOG_ALWAYS_FATAL("Unknown field %d", (int) mField); } -RevealAnimator::RevealAnimator(int centerX, int centerY, bool inverseClip, +RevealAnimator::RevealAnimator(int centerX, int centerY, float startValue, float finalValue) : BaseRenderNodeAnimator(finalValue) , mCenterX(centerX) - , mCenterY(centerY) - , mInverseClip(inverseClip) { + , mCenterY(centerY) { setStartValue(startValue); } float RevealAnimator::getValue(RenderNode* target) const { - return target->properties().getRevealClip().radius(); + return target->properties().getRevealClip().getRadius(); } void RevealAnimator::setValue(RenderNode* target, float value) { - target->animatorProperties().mutableRevealClip().set(true, mInverseClip, + target->animatorProperties().mutableRevealClip().set(true, mCenterX, mCenterY, value); } |