OSDN Git Service

screenshot layers wouldn't work in some cases
authorMathias Agopian <mathias@google.com>
Wed, 21 Aug 2013 22:23:15 +0000 (15:23 -0700)
committerMathias Agopian <mathias@google.com>
Wed, 21 Aug 2013 22:25:50 +0000 (15:25 -0700)
commit4ceff3d5efd27c164788bb2b3f0fd17c691a0204
tree64abf1f1bd7b0795ca8bac27f22c60a018177dc1
parent56968ec0bfbe70b76193a2614a23beacfc9cf9dc
screenshot layers wouldn't work in some cases

specifically when the display size and the screenshot window
size didn't match, the buffer would be rejected.
We simply fix this by setting the scalling mode to
"SCALE_TO_WINDOW".

Bug: 9992306
Change-Id: Ib821767899af330bb70d3cbbfa7d41b02794a075
services/surfaceflinger/Layer.cpp
services/surfaceflinger/SurfaceFlinger.cpp