Bug 980568: Set planeAlpha and blending for opaque layer in GonkDisplayJB::Post() on KK. r=sushil

This commit is contained in:
Ben Kelly 2014-07-01 13:21:50 +08:00
parent 2fe853df7e
commit e832dad127

View File

@ -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);