diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp index fa1b21d01adbc..237d5006e8746 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