OSDN Git Service

Isolate knowledge that fb target == output buffer
authorJesse Hall <jessehall@google.com>
Wed, 20 Mar 2013 20:44:00 +0000 (13:44 -0700)
committerJesse Hall <jessehall@google.com>
Fri, 22 Mar 2013 22:27:57 +0000 (15:27 -0700)
commit851cfe834295224cd64bdd499872b95b19c4de8c
treebe3c3711c47337d41401385e56f6d3aafb427d27
parentafaf14b9fbfe8943d845e2f01e8a401ad7a4d854
Isolate knowledge that fb target == output buffer

HWComposer didn't allow the virtual display output buffer to be set
directly, instead it always used the framebuffer target buffer.
DisplayDevice was only providing the framebuffer release fence to
DisplaySurfaces after a commit.

This change fixes both of these, so both HWComposer and DisplayDevice
should continue to work if VirtualDisplaySurface changes to use
separate framebuffer and output buffers. It's also more correct since
VirtualDisplaySurface uses the correct release fence when queueing the
buffer to the sink.

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