summaryrefslogtreecommitdiff
path: root/libs/hwui/DamageAccumulator.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-06-17 16:18:09 -0700
committerJohn Reck <jreck@google.com>2014-06-18 07:19:50 -0700
commitce9f308063cc2bc7851f3f58c881da8a7271eecc (patch)
treef153d877f331bd2d20e43b87aeafb0e531bff941 /libs/hwui/DamageAccumulator.cpp
parent4193730ad8d3c17f807a6b2f7df16510491a3432 (diff)
Fix dirty calculation for layer updates
Bug: 15682142 Defer early return of alpha <= 0 for damage accumulation until popTransform() so that layer updates will be performed regardless of alpha Change-Id: Ifb94dd3ed2d96d610e6f2f3071933903016273a5
Diffstat (limited to 'libs/hwui/DamageAccumulator.cpp')
-rw-r--r--libs/hwui/DamageAccumulator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/DamageAccumulator.cpp b/libs/hwui/DamageAccumulator.cpp
index 77d16ab8d452..8b32c40600eb 100644
--- a/libs/hwui/DamageAccumulator.cpp
+++ b/libs/hwui/DamageAccumulator.cpp
@@ -170,6 +170,9 @@ void DamageAccumulator::applyRenderNodeTransform(DirtyStack* frame) {
}
const RenderProperties& props = frame->renderNode->properties();
+ if (props.getAlpha() <= 0) {
+ return;
+ }
// Perform clipping
if (props.getClipDamageToBounds() && !frame->pendingDirty.isEmpty()) {