OSDN Git Service

Expose acquire_fence though ConsumerQueue::Dequeue
authorJiwen 'Steve' Cai <jwcai@google.com>
Tue, 14 Mar 2017 00:04:43 +0000 (17:04 -0700)
committerJiwen 'Steve' Cai <jwcai@google.com>
Fri, 17 Mar 2017 02:02:21 +0000 (19:02 -0700)
commited6543224138fd753eeea909918bb8d1d2efb1e6
tree19322fbc4b92bc4e73db99f8ce4b8a435b915d6f
parentafbdf1f1d09ce7b58b64b48ebdcfe05a630df20c
Expose acquire_fence though ConsumerQueue::Dequeue

The current compositor implementation will be refactored to use
BufferHubQueue instead of ad-hoc BufferHub operations. We need this to
expose release_fence to compositor so that it can wait for buffers
to become avaiable by checking fence properly.

Bug: 36033302
Bug: 36148608
Test: Built and ran buffer_hub_queue-test
Change-Id: I75cfcb02e06a4b9e7e89b89690ca2d92ee09a678
libs/vr/libbufferhubqueue/buffer_hub_queue_client.cpp
libs/vr/libbufferhubqueue/buffer_hub_queue_producer.cpp
libs/vr/libbufferhubqueue/include/private/dvr/buffer_hub_queue_client.h
libs/vr/libbufferhubqueue/tests/buffer_hub_queue-test.cpp
libs/vr/libvrflinger/video_compositor.cpp