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)
committerJesse Hall <jessehall@google.com>
Tue, 1 Oct 2013 00:08:28 +0000 (17:08 -0700)
commitd05a17fbb3772051d287f1f8830a7f00964f7ec2
tree2d288f9b3d01140c5a57bfcccda10b5c1b7957bc
parent86206b41b2ff000e086301c6bafb8da577e563b2
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