Home
last modified time | relevance | path

Searched refs:buffers_ (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/libs/vr/libbufferhubqueue/
Dbuffer_hub_queue_producer.cpp51 } else if (!buffers_[slot].mBufferState.isDequeued()) { in requestBuffer()
53 slot, buffers_[slot].mBufferState.string()); in requestBuffer()
55 } else if (buffers_[slot].mGraphicBuffer != nullptr) { in requestBuffer()
58 } else if (buffers_[slot].mBufferProducer == nullptr) { in requestBuffer()
63 const auto& buffer_producer = buffers_[slot].mBufferProducer; in requestBuffer()
66 buffers_[slot].mGraphicBuffer = graphic_buffer; in requestBuffer()
67 buffers_[slot].mRequestBufferCalled = true; in requestBuffer()
92 for (const auto& buf : buffers_) { in setMaxDequeuedBufferCount()
189 buffers_[slot].mIsReallocating = true; in dequeueBuffer()
210 (!buffers_[slot].mBufferState.isFree() && in dequeueBuffer()
[all …]
Dbuffer_hub_queue_client.cpp208 if (!buffers_[slot]) { in HandleBufferEvent()
213 auto status = buffers_[slot]->GetEventMask(poll_events); in HandleBufferEvent()
224 id(), buffers_[slot]->id(), slot, event_fd, poll_events, events); in HandleBufferEvent()
227 return Enqueue({buffers_[slot], slot, buffers_[slot]->GetQueueIndex()}); in HandleBufferEvent()
232 slot, buffers_[slot]->event_fd(), buffers_[slot]->id()); in HandleBufferEvent()
283 if (buffers_[slot]) { in AddBuffer()
304 buffers_[slot] = buffer; in AddBuffer()
312 if (buffers_[slot]) { in RemoveBuffer()
313 for (const auto& event_source : buffers_[slot]->GetEventSources()) { in RemoveBuffer()
327 on_buffer_removed_(buffers_[slot]); in RemoveBuffer()
[all …]
/frameworks/native/services/vr/bufferhubd/
Dproducer_queue_channel.cpp121 if (auto buffer = buffers_[slot].lock()) in OnCreateConsumerQueue()
256 if (buffers_[slot].expired()) in AllocateBuffer()
266 buffers_[slot] = producer_channel; in AllocateBuffer()
283 if (buffers_[slot].expired()) { in OnProducerQueueRemoveBuffer()
298 buffers_[slot].reset(); in OnProducerQueueRemoveBuffer()
Dproducer_queue_channel.h82 std::weak_ptr<ProducerChannel> buffers_[BufferHubRPC::kMaxQueueCapacity]; variable
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Dbuffer_hub_queue_client.h74 return (slot < buffers_.size() && buffers_[slot]) ? buffers_[slot]->id() in GetBufferId()
79 return buffers_[slot]; in GetBuffer()
235 std::array<std::shared_ptr<BufferHubBuffer>, kMaxQueueCapacity> buffers_; variable
Dbuffer_hub_queue_producer.h182 BufferHubSlot buffers_[BufferHubQueue::kMaxQueueCapacity]; variable