OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add missing roundOut for layer damage
[android-x86/frameworks-base.git]
/
libs
/
hwui
/
LayerUpdateQueue.cpp
diff --git
a/libs/hwui/LayerUpdateQueue.cpp
b/libs/hwui/LayerUpdateQueue.cpp
index
db5f676
..
95f5cfb
100644
(file)
--- 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) {