diff options
author | Chris Craik <ccraik@google.com> | 2014-01-26 11:30:58 -0800 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-01-29 13:55:39 -0800 |
commit | 6657a6c53930eb0ff8d03317eb10ea7ddb0c49b4 (patch) | |
tree | 37821f1cd1b594c83b6341ce65c1e1847ef1ecf6 /libs/hwui/DisplayList.cpp | |
parent | 967c7fb2af23cbdadba45f9113cbcaa9f55c3f24 (diff) |
Update reordering method names, and make 3d reordering API public
IsContainedVolume -> hasIsolatedZVolume conveys that this affects Z
ordering of views
ProjectToContainedBackground -> ProjectBackwards, since it ended up
using its own projection target, separate from the 3d volume bit
Change-Id: Ia2cde838cc4da134366fe6ff623290fbd65e50c3
Diffstat (limited to 'libs/hwui/DisplayList.cpp')
-rw-r--r-- | libs/hwui/DisplayList.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/hwui/DisplayList.cpp b/libs/hwui/DisplayList.cpp index ee24a177fef7..66a526a7a2e6 100644 --- a/libs/hwui/DisplayList.cpp +++ b/libs/hwui/DisplayList.cpp @@ -238,8 +238,8 @@ void DisplayList::init() { mRight = 0; mBottom = 0; mClipToBounds = true; - mIsContainedVolume = true; - mProjectToContainedVolume = false; + mIsolatedZVolume = true; + mProjectBackwards = false; mAlpha = 1; mHasOverlappingRendering = true; mTranslationX = 0; @@ -542,7 +542,7 @@ void DisplayList::computeOrderingImpl( applyViewPropertyTransforms(totalTransform); totalTransform.mapPoint3d(pivot); compositedChildrenOf3dRoot->add(ZDrawDisplayListOpPair(pivot.z, opState)); - } else if (mProjectToContainedVolume) { + } else if (mProjectBackwards) { // composited projectee, flag for out of order draw, save matrix, and store in proj surface opState->mSkipInOrderDraw = true; opState->mTransformFromCompositingAncestor.load(localTransformFromProjectionSurface); @@ -552,7 +552,7 @@ void DisplayList::computeOrderingImpl( opState->mSkipInOrderDraw = false; } - if (mIsContainedVolume) { + if (mIsolatedZVolume) { // create a new 3d space for descendents by collecting them compositedChildrenOf3dRoot = &m3dNodes; transformFrom3dRoot = &mat4::identity(); |