Home
last modified time | relevance | path

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

/frameworks/native/libs/gui/
DBufferHubProducer.cpp59 } else if (!buffers_[slot].mBufferState.isDequeued()) { in requestBuffer()
61 buffers_[slot].mBufferState.string()); in requestBuffer()
63 } else if (buffers_[slot].mGraphicBuffer != nullptr) { in requestBuffer()
66 } else if (buffers_[slot].mBufferProducer == nullptr) { in requestBuffer()
71 const auto& buffer_producer = buffers_[slot].mBufferProducer; in requestBuffer()
74 buffers_[slot].mGraphicBuffer = graphic_buffer; in requestBuffer()
75 buffers_[slot].mRequestBufferCalled = true; in requestBuffer()
97 for (const auto& buf : buffers_) { in setMaxDequeuedBufferCount()
185 buffers_[slot].mIsReallocating = true; in dequeueBuffer()
204 LOG_ALWAYS_FATAL_IF((!buffers_[slot].mBufferState.isFree() && in dequeueBuffer()
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/
Dbuffer_hub_queue_client.cpp216 if (!buffers_[slot]) { in HandleBufferEvent()
221 auto status = buffers_[slot]->GetEventMask(poll_events); in HandleBufferEvent()
232 id(), buffers_[slot]->id(), slot, event_fd, poll_events, events); in HandleBufferEvent()
235 return Enqueue({buffers_[slot], slot, buffers_[slot]->GetQueueIndex()}); in HandleBufferEvent()
240 slot, buffers_[slot]->event_fd(), buffers_[slot]->id()); in HandleBufferEvent()
291 if (buffers_[slot]) { in AddBuffer()
312 buffers_[slot] = buffer; in AddBuffer()
320 if (buffers_[slot]) { in RemoveBuffer()
321 for (const auto& event_source : buffers_[slot]->GetEventSources()) { in RemoveBuffer()
335 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.h92 return (slot < buffers_.size() && buffers_[slot]) ? buffers_[slot]->id() in GetBufferId()
97 return buffers_[slot]; in GetBuffer()
253 std::array<std::shared_ptr<BufferHubBuffer>, kMaxQueueCapacity> buffers_; variable
/frameworks/native/libs/gui/include/gui/
DBufferHubProducer.h208 BufferHubSlot buffers_[dvr::BufferHubQueue::kMaxQueueCapacity]; variable