Lines Matching refs:bufferIter
485 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferTo() local
486 if (bufferIter == mBuffers.end() || in handleTransferTo()
509 bufferIter->second->mTransactionCount++; in handleTransferTo()
523 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferFrom() local
524 bufferIter->second->mTransactionCount++; in handleTransferFrom()
542 auto bufferIter = mBuffers.find(message.bufferId); in handleTransferResult() local
546 bufferIter->second->mTransactionCount--; in handleTransferResult()
547 if (bufferIter->second->mOwnerCount == 0 in handleTransferResult()
548 && bufferIter->second->mTransactionCount == 0) { in handleTransferResult()
549 if (!bufferIter->second->mInvalidated) { in handleTransferResult()
550 mStats.onBufferUnused(bufferIter->second->mAllocSize); in handleTransferResult()
553 mStats.onBufferUnused(bufferIter->second->mAllocSize); in handleTransferResult()
554 mStats.onBufferEvicted(bufferIter->second->mAllocSize); in handleTransferResult()
555 mBuffers.erase(bufferIter); in handleTransferResult()
623 auto bufferIter = mBuffers.find(bufferId); in handleClose() local
624 bufferIter->second->mOwnerCount--; in handleClose()
625 if (bufferIter->second->mOwnerCount == 0 && in handleClose()
626 bufferIter->second->mTransactionCount == 0) { in handleClose()
628 if (!bufferIter->second->mInvalidated) { in handleClose()
629 mStats.onBufferUnused(bufferIter->second->mAllocSize); in handleClose()
632 mStats.onBufferUnused(bufferIter->second->mAllocSize); in handleClose()
633 mStats.onBufferEvicted(bufferIter->second->mAllocSize); in handleClose()
634 mBuffers.erase(bufferIter); in handleClose()
653 auto bufferIter = mBuffers.find(bufferId); in handleClose() local
654 bufferIter->second->mTransactionCount--; in handleClose()
655 if (bufferIter->second->mOwnerCount == 0 && in handleClose()
656 bufferIter->second->mTransactionCount == 0) { in handleClose()
658 if (!bufferIter->second->mInvalidated) { in handleClose()
659 mStats.onBufferUnused(bufferIter->second->mAllocSize); in handleClose()
662 mStats.onBufferUnused(bufferIter->second->mAllocSize); in handleClose()
663 mStats.onBufferEvicted(bufferIter->second->mAllocSize); in handleClose()
664 mBuffers.erase(bufferIter); in handleClose()