summaryrefslogtreecommitdiff
path: root/libs/hwui/OpenGLRenderer.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@android.com> 2013-11-05 17:08:00 -0800
committer Android Git Automerger <android-git-automerger@android.com> 2013-11-05 17:08:00 -0800
commit6ed16a89d836a33b9242f91b05e8ecb149abf909 (patch)
tree759d85edf89c9a7d58f3c5b2db3caa4e5fedfe35 /libs/hwui/OpenGLRenderer.cpp
parentc0b2d860effef8b2c80594855e8634fe8ed1ce74 (diff)
parent0b807d2e74f786af0d44162d92cc0bf85883349a (diff)
am 0b807d2e: Merge "Update the layer\'s alpha value upon composition of the layer"
* commit '0b807d2e74f786af0d44162d92cc0bf85883349a': Update the layer's alpha value upon composition of the layer
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-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 7735819a20a0..722cc63843f4 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -1000,7 +1000,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();