OSDN Git Service

HWC2: Fix virtual displays
authorDan Stoza <stoza@google.com>
Wed, 13 Jul 2016 22:48:58 +0000 (15:48 -0700)
committerDan Stoza <stoza@google.com>
Thu, 14 Jul 2016 14:54:12 +0000 (07:54 -0700)
commit38628986f2bb3b392dd4b519aacb9354320e409f
tree8001e765a7338f982be849d805b56d567024e88b
parentf9de6e0d7e7a12f4d70bb4828863efb035fc133b
HWC2: Fix virtual displays

Close the output buffer release fence per the contract in
hwcomposer2.h.

Also changes the HWC2 device to hold a weak pointer to the display,
which allows it to properly remove it when it gets torn down.

Bug: 29945684
Change-Id: Ib1b5d81e42a63d0e65b189f7c6c62e661e0ab6ae
services/surfaceflinger/DisplayHardware/HWC2.cpp
services/surfaceflinger/DisplayHardware/HWC2.h