SF: Extract virtual display allocation from CE
Allocate HAL virtual display and generate HAL/GPU virtual display ID in SF rather than CE. This centralizes the HAL vs. GPU decision as a first step in isolating display configuration (e.g. hotplug, modeset) to be a distinct stage from invalidate/refresh. Rework SF backend hooks for screen capture. Plumb the PhysicalDisplayId to be mirrored by the virtual display to Composer::createVirtualDisplay. This enables the ARC backend to know which display to mirror (instead of making assumptions about the layer stack) or error out if not mirroring (previously done through maybeAllocateDisplayIdForVirtualDisplay), such that SF falls back to creating a GPU virtual display. Bug: 182939859 Bug: 129481165 Test: Enable overlay display and toggle HAL/GPU Test: libsurfaceflinger_unittest Test: libcompositionengine_test Change-Id: I209b245966e544d5ff55d5d118140cfcfa85db15 Merged-In: I209b245966e544d5ff55d5d118140cfcfa85db15
Loading
Please register or sign in to comment