From 5c9d717d3e7064db76d2a01223af51379dadf2c3 Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 22 Oct 2014 11:32:27 -0700 Subject: Fix damage bug Bug: 18087374 Change-Id: Ie183392122c73f93010fb3f4be071c924b352966 --- libs/hwui/RenderNode.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libs/hwui/RenderNode.cpp') diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp index 70ff6e5f575f..40cd13ef4f02 100644 --- a/libs/hwui/RenderNode.cpp +++ b/libs/hwui/RenderNode.cpp @@ -296,6 +296,9 @@ void RenderNode::pushStagingDisplayListChanges(TreeInfo& info) { mStagingDisplayListData->children()[i]->mRenderNode->incParentRefCount(); } } + // Damage with the old display list first then the new one to catch any + // changes in isRenderable or, in the future, bounds + damageSelf(info); deleteDisplayListData(); mDisplayListData = mStagingDisplayListData; mStagingDisplayListData = NULL; -- cgit v1.2.3-59-g8ed1b