only disable hwc when alpha < 1.0
Bug: 8149181 Change-Id: Ib3c7a44f04871e020adceeae16d002141ac758d4
This commit is contained in:
parent
9f8386e111
commit
5fe58b8ba6
@ -808,7 +808,9 @@ public:
|
|||||||
if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_2)) {
|
if (hwcHasApiVersion(mHwc, HWC_DEVICE_API_VERSION_1_2)) {
|
||||||
getLayer()->planeAlpha = alpha;
|
getLayer()->planeAlpha = alpha;
|
||||||
} else {
|
} else {
|
||||||
getLayer()->flags |= HWC_SKIP_LAYER;
|
if (alpha < 0xFF) {
|
||||||
|
getLayer()->flags |= HWC_SKIP_LAYER;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
virtual void setDefaultState() {
|
virtual void setDefaultState() {
|
||||||
|
Loading…
Reference in New Issue
Block a user