OSDN Git Service

Treat composition frames with no layers as using GLES composition
authorJesse Hall <jessehall@google.com>
Mon, 30 Sep 2013 23:49:30 +0000 (16:49 -0700)
committerThe Android Automerger <android-build@google.com>
Wed, 2 Oct 2013 21:44:42 +0000 (14:44 -0700)
commit8eb7a481abbbc3cfe713b43158f1913f958357cf
treebf1424acfedadd486ade4c948d2d6ef0fdf9cbf0
parent6f2bc240e96e82058135f0eccf08594e4301ef3d
Treat composition frames with no layers as using GLES composition

When there are no window layers for a display, SurfaceFlinger clears
the undefined region using GLES. Some of the places that check for
GLES composition weren't considering this special case, in particular:

- We were skipping the eglSwapBuffers() on these frames.
- We were putting VirtualDisplaySurface in HWC-only composition mode.

This change centralizes the logic for this special case.

Bug: 10957068
Change-Id: I2deaf2ed101e8ea76708862a6bb67751b6078794
services/surfaceflinger/DisplayHardware/HWComposer.cpp
services/surfaceflinger/SurfaceFlinger.cpp