diff options
author | John Reck <jreck@google.com> | 2014-08-08 13:21:00 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-08-08 20:24:34 +0000 |
commit | a7c2ea20c43ab797bef5801530687e22e83def8f (patch) | |
tree | a5456b7d3cf8fb9f49a330bb626d490ba3de3742 /libs/hwui/Animator.h | |
parent | 5c8ea2c369deab75719fe7c7301846a8ef955702 (diff) |
Fix damage for layers for projection receivers
Bug: 16880228
Change-Id: I59ab760a21f49cc2cac0d8936b173cff292e6114
Diffstat (limited to 'libs/hwui/Animator.h')
-rw-r--r-- | libs/hwui/Animator.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/hwui/Animator.h b/libs/hwui/Animator.h index b0dcf2d33bbf..6dfe7b4a6d05 100644 --- a/libs/hwui/Animator.h +++ b/libs/hwui/Animator.h @@ -62,7 +62,7 @@ public: bool isFinished() { return mPlayState == FINISHED; } float finalValue() { return mFinalValue; } - ANDROID_API virtual uint32_t dirtyMask() { return 0; } + ANDROID_API virtual uint32_t dirtyMask() = 0; protected: BaseRenderNodeAnimator(float finalValue); @@ -145,6 +145,9 @@ class CanvasPropertyPrimitiveAnimator : public BaseRenderNodeAnimator { public: ANDROID_API CanvasPropertyPrimitiveAnimator(CanvasPropertyPrimitive* property, float finalValue); + + ANDROID_API virtual uint32_t dirtyMask(); + protected: virtual float getValue(RenderNode* target) const; virtual void setValue(RenderNode* target, float value); @@ -161,6 +164,9 @@ public: ANDROID_API CanvasPropertyPaintAnimator(CanvasPropertyPaint* property, PaintField field, float finalValue); + + ANDROID_API virtual uint32_t dirtyMask(); + protected: virtual float getValue(RenderNode* target) const; virtual void setValue(RenderNode* target, float value); @@ -173,13 +179,15 @@ class RevealAnimator : public BaseRenderNodeAnimator { public: ANDROID_API RevealAnimator(int centerX, int centerY, float startValue, float finalValue); + + ANDROID_API virtual uint32_t dirtyMask(); + protected: virtual float getValue(RenderNode* target) const; virtual void setValue(RenderNode* target, float value); private: int mCenterX, mCenterY; - bool mInverseClip; }; } /* namespace uirenderer */ |