History log of /packages/apps/Nfc/src/com/android/nfc/FireflyRenderer.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
525c260303268a83da4c3413b953d13c9084e834 14-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot 1a6bcf3cca90fedfbad33c1cdd6d05af5774fc01

Change-Id: I3ccb25bf7cde2c22f52260cae0e9957517e6bb5f
/packages/apps/Nfc/src/com/android/nfc/FireflyRenderer.java
f570dca6b0fa0ce883f5c950815e43acae4f51b2 28-Mar-2012 Martijn Coenen <maco@google.com> Dejank Android Beam animation.

After profiling, it turns out the Beam animation was mostly janky
because of the initial buffer allocations that take place in the
graphics driver. Modified both the animation and firefly
renderers to swap the buffers three times before drawing anything,
thereby making sure the buffers are allocated.

Do not scale the screenshot while rendering fireflies,
as that can cause jank as well.

Also modified the FireflyRenderer to keep most of its state alive
between subsequent Beams, causing it to come up faster.

Cleaned up some old code and added documentation.

Change-Id: Ica231861dd7ede178ad2ec1ab09aa00d1c876624
/packages/apps/Nfc/src/com/android/nfc/FireflyRenderer.java