diff options
author | 2024-01-23 14:53:40 +0000 | |
---|---|---|
committer | 2024-01-23 14:53:40 +0000 | |
commit | 71652683190c9c8857dbce493c960cd83c2e83c5 (patch) | |
tree | cf3a95989e0880f6394aa898c8231cc537a658d7 /libs/hwui/RenderNode.cpp | |
parent | c40bde3f8e0b3fd98f3ae0579770b9947322c229 (diff) | |
parent | 13d879bc05b98cfac2cdd13d43bdd071ac37fd01 (diff) |
Merge "Fix the problem that mDamageGenerationId is a random value" into main
Diffstat (limited to 'libs/hwui/RenderNode.cpp')
-rw-r--r-- | libs/hwui/RenderNode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp index 1dd22cf43c5c..a733d1772757 100644 --- a/libs/hwui/RenderNode.cpp +++ b/libs/hwui/RenderNode.cpp @@ -218,7 +218,7 @@ void RenderNode::pushLayerUpdate(TreeInfo& info) { * stencil buffer may be needed. Views that use a functor to draw will be forced onto a layer. */ void RenderNode::prepareTreeImpl(TreeObserver& observer, TreeInfo& info, bool functorsNeedLayer) { - if (mDamageGenerationId == info.damageGenerationId) { + if (mDamageGenerationId == info.damageGenerationId && mDamageGenerationId != 0) { // We hit the same node a second time in the same tree. We don't know the minimal // damage rect anymore, so just push the biggest we can onto our parent's transform // We push directly onto parent in case we are clipped to bounds but have moved position. |