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

Skip to content
Commit 50f7ad1b authored by Tianyu Jiang's avatar Tianyu Jiang
Browse files

Create consumer state mask(s) immediately after producer allocate new buffer.

No functionality change in the current use cases.

Create consumer state mask(s) for newly allocated buffer in producer
queue for all connected consumer channels immediately before signaling
the consumer channels that there is a new buffer allocated in the queue.

Previously, the consumer queue imports newly allocated buffer upon
dequeue. During importing the buffer, after the IPC, bufferhubd does
two things:
1. create consumer state mask
2. create consumer channel

This changelist moves the first step before the IPC, moving it right
after the buffer is allocated in the producer queue. This changelist
does not affect the second step.

Test: AHardwareBufferTest BufferHubBuffer_test BufferHubMetadata_test
buffer_hub_binder_service-test buffer_hub_queue_producer-test
libsensor_test vrflinger_test buffer_hub-test
buffer_hub_queue-test dvr_buffer_queue-test dvr_api-test
dvr_display-Test

Bug: 119112218

Change-Id: I313e7ea98fcb555e08560e4c7e9bf295e40e1f27
parent cb10f956
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