sf: Make sure HWC_BLENDING_NONE is set for opaque layer

Before configuring the layers to HWC, make sure
HWC_BLENDING_NONE is set if the layer is opaque

Change-Id: Ie84aa9d93e98a244692a0cffc2de653a9079f8b4
Crs-fixed: 957373
This commit is contained in:
radhakrishna 2014-10-31 15:48:14 +05:30 committed by Steve Kondik
parent cf27ee8089
commit 0c5f3af37a
1 changed files with 4 additions and 0 deletions

View File

@ -467,7 +467,11 @@ void Layer::setGeometry(
// this gives us only the "orientation" component of the transform
const State& s(getDrawingState());
#ifdef QTI_BSP
if (!isOpaque(s)) {
#else
if (!isOpaque(s) || s.alpha != 0xFF) {
#endif
layer.setBlending(mPremultipliedAlpha ?
HWC_BLENDING_PREMULT :
HWC_BLENDING_COVERAGE);