only disable hwc when alpha < 1.0

Bug: 8149181
Change-Id: Ib3c7a44f04871e020adceeae16d002141ac758d4
This commit is contained in:
Mathias Agopian 2013-02-07 16:22:50 -08:00
parent 9f8386e111
commit 5fe58b8ba6

View File

@ -808,7 +808,9 @@ public:
if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_2)) {
getLayer()->planeAlpha = alpha;
} else {
getLayer()->flags |= HWC_SKIP_LAYER;
if (alpha < 0xFF) {
getLayer()->flags |= HWC_SKIP_LAYER;
}
}
}
virtual void setDefaultState() {