OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53e5aa9
)
surfaceflinger: fix initial crop computation
author
Chia-I Wu
<olv@google.com>
Thu, 20 Jul 2017 21:24:37 +0000
(14:24 -0700)
committer
Chia-I Wu
<olv@google.com>
Thu, 20 Jul 2017 21:30:39 +0000
(14:30 -0700)
This function computes the crop of the layer, that is, the region of
the layer to be drawn. We must consider the size of the layer when
applying s.active.crop.
Bug:
63786936
Test: manual
Change-Id: I8000413beba54a054db8d7ad28e868d23b0167ab
services/surfaceflinger/Layer.cpp
patch
|
blob
|
history
diff --git
a/services/surfaceflinger/Layer.cpp
b/services/surfaceflinger/Layer.cpp
index
0597556
..
1b864fd
100755
(executable)
--- a/
services/surfaceflinger/Layer.cpp
+++ b/
services/surfaceflinger/Layer.cpp
@@
-474,7
+474,7
@@
Rect Layer::computeInitialCrop(const sp<const DisplayDevice>& hw) const {
Rect activeCrop(s.active.w, s.active.h);
if (!s.crop.isEmpty()) {
- activeCrop
= s.crop
;
+ activeCrop
.intersect(s.crop, &activeCrop)
;
}
Transform t = getTransform();