replicant-frameworks_native/services/surfaceflinger
Jesse Hall 0de75f3f53 Stop using transparent region for computing visible regions (DO NOT MERGE)
The transparent region hint is computed only from view layout
locations, ignoring post-layout translation. If a SurfaceView is layed
out with no other views above it, but a view is moved above it
post-layout, that view's layout bounds would be subtracted from the
window's transparent region instead of its drawing bounds. Prior to
this change, the view would not be visible (except where its layout
bounds and drawing bounds overlap).

With this change, composition uses visible regions computed without
regard to the transparent regions. However, if all of a layer's
visible region is transparent, it will be removed from the list of
layers to composite. This doesn't fix the root problem of incorrect
transparent regions, and doesn't prevent bad composition in all cases.
But it does avoid it for some existing apps, while still allowing the
transparent region hint to save power in the important
fullscreen-video-in-a-SurfaceView case.

Change-Id: If2d929a10399b80401ef902abb232233a7f3d16d
2012-10-08 10:56:03 -07:00
..
DisplayHardware
tests
Android.mk
Barrier.h
clz.cpp
clz.h
DdmConnection.cpp
DdmConnection.h
EventThread.cpp SF could get stuck waiting for vsync when turning the screen off 2012-06-15 14:59:31 -07:00
EventThread.h
GLExtensions.cpp
GLExtensions.h
Layer.cpp sometimes we would incorrectly scale the content of a surface 2012-06-07 17:12:20 -07:00
Layer.h SurfaceFlinger: add a crop to the layer state 2012-05-11 03:16:02 -07:00
LayerBase.cpp Stop using transparent region for computing visible regions (DO NOT MERGE) 2012-10-08 10:56:03 -07:00
LayerBase.h Stop using transparent region for computing visible regions (DO NOT MERGE) 2012-10-08 10:56:03 -07:00
LayerDim.cpp
LayerDim.h
LayerScreenshot.cpp
LayerScreenshot.h
MessageQueue.cpp
MessageQueue.h
MODULE_LICENSE_APACHE2
SurfaceFlinger.cpp Stop using transparent region for computing visible regions (DO NOT MERGE) 2012-10-08 10:56:03 -07:00
SurfaceFlinger.h Exit boot animation cleanly. 2012-06-19 17:32:00 -07:00
SurfaceTextureLayer.cpp
SurfaceTextureLayer.h
Transform.cpp
Transform.h