Searched refs:cacheId (Results 1 – 5 of 5) sorted by relevance
/frameworks/native/services/surfaceflinger/ |
D | ClientCache.cpp | 32 bool ClientCache::getBuffer(const client_cache_t& cacheId, in getBuffer() argument 34 auto& [processToken, id] = cacheId; in getBuffer() 58 bool ClientCache::add(const client_cache_t& cacheId, const sp<GraphicBuffer>& buffer) { in add() argument 59 auto& [processToken, id] = cacheId; in add() 105 void ClientCache::erase(const client_cache_t& cacheId) { in erase() argument 106 auto& [processToken, id] = cacheId; in erase() 111 if (!getBuffer(cacheId, &buf)) { in erase() 127 recipient->bufferErased(cacheId); in erase() 131 sp<GraphicBuffer> ClientCache::get(const client_cache_t& cacheId) { in get() argument 135 if (!getBuffer(cacheId, &buf)) { in get() [all …]
|
D | ClientCache.h | 39 bool add(const client_cache_t& cacheId, const sp<GraphicBuffer>& buffer); 40 void erase(const client_cache_t& cacheId); 42 sp<GraphicBuffer> get(const client_cache_t& cacheId); 51 bool registerErasedRecipient(const client_cache_t& cacheId, 53 void unregisterErasedRecipient(const client_cache_t& cacheId, 74 bool getBuffer(const client_cache_t& cacheId, ClientCacheBuffer** outClientCacheBuffer)
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | CachingTest.cpp | 67 uint32_t cacheId = 0; in TEST_F() local 72 id.id = cacheId; in TEST_F() 77 cacheId++; in TEST_F() 87 id.id = cacheId; in TEST_F() 90 cacheId++; in TEST_F()
|
/frameworks/native/libs/gui/ |
D | SurfaceComposerClient.cpp | 246 status_t getCacheId(const sp<GraphicBuffer>& buffer, uint64_t* cacheId) { in getCacheId() argument 254 *cacheId = buffer->getId(); in getCacheId() 271 void uncache(uint64_t cacheId) { in uncache() argument 273 uncacheLocked(cacheId); in uncache() 276 void uncacheLocked(uint64_t cacheId) REQUIRES(mMutex) { in uncacheLocked() argument 277 mBuffers.erase(cacheId); in uncacheLocked() 278 SurfaceComposerClient::doUncacheBufferTransaction(cacheId); in uncacheLocked() 391 void SurfaceComposerClient::doUncacheBufferTransaction(uint64_t cacheId) { in doUncacheBufferTransaction() argument 396 uncacheBuffer.id = cacheId; in doUncacheBufferTransaction() 420 uint64_t cacheId = 0; in cacheBuffers() local [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | SurfaceComposerClient.h | 173 static void doUncacheBufferTransaction(uint64_t cacheId);
|