summaryrefslogtreecommitdiffstats
path: root/include/surfaceflinger
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-10-10 13:33:22 -0700
committerRomain Guy <romainguy@google.com>2010-10-12 11:00:18 -0700
commitd10cd5765a2b706fc174f16b951d6b0a5d3740d3 (patch)
treea3b21518ecfd0729e2f790745a088d7d6ee5cb1a /include/surfaceflinger
parent514c969ca72b081d84b5f563edf696c6642fa1fa (diff)
downloadframeworks_base-d10cd5765a2b706fc174f16b951d6b0a5d3740d3.zip
frameworks_base-d10cd5765a2b706fc174f16b951d6b0a5d3740d3.tar.gz
frameworks_base-d10cd5765a2b706fc174f16b951d6b0a5d3740d3.tar.bz2
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
Diffstat (limited to 'include/surfaceflinger')
-rw-r--r--include/surfaceflinger/ISurfaceComposer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/surfaceflinger/ISurfaceComposer.h b/include/surfaceflinger/ISurfaceComposer.h
index 6533600..b181781 100644
--- a/include/surfaceflinger/ISurfaceComposer.h
+++ b/include/surfaceflinger/ISurfaceComposer.h
@@ -43,6 +43,7 @@ public:
eSecure = 0x00000080,
eNonPremultiplied = 0x00000100,
ePushBuffers = 0x00000200,
+ eOpaque = 0x00000400,
eFXSurfaceNormal = 0x00000000,
eFXSurfaceBlur = 0x00010000,