From c79eabcd3c6306bb2ec75f9584b79e661f265127 Mon Sep 17 00:00:00 2001 From: John Reck Date: Tue, 5 Aug 2014 11:03:42 -0700 Subject: roundOut layer damage Bug: 16734708 Change-Id: I8815b7cf5f74be6deda98aaaf7cde85509def373 --- libs/hwui/RenderNode.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/hwui') 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 -- cgit v1.1