OSDN Git Service

the visible region sent to HWC was garbage
authorMathias Agopian <mathias@google.com>
Sat, 1 Sep 2012 00:51:25 +0000 (17:51 -0700)
committerMathias Agopian <mathias@google.com>
Sat, 1 Sep 2012 01:41:22 +0000 (18:41 -0700)
commitc39736088398a9b4367b30fc307ed7de96ac342e
tree64f2bd31272f323ede649a37e7e7dbcc04dd84c9
parent50f262fe569b52bb4d44c96de0d296188ce3885e
the visible region sent to HWC was garbage

we used to have a visibleRegion object per layer, but now
it's per screen; so at somepoint the code got changed to
calculate the per-screen visible region on the stack and that's
what got passed to HWC.

we're now setting the visibleRegionScreen at each frame and
freeing at after the HWC set() call. We use the underlaying
SharedBuffer so that in most cases we don't have to allocate,
free or copy memory around.

Bug: 7089478
Change-Id: I24fa556c76613a225d9fe7a6c6b727bb476144d8
services/surfaceflinger/DisplayHardware/HWComposer.cpp
services/surfaceflinger/DisplayHardware/HWComposer.h
services/surfaceflinger/Layer.cpp
services/surfaceflinger/LayerBase.cpp
services/surfaceflinger/LayerBase.h