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 committed by The Android Automerger
parent 1c09c92f2b
commit 4527b91960

View File

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