Lines Matching refs:BufferState
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()
144 if (!changeProducerBufferStateLocked(buffer, BufferState::FREE)) { in cancelBuffer()
153 if (!changeProducerBufferStateLocked(buffer, BufferState::FILLED)) { in queueFilledBuffer()