Merge "Update the layer's alpha value upon composition of the layer"

This commit is contained in:
Chris Craik
2013-11-06 01:05:54 +00:00
committed by Gerrit Code Review

View File

@@ -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();