summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorChris Craik <ccraik@android.com>2013-11-06 16:09:54 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-06 16:09:54 -0800
commit2f70da2bc5ce9f4766395cc9d848f0afe8f6a2a9 (patch)
tree59badb2ac86a840e1b4a1d4fc0cbec2a93fb3bde /libs
parenta719f797be204464b6650e22a245902e44e05277 (diff)
parent6ed16a89d836a33b9242f91b05e8ecb149abf909 (diff)
downloadframeworks_base-2f70da2bc5ce9f4766395cc9d848f0afe8f6a2a9.zip
frameworks_base-2f70da2bc5ce9f4766395cc9d848f0afe8f6a2a9.tar.gz
frameworks_base-2f70da2bc5ce9f4766395cc9d848f0afe8f6a2a9.tar.bz2
am 6ed16a89: am 0b807d2e: Merge "Update the layer\'s alpha value upon composition of the layer"
* commit '6ed16a89d836a33b9242f91b05e8ecb149abf909': 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 35fc804..4d76bed 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -1076,7 +1076,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();