OSDN Git Service

Fix virtual displays for HWC<=1.1
authorJesse Hall <jessehall@google.com>
Fri, 22 Mar 2013 22:13:48 +0000 (15:13 -0700)
committerJesse Hall <jessehall@google.com>
Fri, 22 Mar 2013 22:27:58 +0000 (15:27 -0700)
commitffe1f19ca9707f84cb9fdb06209bf36cd8c2ef0a
treee96e4d9d19a81ec6ee46052e54f3b2fda16465f3
parent48bc05b56df9919fc39c5f2e3ea6535560eec98f
Fix virtual displays for HWC<=1.1

If we're using a HWC that doesn't support virtual displays, or we have
more virtual displays than HWC supports concurrently, the
VirtualDisplaySurface should simply be a passthrough from source
(GLES) to sink.

This change also tries to distinguish between display types and HWC
display IDs a little better, though there's more to do here. Probably
needs a higher-level rethink; it's too error-prone now.

Bug: 8446838
Change-Id: I708d2cf262ec30177042304f174ca5b8da701df1
services/surfaceflinger/DisplayDevice.cpp
services/surfaceflinger/DisplayDevice.h
services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp
services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.h
services/surfaceflinger/SurfaceFlinger.cpp