Lines Matching refs:clientCacheId

219                                  nsecs_t desiredPresentTime, const client_cache_t& clientCacheId) {  in setBuffer()  argument
225 mCurrentState.clientCacheId = clientCacheId; in setBuffer()
596 hwcInfo.hwcBufferCache.getHwcBuffer(mHwcSlotGenerator->getHwcCacheSlot(s.clientCacheId), in setHwcLayerBuffer()
616 void BufferStateLayer::HwcSlotGenerator::bufferErased(const client_cache_t& clientCacheId) { in bufferErased() argument
618 if (!clientCacheId.isValid()) { in bufferErased()
622 eraseBufferLocked(clientCacheId); in bufferErased()
625 uint32_t BufferStateLayer::HwcSlotGenerator::getHwcCacheSlot(const client_cache_t& clientCacheId) { in getHwcCacheSlot() argument
627 auto itr = mCachedBuffers.find(clientCacheId); in getHwcCacheSlot()
629 return addCachedBuffer(clientCacheId); in getHwcCacheSlot()
636 uint32_t BufferStateLayer::HwcSlotGenerator::addCachedBuffer(const client_cache_t& clientCacheId) in addCachedBuffer() argument
638 if (!clientCacheId.isValid()) { in addCachedBuffer()
643 ClientCache::getInstance().registerErasedRecipient(clientCacheId, wp<ErasedRecipient>(this)); in addCachedBuffer()
646 mCachedBuffers[clientCacheId] = {hwcCacheSlot, mCounter++}; in addCachedBuffer()
663 for (const auto& [clientCacheId, slotCounter] : mCachedBuffers) { in evictLeastRecentlyUsed()
667 minClientCacheId = clientCacheId; in evictLeastRecentlyUsed()
675 void BufferStateLayer::HwcSlotGenerator::eraseBufferLocked(const client_cache_t& clientCacheId) in eraseBufferLocked() argument
677 auto itr = mCachedBuffers.find(clientCacheId); in eraseBufferLocked()
686 mCachedBuffers.erase(clientCacheId); in eraseBufferLocked()