diff options
author | 2016-04-14 16:08:25 -0700 | |
---|---|---|
committer | 2016-04-18 10:39:02 -0700 | |
commit | 9cd1bbe5c9e14472e631d8cc10005613925f34af (patch) | |
tree | acbe56e34c3090b23f53c4594a7efd7d70506d80 /libs/hwui/LayerBuilder.cpp | |
parent | e1b1ce77da273da6fc89d04a9c8ec09d0d8adca1 (diff) |
Improve multi-window render clipping logic
Fixes: 28125010
Restructures 'scene defer', to implement window backdrop overdraw
avoidance in new render pipeline, and disable clipping to content draw
bounds.
Also restructures FrameBuilder's constructors, to separate out into
multiple defer methods.
Change-Id: I53facb904c1a4a4acc493d8a489921a79a50494e
Diffstat (limited to 'libs/hwui/LayerBuilder.cpp')
-rw-r--r-- | libs/hwui/LayerBuilder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/LayerBuilder.cpp b/libs/hwui/LayerBuilder.cpp index eea11bff7d8a..30007772b1bc 100644 --- a/libs/hwui/LayerBuilder.cpp +++ b/libs/hwui/LayerBuilder.cpp @@ -244,7 +244,8 @@ void LayerBuilder::onDeferOp(LinearAllocator& allocator, const BakedOpState* bak if (CC_UNLIKELY(activeUnclippedSaveLayers.empty() && bakedState->computedState.opaqueOverClippedBounds - && bakedState->computedState.clippedBounds.contains(repaintRect))) { + && bakedState->computedState.clippedBounds.contains(repaintRect) + && !Properties::debugOverdraw)) { // discard all deferred drawing ops, since new one will occlude them clear(); } |