commit | 9f8386e1118c10dd4927f62637ec7162569bdbdc | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Tue Jan 29 18:56:42 2013 -0800 |
committer | Mathias Agopian <mathias@google.com> | Tue Feb 05 14:46:32 2013 -0800 |
tree | 1982266045b091a9b3d1a399545246397c4ee307 | |
parent | 6cf6ba69f054aa0c0c6c79225cdfd719cfc8855c [diff] [blame] |
Add support for plane-alpha in HWC Change-Id: I218e7dd5f23de535aabce61e993002ab6cb46cdd
diff --git a/services/surfaceflinger/LayerBase.cpp b/services/surfaceflinger/LayerBase.cpp index f129607..54c51bb 100644 --- a/services/surfaceflinger/LayerBase.cpp +++ b/services/surfaceflinger/LayerBase.cpp
@@ -283,7 +283,7 @@ layer.setTransform(finalTransform); } - if (!isOpaque()) { + if (!isOpaque() || s.alpha != 0xFF) { layer.setBlending(mPremultipliedAlpha ? HWC_BLENDING_PREMULT : HWC_BLENDING_COVERAGE);