summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/LayerBase.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2013-01-29 18:56:42 -0800
committer Mathias Agopian <mathias@google.com> 2013-02-05 14:46:32 -0800
commit9f8386e1118c10dd4927f62637ec7162569bdbdc (patch)
tree1982266045b091a9b3d1a399545246397c4ee307 /services/surfaceflinger/LayerBase.cpp
parent6cf6ba69f054aa0c0c6c79225cdfd719cfc8855c (diff)
Add support for plane-alpha in HWC
Change-Id: I218e7dd5f23de535aabce61e993002ab6cb46cdd
Diffstat (limited to 'services/surfaceflinger/LayerBase.cpp')
-rw-r--r--services/surfaceflinger/LayerBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/LayerBase.cpp b/services/surfaceflinger/LayerBase.cpp
index f129607398..54c51bb5d4 100644
--- a/services/surfaceflinger/LayerBase.cpp
+++ b/services/surfaceflinger/LayerBase.cpp
@@ -283,7 +283,7 @@ void LayerBase::setGeometry(
layer.setTransform(finalTransform);
}
- if (!isOpaque()) {
+ if (!isOpaque() || s.alpha != 0xFF) {
layer.setBlending(mPremultipliedAlpha ?
HWC_BLENDING_PREMULT :
HWC_BLENDING_COVERAGE);