OSDN Git Service

sf: Clear display configs when hot pluggable display is disconnected
authorNaseer Ahmed <naseer@codeaurora.org>
Wed, 20 Aug 2014 20:31:58 +0000 (16:31 -0400)
committerJesse Hall <jessehall@google.com>
Wed, 20 Aug 2014 22:10:14 +0000 (15:10 -0700)
commit949ea0868de1df7e2f28a32d777cc41f901d6770
tree7c7b3a346f8d119813d40c3c10cf6db4e154d4e0
parentd4548dd0272f5a4edee1d7ff070458728848b35c
sf: Clear display configs when hot pluggable display is disconnected

Display configs for external displays are stored in the framework
everytime we receive a hot plug to connect. However, since the
configs are not cleared on disconnect, framework will just assume
that the configs are valid. This does not work for use cases when
you connect/disconnect external displays with different resolutions.

e.g. 1080p to 4K and vice-versa

With this change we clear the display configs and repopulate when
we receive a hot plug to connect.

Change-Id: I2eeab186a8d8668a53390a2413b2ce5e044a1845
Acked-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
services/surfaceflinger/DisplayHardware/HWComposer.cpp