Lines Matching refs:clientCacheId

261                                  const client_cache_t& clientCacheId) {  in setBuffer()  argument
269 mCurrentState.clientCacheId = clientCacheId; in setBuffer()
614 void BufferStateLayer::HwcSlotGenerator::bufferErased(const client_cache_t& clientCacheId) { in bufferErased() argument
616 if (!clientCacheId.isValid()) { in bufferErased()
620 eraseBufferLocked(clientCacheId); in bufferErased()
623 uint32_t BufferStateLayer::HwcSlotGenerator::getHwcCacheSlot(const client_cache_t& clientCacheId) { in getHwcCacheSlot() argument
625 auto itr = mCachedBuffers.find(clientCacheId); in getHwcCacheSlot()
627 return addCachedBuffer(clientCacheId); in getHwcCacheSlot()
634 uint32_t BufferStateLayer::HwcSlotGenerator::addCachedBuffer(const client_cache_t& clientCacheId) in addCachedBuffer() argument
636 if (!clientCacheId.isValid()) { in addCachedBuffer()
641 ClientCache::getInstance().registerErasedRecipient(clientCacheId, wp<ErasedRecipient>(this)); in addCachedBuffer()
644 mCachedBuffers[clientCacheId] = {hwcCacheSlot, mCounter++}; in addCachedBuffer()
661 for (const auto& [clientCacheId, slotCounter] : mCachedBuffers) { in evictLeastRecentlyUsed()
665 minClientCacheId = clientCacheId; in evictLeastRecentlyUsed()
673 void BufferStateLayer::HwcSlotGenerator::eraseBufferLocked(const client_cache_t& clientCacheId) in eraseBufferLocked() argument
675 auto itr = mCachedBuffers.find(clientCacheId); in eraseBufferLocked()
684 mCachedBuffers.erase(clientCacheId); in eraseBufferLocked()
702 mBufferInfo.mBufferSlot = mHwcSlotGenerator->getHwcCacheSlot(s.clientCacheId); in gatherBufferInfo()