OSDN Git Service

Fix creating of app theme snapshots
authorJorim Jaggi <jjaggi@google.com>
Tue, 23 May 2017 13:07:44 +0000 (15:07 +0200)
committerJorim Jaggi <jjaggi@google.com>
Tue, 23 May 2017 21:22:15 +0000 (23:22 +0200)
commit6aead1ccc7d1fe53d70f401618dae3c7f9895470
tree922fce4141719715bdf724dbfc53003cf1839751
parentff389264d9abd3278247a93d1d518882407f9cfc
Fix creating of app theme snapshots

Apparently locking a HW bitmap makes it super slow to draw.
Instead, draw it into a bitmap, copy it into a hw bitmap, and then
extract the GraphicBuffer.

Test: Open Camera, go home, reopen camera (and maybe go to recents)
Change-Id: Id2371dcdad95f07a680e6c56c0403b3ad815a3f3
Fixes: 38510859
services/core/java/com/android/server/wm/TaskSnapshotController.java