Home
last modified time | relevance | path

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

/frameworks/native/libs/gui/
DBufferHubProducer.cpp60 } else if (!buffers_[slot].mBufferState.isDequeued()) { in requestBuffer()
62 buffers_[slot].mBufferState.string()); in requestBuffer()
64 } else if (buffers_[slot].mGraphicBuffer != nullptr) { in requestBuffer()
67 } else if (buffers_[slot].mProducerBuffer == nullptr) { in requestBuffer()
72 const auto& producer_buffer = buffers_[slot].mProducerBuffer; in requestBuffer()
75 buffers_[slot].mGraphicBuffer = graphic_buffer; in requestBuffer()
76 buffers_[slot].mRequestBufferCalled = true; in requestBuffer()
98 for (const auto& buf : buffers_) { in setMaxDequeuedBufferCount()
186 buffers_[slot].mIsReallocating = true; in dequeueBuffer()
205 LOG_ALWAYS_FATAL_IF((!buffers_[slot].mBufferState.isFree() && in dequeueBuffer()
[all …]
/frameworks/native/services/vr/bufferhubd/
Dproducer_queue_channel.cpp125 if (auto buffer = buffers_[slot].lock()) in OnCreateConsumerQueue()
260 if (buffers_[slot].expired()) in AllocateBuffer()
270 buffers_[slot] = producer_channel; in AllocateBuffer()
340 if (buffers_[slot].expired()) in OnProducerQueueInsertBuffer()
350 buffers_[slot] = producer_channel; in OnProducerQueueInsertBuffer()
367 if (buffers_[slot].expired()) { in OnProducerQueueRemoveBuffer()
382 buffers_[slot].reset(); in OnProducerQueueRemoveBuffer()
/frameworks/native/libs/vr/libbufferhubqueue/
Dbuffer_hub_queue_client.cpp213 if (!buffers_[slot]) { in HandleBufferEvent()
218 auto status = buffers_[slot]->GetEventMask(poll_events); in HandleBufferEvent()
229 id(), buffers_[slot]->id(), slot, event_fd, poll_events, events); in HandleBufferEvent()
232 return Enqueue({buffers_[slot], slot, buffers_[slot]->GetQueueIndex()}); in HandleBufferEvent()
237 slot, buffers_[slot]->event_fd(), buffers_[slot]->id()); in HandleBufferEvent()
287 if (buffers_[slot]) { in AddBuffer()
308 buffers_[slot] = buffer; in AddBuffer()
316 if (buffers_[slot]) { in RemoveBuffer()
317 for (const auto& event_source : buffers_[slot]->GetEventSources()) { in RemoveBuffer()
329 on_buffer_removed_(buffers_[slot]); in RemoveBuffer()
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Dbuffer_hub_queue_client.h93 return (slot < buffers_.size() && buffers_[slot]) ? buffers_[slot]->id() in GetBufferId()
98 return buffers_[slot]; in GetBuffer()
262 std::array<std::shared_ptr<BufferHubBase>, kMaxQueueCapacity> buffers_; variable
/frameworks/native/services/vr/bufferhubd/include/private/dvr/
Dproducer_queue_channel.h85 std::weak_ptr<ProducerChannel> buffers_[BufferHubRPC::kMaxQueueCapacity]; variable
/frameworks/native/libs/gui/include/gui/
DBufferHubProducer.h212 BufferHubSlot buffers_[dvr::BufferHubQueue::kMaxQueueCapacity]; variable