From 80d4902196899d1325cd9f52c06ae0174cf9bd4c Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Fri, 20 Jun 2014 15:03:43 -0700 Subject: Wrap ViewGroup content in save/restore to protect composited children bug:15570351 Pos Z composited children are drawn before the primary restore for a RenderNode. This means that without an additional save/restore (which wraps the content) they aren't protected from transformations/clips that happen within the ViewGroup's DisplayList. Also changes RenderNode to use OpenGLRenderer tag for displaylist dumping consistency, and simplifies the entry points into RenderNode drawing, since the distinction between tree root vs tree internal is no longer important. Change-Id: I2621eba0592c74d71f85a91a4ab3d0da2d7468d3 --- libs/hwui/Layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/hwui/Layer.cpp') diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp index 6a2ef2a8f4d1..e59e714ca051 100644 --- a/libs/hwui/Layer.cpp +++ b/libs/hwui/Layer.cpp @@ -219,7 +219,7 @@ void Layer::defer() { dirtyRect.right, dirtyRect.bottom, !isBlend()); displayList->computeOrdering(); - displayList->deferNodeTree(deferredState); + displayList->defer(deferredState, 0); deferredUpdateScheduled = false; } -- cgit v1.2.3-59-g8ed1b