OSDN Git Service

SurfaceFlinger: add a crop to the layer state
authorJamie Gennis <jgennis@google.com>
Fri, 11 May 2012 03:43:55 +0000 (20:43 -0700)
committerJamie Gennis <jgennis@google.com>
Fri, 11 May 2012 10:16:02 +0000 (03:16 -0700)
commitf15a83f5814219c167f87cb8aaea622fc8493499
tree131d3c92aa0f1e75b110b187b8ee6859be5d0bc5
parentf30fd01497a53cbff8692721026c3f7b6830158e
SurfaceFlinger: add a crop to the layer state

This change adds a crop rectangle specified in window coordinates to the layer
state.  The all window pixels outside this crop rectangle are treated as though
they were fully transparent.  This change also adds the plumbing necessary for
WindowManager to set that crop.

Change-Id: I582bc445dc8c97d4c943d4db8d582a6ef5a66081
13 files changed:
include/gui/ISurfaceComposer.h
include/gui/Surface.h
include/gui/SurfaceComposerClient.h
include/private/gui/LayerState.h
include/ui/Rect.h
libs/gui/Surface.cpp
libs/gui/SurfaceComposerClient.cpp
libs/ui/Rect.cpp
services/surfaceflinger/Layer.cpp
services/surfaceflinger/Layer.h
services/surfaceflinger/LayerBase.cpp
services/surfaceflinger/LayerBase.h
services/surfaceflinger/SurfaceFlinger.cpp