summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueue.cpp
diff options
context:
space:
mode:
author James Shargo <jshargo@google.com> 2023-09-12 11:58:07 -0400
committer James Shargo <jshargo@google.com> 2023-09-22 11:51:18 -0400
commit77e3c5472fb643950de67471857c5fac8dcb1ef3 (patch)
tree8dfde57e64ed56ae4fc172da9b63d9ad6b26a2be /libs/gui/BufferQueue.cpp
parent83baba5089bb09e9123f920c7b0936673c2f5e0c (diff)
bufferstreams: Add basic implementations of core BS traits
For BufferSubscriptions, this change provides a generic implenmentation that tracks requests and cancellations. For BufferPublishers and BufferSubscribers, we provide test implementations that let a user manually control the flow of events between the two objects. The traits themselves have also been updated to be more generic--instead of forcing Arc/Weak pointers for shared objects, we now use generic owned types for a BufferPublisher's BufferSubscriber and a BufferSubscriber's BufferSubscription. To make it possible to hold into a handle to a BufferSubscriber while a BufferPublisher owns it, we provide a generic implementation of BufferSubscriber for any Arc<BS: BufferSubscriber> that delegates to the underlying subscriber. Bug: 296449936, 296100790 Test: atest libbufferstreams-internal_test Change-Id: Ibbf925d2dfb85f606baa3dc1f9722440af4f862c
Diffstat (limited to 'libs/gui/BufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions