diff options
author | John Reck <jreck@google.com> | 2014-08-05 11:03:42 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-08-05 20:54:28 +0000 |
commit | c79eabcd3c6306bb2ec75f9584b79e661f265127 (patch) | |
tree | aa1959c28429f0493de2fa70c9e799dfb34866b7 /libs/hwui | |
parent | 43cc8bbbbd5e6418cdfa0fa4b26c9f5c3a28c029 (diff) | |
download | frameworks_base-c79eabcd3c6306bb2ec75f9584b79e661f265127.zip frameworks_base-c79eabcd3c6306bb2ec75f9584b79e661f265127.tar.gz frameworks_base-c79eabcd3c6306bb2ec75f9584b79e661f265127.tar.bz2 |
roundOut layer damage
Bug: 16734708
Change-Id: I8815b7cf5f74be6deda98aaaf7cde85509def373
Diffstat (limited to 'libs/hwui')
-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 |