OSDN Git Service

SF: Change rounding behavior in setGeometry
authorPablo Ceballos <pceballos@google.com>
Wed, 3 Aug 2016 17:20:45 +0000 (10:20 -0700)
committerPablo Ceballos <pceballos@google.com>
Wed, 3 Aug 2016 21:19:56 +0000 (14:19 -0700)
commit51450039e2fd266b31f33dfd1b4353bc1b0b145a
treedee3baebed9e340a340d37f92c7c931ac139e402
parentacff43dca6a3c8a29f449706967d4de21c373d26
SF: Change rounding behavior in setGeometry

- Add an option for a transform to round outwards instead of to the
  nearest pixel.
- Use this new rounding behavior when converting the crop rectangle
  from display-space to layer-space. Otherwise a pixel that will
  partially be on the screen might be marked as transparent.

Bug 30510632

Change-Id: I1aece177cc29c54ee0d4a2c919e47442eb455f30
services/surfaceflinger/Layer.cpp
services/surfaceflinger/Transform.cpp
services/surfaceflinger/Transform.h