summaryrefslogtreecommitdiff
path: root/libs/hwui/LayerUpdateQueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/LayerUpdateQueue.cpp')
-rw-r--r--libs/hwui/LayerUpdateQueue.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/LayerUpdateQueue.cpp b/libs/hwui/LayerUpdateQueue.cpp
index db5f676d09dc..95f5cfb33474 100644
--- a/libs/hwui/LayerUpdateQueue.cpp
+++ b/libs/hwui/LayerUpdateQueue.cpp
@@ -26,6 +26,7 @@ void LayerUpdateQueue::clear() {
}
void LayerUpdateQueue::enqueueLayerWithDamage(RenderNode* renderNode, Rect damage) {
+ damage.roundOut();
damage.doIntersect(0, 0, renderNode->getWidth(), renderNode->getHeight());
if (!damage.isEmpty()) {
for (Entry& entry : mEntries) {