OSDN Git Service

set correct crop rectangle in LayerBase::setCrop
authorMathias Agopian <mathias@google.com>
Wed, 27 Feb 2013 00:37:53 +0000 (16:37 -0800)
committerMathias Agopian <mathias@google.com>
Fri, 1 Mar 2013 02:43:04 +0000 (18:43 -0800)
commit5219a06d61ac4517506500363c5e8a5972dd7ac9
tree6c71799f5875b715fd182c5183aa10781de567df
parenteb0d12963d271052c24abb025d698504df9e7573
set correct crop rectangle in LayerBase::setCrop

The crop always had left=top=0, because the crop position
and the layer's transform were merged together in
computeBounds() (which really used to compute the
bounds in screen space, which we usually call the
"frame" elsewhere in the code)

Note: in practice this crop value is not used by
hwc, because it's overridden in Layer::setGeometry(), which
is why this bug was never apparent.

Change-Id: I1ec6400a8fc8314408e4252708f43ea98c2fe64e
services/surfaceflinger/LayerBase.cpp
services/surfaceflinger/SurfaceFlinger.cpp