OSDN Git Service

Fix VD animator not being properly resumed
authorDoris Liu <tianliu@google.com>
Wed, 20 Jul 2016 02:04:31 +0000 (19:04 -0700)
committerDoris Liu <tianliu@google.com>
Wed, 20 Jul 2016 20:43:00 +0000 (20:43 +0000)
commit3bb5dddc6fe4348be0d84b45456d7b3124be24c0
tree394745b64b12603a35e3df17471ad5f36afdd086
parentae0aed951ba13474e5839ac5e43febbc0a004160
Fix VD animator not being properly resumed

VectorDrawable animators remove themselves from RenderThread's
animator list when they detect their target not being in the
DisplayList. When the target got added back into DisplayList
without an invalidation(), the animators were not added to
the running animator list, therefore didn't continue to run.
This CL detects for the case where a VD is back in the DisplayList
and reactivate its animator.

BUG: 30101451
Change-Id: Ib5eb54af954a58a2fa617643bfcf5af40ce708a5
core/jni/android_view_ThreadedRenderer.cpp