Searched refs:BufferState (Results 1 – 2 of 2) sorted by relevance
35 mConsumerBufferItem.state = BufferState::FREE; in BufferManager()37 mProducerBufferItems.emplace_back(buf, BufferState::FREE); in BufferManager()56 if (bufferItem.state == BufferState::FREE) { in getFreeBufferIfAvailable()57 bufferItem.state = BufferState::IN_USE; in getFreeBufferIfAvailable()80 if (bufferItem.state == BufferState::FILLED) { in filledProducerBufferAvailableLocked()95 if (bufferItem.state == BufferState::FILLED && j != foundIndex) { in filledProducerBufferAvailableLocked()96 bufferItem.state = BufferState::FREE; in filledProducerBufferAvailableLocked()115 mConsumerBufferItem.state = BufferState::FREE; in getFilledBufferAndSwap()118 mConsumerBufferItem.state = BufferState::IN_USE; in getFilledBufferAndSwap()122 bool BufferManager::changeProducerBufferStateLocked(Buffer* buffer, BufferState newState) { in changeProducerBufferStateLocked()[all …]
180 enum BufferState { enum187 BufferItem() : buffer(nullptr), state(BufferState::FREE) {} in BufferItem()188 BufferItem(std::shared_ptr<Buffer>& buf, BufferState st) : buffer(buf), state(st) {} in BufferItem()190 BufferState state = BufferState::FREE;196 bool changeProducerBufferStateLocked(Buffer* buffer, BufferState newState);