OSDN Git Service

Create builtin display tokens on demand
authorJesse Hall <jessehall@google.com>
Thu, 8 Nov 2012 23:41:56 +0000 (15:41 -0800)
committerJesse Hall <jessehall@google.com>
Fri, 9 Nov 2012 19:48:25 +0000 (11:48 -0800)
commit692c723e84e6f2747447d871d468ff50e5c73f19
treee2496cdf584ae68b79d12e1b27bc0b31a7990502
parent1493a3974a725d6873f317b774be333ca035a64c
Create builtin display tokens on demand

For hotpluggable builtin displays (currently just HDMI), create the
display device IBinder token when the display is connected and destroy
it when the display is disconnected. Previously we created the tokens
at startup and never changed them. This made it so that when comparing
current and drawing state, we couldn't tell whether a display had been
disconnected and reconnected.

Bug: 7491120
Change-Id: I23b77037dc0f548d549abf580339edd0e3c626e9
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h