summaryrefslogtreecommitdiff
path: root/libs/hwui/Layer.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-06-20 15:03:43 -0700
committerChris Craik <ccraik@google.com>2014-06-20 16:18:58 -0700
commit80d4902196899d1325cd9f52c06ae0174cf9bd4c (patch)
tree659794797f8161ca9580fc17cc5c44bbbe3c304e /libs/hwui/Layer.cpp
parent6b2df21ecacfa6826a85cabdf8d6fe0e81fe11d9 (diff)
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
Diffstat (limited to 'libs/hwui/Layer.cpp')
-rw-r--r--libs/hwui/Layer.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}