mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 980568: Set planeAlpha and blending for opaque layer in GonkDisplayJB::Post() on KK. r=sushil
This commit is contained in:
parent
2fe853df7e
commit
e832dad127
@ -248,7 +248,7 @@ GonkDisplayJB::Post(buffer_handle_t buf, int fence)
|
||||
mList->hwLayers[1].flags = 0;
|
||||
mList->hwLayers[1].handle = buf;
|
||||
mList->hwLayers[1].transform = 0;
|
||||
mList->hwLayers[1].blending = HWC_BLENDING_PREMULT;
|
||||
mList->hwLayers[1].blending = HWC_BLENDING_NONE;
|
||||
#if ANDROID_VERSION >= 19
|
||||
if (mHwc->common.version >= HWC_DEVICE_API_VERSION_1_3) {
|
||||
mList->hwLayers[1].sourceCropf.left = 0;
|
||||
@ -266,7 +266,7 @@ GonkDisplayJB::Post(buffer_handle_t buf, int fence)
|
||||
mList->hwLayers[1].visibleRegionScreen.rects = &mList->hwLayers[1].displayFrame;
|
||||
mList->hwLayers[1].acquireFenceFd = fence;
|
||||
mList->hwLayers[1].releaseFenceFd = -1;
|
||||
#if ANDROID_VERSION == 18
|
||||
#if ANDROID_VERSION >= 18
|
||||
mList->hwLayers[1].planeAlpha = 0xFF;
|
||||
#endif
|
||||
mHwc->prepare(mHwc, HWC_NUM_DISPLAY_TYPES, displays);
|
||||
|
Loading…
Reference in New Issue
Block a user