replicant-frameworks_native/services/surfaceflinger
Romain Guy 3b996c96e4 Always create OpenGL accelerated windows in RGBA 8888.
Bug #3081600

The OpenGL renderer in libhwui uses a single EGL context per process and
thus create it with an RGBA 8888 EGL configuration. To ensure that all
windows are compatible with this configuration, this change modifies
the window manager and SurfaceFlinger.

The window manager now checks the window's flags and if the window is
hardware accelerated, it forces the window's pixel format to be
translucent when creating the surface. The window itself is still
marked as opaque if we know that the window will be opaque on screen.
This keeps existing optimizations in place.

Similarly in SurfaceFlinger, a translucent Surface can now be created
with the Surface.OPAQUE flag, indicating SurfaceFlinger that the surface
does not require blending, despite its RGBA 8888 configuration.

Change-Id: Ic747b6b12564ba064412d842117880fcc199eb7c
2010-10-12 11:00:18 -07:00
..
DisplayHardware Fix a null dereference 2010-10-07 14:57:04 -07:00
tests refactored screenshot code 2010-09-29 16:55:15 -07:00
Android.mk Squashed commit of the following: 2010-08-23 12:30:24 -07:00
Barrier.h
BlurFilter.cpp
BlurFilter.h
clz.cpp
clz.h
GLExtensions.cpp add support for [1974164] Be able to take a screen shot on the device 2010-09-24 14:56:39 -07:00
GLExtensions.h add support for [1974164] Be able to take a screen shot on the device 2010-09-24 14:56:39 -07:00
Layer.cpp Always create OpenGL accelerated windows in RGBA 8888. 2010-10-12 11:00:18 -07:00
Layer.h refactored screenshot code 2010-09-29 16:55:15 -07:00
LayerBase.cpp refactored screenshot code 2010-09-29 16:55:15 -07:00
LayerBase.h refactored screenshot code 2010-09-29 16:55:15 -07:00
LayerBlur.cpp surfaceflinger / GL extensions cleanup 2010-09-15 17:15:31 -07:00
LayerBlur.h
LayerBuffer.cpp refactored screenshot code 2010-09-29 16:55:15 -07:00
LayerBuffer.h refactored screenshot code 2010-09-29 16:55:15 -07:00
LayerDim.cpp surfaceflinger / GL extensions cleanup 2010-09-15 17:15:31 -07:00
LayerDim.h
MessageQueue.cpp fix a bug where timeouts would only be handled when a message was delivered 2010-10-07 19:59:06 -07:00
MessageQueue.h
MODULE_LICENSE_APACHE2
SurfaceFlinger.cpp refactored screenshot code 2010-09-29 16:55:15 -07:00
SurfaceFlinger.h refactored screenshot code 2010-09-29 16:55:15 -07:00
TextureManager.cpp surfaceflinger / GL extensions cleanup 2010-09-15 17:15:31 -07:00
TextureManager.h fix [2931513] Add support for setting the orientation of an ANativeWindow 2010-08-24 15:40:50 -07:00
Transform.cpp
Transform.h