OSDN Git Service

apply the projection's viewport to the visibleregion passed to hwc
authorMathias Agopian <mathias@google.com>
Wed, 27 Feb 2013 00:54:05 +0000 (16:54 -0800)
committerMathias Agopian <mathias@google.com>
Fri, 1 Mar 2013 02:43:04 +0000 (18:43 -0800)
commitf5f714aa188884098aaecbe39d0bc61b40311c0d
tree65cfd7c5d63d4bdf9bf0c8d83e419324dd2770b2
parent5219a06d61ac4517506500363c5e8a5972dd7ac9
apply the projection's viewport to the visibleregion passed to hwc

each desplay's projection's viewport essentially clips each layer,
so this should be reflected in the visibleregion passed to
h/w composer.

DisplayDevice getViewport and getFrame are now guaranteed to return
valid Rects.

Change-Id: I4c25f34fb26af10179eb26d429ca6c384c671e91
services/surfaceflinger/DisplayDevice.cpp
services/surfaceflinger/DisplayDevice.h
services/surfaceflinger/LayerBase.cpp