summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2018-02-06 16:21:50 -0500
committerLeon Scroggins III <scroggo@google.com>2018-02-09 16:31:25 -0500
commitd935157f48525d5fe7cc107c2d7aed99564b60bd (patch)
treea6f45b3bb20ee9eb38ffe3cbdd6ab0bbe36ee08d /tools/aapt2/java/JavaClassGenerator.cpp
parenta5ffafbfda3b5f6dd7f883045b6b0da0556b934c (diff)
Fix AnimatedImageDrawable drawn in software
Test: Manual, existing CTS, I4e884636801c0a2e920ca9d99f3c38fb034b3774 - Fix a bug where the animation never advanced. - Rename mFinished to mStarting. It was already being used to indicate that we were restarting anyway. Now only set it to true in calls to start(). - Prevent skipping ahead the same way we do in hardware. - Return kFinished when reaching the last frame of the animation. This also includes a fix for hardware drawing. The first time start() is called, there is no need to create a snapshot of the first frame. Just draw the first frame directly and kick off a decode of the second frame. Change-Id: I0a6fb909a361dd4c233cfa2d79bc2210d2dcddc8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions