OSDN Git Service

Ref count the nodes in VectorDrawable
authorDoris Liu <tianliu@google.com>
Fri, 5 Feb 2016 00:16:27 +0000 (16:16 -0800)
committerDoris Liu <tianliu@google.com>
Fri, 5 Feb 2016 19:12:25 +0000 (11:12 -0800)
commitef062ebd20032efe697741d6c3dfd1faec54f590
treea5b550adfd046ef3e0a155de55004e9c8d663200
parent766431aa57c16ece8842287a92b2e7208e3b8ac3
Ref count the nodes in VectorDrawable

Also added API check so that for pre-N we ignore invalid VD animation,
in order to avoid breaking old apps.

Bug: 26975469
Bug: 26949340
Change-Id: I498539ad6a05de3d886e7dcdc8a167e78333ab11
core/jni/android_graphics_drawable_VectorDrawable.cpp
graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
graphics/java/android/graphics/drawable/VectorDrawable.java
libs/hwui/VectorDrawable.cpp
libs/hwui/VectorDrawable.h