OSDN Git Service

More fixes for VectorDrawable memory management
authorDiego Perez <diegoperez@google.com>
Fri, 24 Jun 2016 15:21:46 +0000 (16:21 +0100)
committerDiego Perez <diegoperez@google.com>
Tue, 19 Jul 2016 15:42:40 +0000 (15:42 +0000)
commit79b070d36b67030ea0b65f3379c047955250fb27
treef07c29c1b068613d74c60896e11bbf3b13310947
parentc606e64ebc5d3eb5fc76bad55e76ae1190a23f6d
More fixes for VectorDrawable memory management

Make the release of all the VGroups deterministic once the root group
has been freed by a finalize call.
Also, free and clear the children array.

Disable assert in DelegateManager that would slow down layoutlib when
there are many delegates and assertions are enabled (dev and canary
builds).

Bug: http://b.android.com/214026
Change-Id: Ic7775d360ae4997f54f30fb75851879acaf8d824
(cherry picked from commit f6d8bba638baedc39d1d8f7bd3c69f4956819c71)
tools/layoutlib/bridge/src/android/graphics/drawable/VectorDrawable_Delegate.java
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/DelegateManager.java