summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@android.com>2013-11-06 16:15:38 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-06 16:15:38 -0800
commit16e7d730c5fc974d5652a4a7a6e19a163225315a (patch)
treea05bb829a0951465d474420ba16695727a64a3a9 /libs
parentde51bbdb8642e9e099375b89b07edf3d27123141 (diff)
parent2f70da2bc5ce9f4766395cc9d848f0afe8f6a2a9 (diff)
downloadframeworks_base-16e7d730c5fc974d5652a4a7a6e19a163225315a.zip
frameworks_base-16e7d730c5fc974d5652a4a7a6e19a163225315a.tar.gz
frameworks_base-16e7d730c5fc974d5652a4a7a6e19a163225315a.tar.bz2
am 2f70da2b: am 6ed16a89: am 0b807d2e: Merge "Update the layer\'s alpha value upon composition of the layer"
* commit '2f70da2bc5ce9f4766395cc9d848f0afe8f6a2a9': Update the layer's alpha value upon composition of the layer
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/OpenGLRenderer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 29030d2..aabfbd0 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -1074,7 +1074,13 @@ void OpenGLRenderer::composeLayer(sp<Snapshot> current, sp<Snapshot> previous) {
}
} else if (!rect.isEmpty()) {
dirtyLayer(rect.left, rect.top, rect.right, rect.bottom);
+
+ save(0);
+ // the layer contains screen buffer content that shouldn't be alpha modulated
+ // (and any necessary alpha modulation was handled drawing into the layer)
+ mSnapshot->alpha = 1.0f;
composeLayerRect(layer, rect, true);
+ restore();
}
dirtyClip();