OSDN Git Service

sf: Make sure HWC_BLENDING_NONE is set for opaque layer
authorradhakrishna <radhakrishna@codeaurora.org>
Wed, 29 Jun 2016 07:31:16 +0000 (13:01 +0530)
committerLinux Build Service Account <lnxbuild@localhost>
Wed, 24 Aug 2016 14:10:21 +0000 (08:10 -0600)
Before configuring the layers to HWC, make sure
HWC_BLENDING_NONE is set if the layer is opaque

Change-Id: Ie84aa9d93e98a244692a0cffc2de653a9079f8b4
Crs-fixed: 957373

services/surfaceflinger/Layer.cpp

index 4470316..fe8bbc9 100644 (file)
@@ -536,7 +536,7 @@ void Layer::setGeometry(
                 to_string(error).c_str(), static_cast<int32_t>(error));
     }
 #else
-    if (!isOpaque(s) || s.alpha != 0xFF) {
+    if (!isOpaque(s)) {
         layer.setBlending(mPremultipliedAlpha ?
                 HWC_BLENDING_PREMULT :
                 HWC_BLENDING_COVERAGE);