OSDN Git Service

VectorDrawable native rendering - Step 4 of MANY
authorDoris Liu <tianliu@google.com>
Thu, 7 Jan 2016 21:49:26 +0000 (13:49 -0800)
committerDoris Liu <tianliu@google.com>
Tue, 2 Feb 2016 23:04:01 +0000 (15:04 -0800)
commitf276acd98457bcaabc9e79a17a736b3b484f005e
treeb9efee10194c520b09a4813f7b8074be9a2f99c8
parent650e3b70e4aa2fa9acf2f9c6ce211c4b46862c15
VectorDrawable native rendering - Step 4 of MANY

This CL runs VectorDrawable animation on RenderThread. The changes in this CL
include:
- Convert all the animators in AnimatorSet for AVD into a set of RenderNodeAnimators.
- Hook up the new animators with RenderThread
- Add drawOp in RecordingCanvas for drawing VD so that during the animation
  on RenderThread, all the property changes on VD can be reflected on the screen.

TODO:
- Implement reverse and reset for AVD.

Change-Id: I2df1d754f2db0ad098d9c15dde4bb2bdfafc2315
29 files changed:
core/java/android/animation/AnimatorSet.java
core/java/android/animation/PathKeyframes.java
core/java/android/animation/PropertyValuesHolder.java
core/java/android/util/PathParser.java
core/java/android/view/RenderNode.java
core/java/android/view/RenderNodeAnimatorSetHelper.java [new file with mode: 0644]
core/jni/Android.mk
core/jni/AndroidRuntime.cpp
core/jni/android_graphics_drawable_AnimatedVectorDrawable.cpp [new file with mode: 0644]
core/jni/android_graphics_drawable_VectorDrawable.cpp
graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
graphics/java/android/graphics/drawable/VectorDrawable.java
libs/hwui/Android.mk
libs/hwui/Animator.cpp
libs/hwui/Animator.h
libs/hwui/Canvas.h
libs/hwui/DisplayListCanvas.cpp
libs/hwui/DisplayListCanvas.h
libs/hwui/FrameBuilder.cpp
libs/hwui/PropertyValuesAnimatorSet.cpp [new file with mode: 0644]
libs/hwui/PropertyValuesAnimatorSet.h [new file with mode: 0644]
libs/hwui/PropertyValuesHolder.cpp [new file with mode: 0644]
libs/hwui/PropertyValuesHolder.h [new file with mode: 0644]
libs/hwui/RecordedOp.h
libs/hwui/RecordingCanvas.cpp
libs/hwui/RecordingCanvas.h
libs/hwui/SkiaCanvas.cpp
libs/hwui/VectorDrawable.cpp
libs/hwui/VectorDrawable.h