OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf27ee8
)
sf: Make sure HWC_BLENDING_NONE is set for opaque layer
author
radhakrishna
<radhakrishna@codeaurora.org>
Fri, 31 Oct 2014 10:18:14 +0000
(15:48 +0530)
committer
Steve Kondik
<shade@chemlab.org>
Fri, 15 Jul 2016 20:03:55 +0000
(13:03 -0700)
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
patch
|
blob
|
history
diff --git
a/services/surfaceflinger/Layer.cpp
b/services/surfaceflinger/Layer.cpp
index
c346a2f
..
69e5c68
100644
(file)
--- 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);