OSDN Git Service

More efficient drawing during animation
authorDoris Liu <tianliu@google.com>
Sat, 22 Mar 2014 01:33:57 +0000 (18:33 -0700)
committerDoris Liu <tianliu@google.com>
Mon, 24 Mar 2014 18:20:41 +0000 (11:20 -0700)
commit4df915872c25fe61640a94c7a2c5f27eee1a1048
tree3adc520e7949b4763170b86480fe0bf7a8f6ec5e
parent197e238d3ccd2c758238f1bce27687644c4d0521
More efficient drawing during animation

- Improved mode options animation and video capture animation

- Changed the drawPath() calls to drawCircle() as drawing oval is
generally optimized and therefore more efficient. The efficiency
gained depends on the hardware/software specific implementation,
depending on where it's rendered. But drawCircle() should always
no more costly than drawPath().

- Move the video capture button animation to after MediaRecorder
initialization/release to avoid animation being blocked by time
consuming operations.

Bug: 13589320
Change-Id: I9c01374e46d439e33a066cfba07d95749a3caebf
src/com/android/camera/VideoModule.java
src/com/android/camera/ui/BottomBar.java
src/com/android/camera/widget/ModeOptions.java