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, 29 Sep 2016 22:32:41 +0000 (15:32 -0700)
commit5450fe526801ff9f5b05487995745a146dc5150b
tree83ddcb5b95b7004cd6d8e8b91da7b480c7b0d3f7
parent6be002845f9dd310679f8cb11fa9d9217f650e3b
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.

Test: Cherry-pick from internal branch
Bug: 29945684
Change-Id: Ib1b5d81e42a63d0e65b189f7c6c62e661e0ab6ae
services/surfaceflinger/DisplayHardware/HWC2.cpp
services/surfaceflinger/DisplayHardware/HWC2.h