OSDN Git Service

DO NOT MERGE: Do not set the background to null for video.
authorRomain Guy <romainguy@google.com>
Thu, 4 Oct 2012 01:47:21 +0000 (18:47 -0700)
committerTeng-Hui Zhu <ztenghui@google.com>
Tue, 30 Oct 2012 21:18:16 +0000 (14:18 -0700)
commit6af05206f0b71f7a09ed7d9f8763535723796d75
treeb7620b270ffb0ea00235724e1d0bebcb79d5fe91
parent883295bc3643c5d3e0520fa317bec9919cc4ff7c
DO NOT MERGE: Do not set the background to null for video.

Bug #7275145
Bug 7405595

Removing the window background when it's not visible is a good idea
to save on performance. Removing *all* the backgrounds is just a silly
idea that leads to weird looking results that drive graphics engineers
mad for a day until they figure out that everything is working properly
and that the app is simply asking the system to draw whatever garbage
is left in the GPU's graphics buffers.

Cherry pick the Romain's change from jb-mr1-dev:
https://googleplex-android-review.googlesource.com/#/c/234571/

Change-Id: Ief88821319989add5fda57ae7b69cdb01f6ccdf4
src/com/android/gallery3d/app/MoviePlayer.java