summaryrefslogtreecommitdiff
path: root/libs/hwui/Layer.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2013-03-28 13:06:58 -0700
committer Romain Guy <romainguy@google.com> 2013-03-28 13:06:58 -0700
commit696dcf84a382fcc5ef7041e0bbf3af20b0ecb99f (patch)
tree82deda082ad2fd191e8e9991cecba1e3365004b6 /libs/hwui/Layer.cpp
parentce4a7dfc516ee61301e9af91fad17ca1320efaab (diff)
Update layers to clear them
Bug #8489505 A layer should be updated even with an empty deferred display list. It is possible for a layer to request an update just to execute a clear which will be handled by LayerRenderer::prepareDirty(). Change-Id: Iffb98bd71d6caa8d4a701df98197676f9423c0c2
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 7f4977adbb80..0267a66a39a3 100644
--- a/libs/hwui/Layer.cpp
+++ b/libs/hwui/Layer.cpp
@@ -168,7 +168,7 @@ void Layer::defer() {
}
void Layer::flush() {
- if (deferredList && !deferredList->isEmpty()) {
+ if (deferredList) {
renderer->setViewport(layer.getWidth(), layer.getHeight());
renderer->prepareDirty(dirtyRect.left, dirtyRect.top, dirtyRect.right, dirtyRect.bottom,
!isBlend());