hwc: Hide layer1 if the FB_TAGET layer is not needed
authorBenoit Goby <benoit@android.com>
Tue, 30 Oct 2012 23:05:34 +0000 (16:05 -0700)
committerBenoit Goby <benoit@android.com>
Tue, 6 Nov 2012 20:33:33 +0000 (12:33 -0800)
commit18893a3d6f100040df0d2ca8b3570d729dc38475
tree6d4266892269677e3e0328f4d2e2a3145cf8bb2b
parentf97103b5f0e5a65a81f60bbe39cd563b655ce020
hwc: Hide layer1 if the FB_TAGET layer is not needed

Leave layer1 enabled but hide it when not needed because if both layers
get disabled, the hdmi mixer and phy will get powered off.

Bug: 7363167
Change-Id: I4a969be7fb7877b05e866488d71f478c8f1c0fb4
libhwc/hwc.cpp