OSDN Git Service

fix a bug where fading in/out of opaque 32-bits windows wasn't working
authorMathias Agopian <mathias@google.com>
Mon, 12 Apr 2010 22:34:55 +0000 (15:34 -0700)
committerMathias Agopian <mathias@google.com>
Tue, 1 Jun 2010 22:57:44 +0000 (15:57 -0700)
commit49753266d2219d2fbf5c33dc4626f299dffcdd76
treea85071eb34a5dbf792ad54f2dcbf62b76e461d12
parent5220f483382d314b38e24a4520080eae63005eb7
fix a bug where fading in/out of opaque 32-bits windows wasn't working

opaque 32-bits windows are now allocated as RGBX_8888 buffers and
SurfaceFlinger always uses GL_MODULATE instead of trying to
optimize to GL_REPLACE when possible (makes no sense on
h/w accelerated GL).

we still have a small hack for devices that don't support
RGBX_8888 in their gralloc implementation where we revert to
RGBA_8888.
libs/surfaceflinger/LayerBase.cpp
libs/ui/GraphicBuffer.cpp