only disable hwc when alpha < 1.0
Bug: 8149181 Change-Id: Ib3c7a44f04871e020adceeae16d002141ac758d4
This commit is contained in:
parent
9f8386e111
commit
5fe58b8ba6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user