summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Coucheron <arco68@gmail.com>2016-07-20 00:46:07 +0200
committerArne Coucheron <arco68@gmail.com>2016-07-20 00:46:07 +0200
commita5761b164a27d2894f8abc0652dd8cda7326f564 (patch)
treee7a0a4644040872ee6b1b7d1561a9c4fc239ef11
parent839f0dd9641f23d6c0a1b1aff48e533621ded51d (diff)
downloadframeworks_native-a5761b164a27d2894f8abc0652dd8cda7326f564.zip
frameworks_native-a5761b164a27d2894f8abc0652dd8cda7326f564.tar.gz
frameworks_native-a5761b164a27d2894f8abc0652dd8cda7326f564.tar.bz2
sf: Fix blending mode for legacy BSP
* After 0c5f3af, glitches when blending is observed on A family devices. Modify ifdef to not include QCOM_BSP_LEGACY. Change-Id: Ibb53df5709abbb0e7132065aec23a14f7accf4b3
-rw-r--r--services/surfaceflinger/Layer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 69e5c68..14bd312 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -467,7 +467,7 @@ void Layer::setGeometry(
// this gives us only the "orientation" component of the transform
const State& s(getDrawingState());
-#ifdef QTI_BSP
+#if defined(QCOM_BSP) && !defined(QCOM_BSP_LEGACY)
if (!isOpaque(s)) {
#else
if (!isOpaque(s) || s.alpha != 0xFF) {