diff options
-rw-r--r-- | libs/hwui/RenderNode.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp index fa1b21d..237d500 100644 --- a/libs/hwui/RenderNode.cpp +++ b/libs/hwui/RenderNode.cpp @@ -184,7 +184,9 @@ void RenderNode::pushLayerUpdate(TreeInfo& info) { return; } - if (!dirty.isEmpty()) { + + if (dirty.intersect(0, 0, getWidth(), getHeight())) { + dirty.roundOut(); mLayer->updateDeferred(this, dirty.fLeft, dirty.fTop, dirty.fRight, dirty.fBottom); } // This is not inside the above if because we may have called |