diff options
author | Chris Craik <ccraik@google.com> | 2014-08-21 17:41:57 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-08-25 15:35:40 -0700 |
commit | 8afd0f245cc0c4a0366f39f41b5f78e47ee83be3 (patch) | |
tree | 220f6cac192fe822650d4676ef3996da5fb02ad9 /core/java/android/view/ViewGroup.java | |
parent | cc3e5d5cd197ad45e051e31fd85af28588af4cf7 (diff) | |
download | frameworks_base-8afd0f245cc0c4a0366f39f41b5f78e47ee83be3.zip frameworks_base-8afd0f245cc0c4a0366f39f41b5f78e47ee83be3.tar.gz frameworks_base-8afd0f245cc0c4a0366f39f41b5f78e47ee83be3.tar.bz2 |
Create z reordering boundaries around dispatchDraw
bug:16012254
This means rendernodes with a Z will no longer be drawn at the end of
their parent's DisplayList, but at the end of the associated reorder
region (DisplayListData::Chunk).
Change-Id: Ia033fee9d9a4db567b2a8d5e90fc57a4d0a64544
Diffstat (limited to 'core/java/android/view/ViewGroup.java')
-rw-r--r-- | core/java/android/view/ViewGroup.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index 19dd583..854e6be 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -3072,7 +3072,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager boolean more = false; final long drawingTime = getDrawingTime(); - + if (usingRenderNodeProperties) canvas.insertReorderBarrier(); // Only use the preordered list if not HW accelerated, since the HW pipeline will do the // draw reordering internally final ArrayList<View> preorderedList = usingRenderNodeProperties @@ -3099,6 +3099,7 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager more |= drawChild(canvas, child, drawingTime); } } + if (usingRenderNodeProperties) canvas.insertInorderBarrier(); if (debugDraw()) { onDebugDraw(canvas); |