summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorradhakrishna <radhakrishna@codeaurora.org>2014-10-31 15:48:14 +0530
committerSteve Kondik <shade@chemlab.org>2016-07-15 13:03:55 -0700
commit0c5f3af37ab6b38125984405ee022c0b1799e6a9 (patch)
treee46adc54c1e461b12c907947171843ff9b383431 /services
parentcf27ee8089344479bdfd53568bd105d8d50e9275 (diff)
downloadframeworks_native-0c5f3af37ab6b38125984405ee022c0b1799e6a9.zip
frameworks_native-0c5f3af37ab6b38125984405ee022c0b1799e6a9.tar.gz
frameworks_native-0c5f3af37ab6b38125984405ee022c0b1799e6a9.tar.bz2
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
Diffstat (limited to 'services')
-rw-r--r--services/surfaceflinger/Layer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index c346a2f..69e5c68 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -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);