OSDN Git Service

Rewrite VirtualDisplaySurface
authorJesse Hall <jessehall@google.com>
Sun, 7 Apr 2013 06:12:29 +0000 (23:12 -0700)
committerJesse Hall <jessehall@google.com>
Mon, 15 Jul 2013 20:59:41 +0000 (13:59 -0700)
commit38efe86d9459cf5c96a24a34cc5cbf31fdba7e19
tree9fc8074b1c3fd31515d0396df9e7f917380529cb
parent5cd46aa3399ddeaf12a211390dfde66c796ab299
Rewrite VirtualDisplaySurface

The previous implementation assumed that the HWC could read and write
the same buffer on frames that involved both GLES and HWC composition.
It turns out some hardware can't do this. The new implementation
maintains a scratch buffer pool to use on these mixed frames, but on
GLES-only or HWC-only frames still does composition directly into the
output buffer.

Bug: 8384764
Change-Id: I7a3addb34fad9bfcbdabbb8b635083e10223df69
services/surfaceflinger/DisplayDevice.cpp
services/surfaceflinger/DisplayDevice.h
services/surfaceflinger/DisplayHardware/DisplaySurface.h
services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp
services/surfaceflinger/DisplayHardware/FramebufferSurface.h
services/surfaceflinger/DisplayHardware/HWComposer.cpp
services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp
services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.h
services/surfaceflinger/SurfaceFlinger.cpp