Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67283d06 authored by Jim Shargo's avatar Jim Shargo
Browse files

VirtualDisplays: Create an updated Virtual Display implementation.

This implementation simplifies the buffer tracking logic, increasing
maintainability. It should function as a drop-in replacement for the
other.

This CL implements a single threaded version that wastes a lot of
buffers due to never dequeuing any from the sink, which is not
shippable.  But it's a start. A subsequent CL splits out an extra thread
for interactions with the app process and better buffer management.

This CL also constantly repeats the same HWC slot id and sends a buffer
every frame to HWC for HWC-backed virtual displays. This is also
addressed in a subsequent CL.

See go/wb-virtual-displays

Bug: 340933138
Flag: com.android.graphics.surfaceflinger.flags.wb_virtualdisplay2
Test: atest, presubmit, new tests

Change-Id: I04b2b1dec6a55255aeeb54015204d58b3bf97174
parent 3b797e23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment