OSDN Git Service

Clean up ImageReader when VrMode is disabled.
authorSantos Cordon <santoscordon@google.com>
Wed, 12 Apr 2017 22:20:33 +0000 (15:20 -0700)
committerAlex Sakhartchouk <alexst@google.com>
Mon, 17 Apr 2017 18:11:02 +0000 (18:11 +0000)
commit728d81f67326ad0c2f468d1da560936b5ffb90a0
treefb86154046835ee94181934beeccc8c2dbd0484b
parentfeada91060fe356a86a9a4e16e3c8c8f60c69389
Clean up ImageReader when VrMode is disabled.

Adjusts some of the startImageReader code as well.

Bug: 34281731
Test: Start a VR App and ensure the virtual display is functional.
Start it a second time and ensure the virtual display is functional.
Previously, any session after the first did not have a functional
virtual display.

Change-Id: Ifbf9fb9466f550ae3e9b30a1d7cf4d2f0a32578b
services/core/java/com/android/server/vr/CompatibilityDisplay.java