diff options
author | Yiwei Zhang <zzyiwei@google.com> | 2020-07-28 15:46:12 -0700 |
---|---|---|
committer | Yiwei Zhang <zzyiwei@google.com> | 2020-07-28 15:46:12 -0700 |
commit | 26169cdcfaf45829d045ef22858f4135526fb110 (patch) | |
tree | e6aa3f4067b5188f6ae09c1e6fb53cd3d0fbf77d /opengl/libs/EGL/BlobCache.cpp | |
parent | 09f7bc11ba9bd5ec86051e0ce5540869cd75966a (diff) |
OpenGL: Use more inclusive terms
Bug: 162288333
Test: build
Change-Id: I290a827e26fcd186a0461a568e41d0c50b7e19cd
Diffstat (limited to 'opengl/libs/EGL/BlobCache.cpp')
-rw-r--r-- | opengl/libs/EGL/BlobCache.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/opengl/libs/EGL/BlobCache.cpp b/opengl/libs/EGL/BlobCache.cpp index 74c4d7d07a..089e28c4b8 100644 --- a/opengl/libs/EGL/BlobCache.cpp +++ b/opengl/libs/EGL/BlobCache.cpp @@ -78,12 +78,12 @@ void BlobCache::set(const void* key, size_t keySize, const void* value, return; } - std::shared_ptr<Blob> dummyKey(new Blob(key, keySize, false)); - CacheEntry dummyEntry(dummyKey, nullptr); + std::shared_ptr<Blob> cacheKey(new Blob(key, keySize, false)); + CacheEntry cacheEntry(cacheKey, nullptr); while (true) { - auto index = std::lower_bound(mCacheEntries.begin(), mCacheEntries.end(), dummyEntry); - if (index == mCacheEntries.end() || dummyEntry < *index) { + auto index = std::lower_bound(mCacheEntries.begin(), mCacheEntries.end(), cacheEntry); + if (index == mCacheEntries.end() || cacheEntry < *index) { // Create a new cache entry. std::shared_ptr<Blob> keyBlob(new Blob(key, keySize, true)); std::shared_ptr<Blob> valueBlob(new Blob(value, valueSize, true)); @@ -138,10 +138,10 @@ size_t BlobCache::get(const void* key, size_t keySize, void* value, keySize, mMaxKeySize); return 0; } - std::shared_ptr<Blob> dummyKey(new Blob(key, keySize, false)); - CacheEntry dummyEntry(dummyKey, nullptr); - auto index = std::lower_bound(mCacheEntries.begin(), mCacheEntries.end(), dummyEntry); - if (index == mCacheEntries.end() || dummyEntry < *index) { + std::shared_ptr<Blob> cacheKey(new Blob(key, keySize, false)); + CacheEntry cacheEntry(cacheKey, nullptr); + auto index = std::lower_bound(mCacheEntries.begin(), mCacheEntries.end(), cacheEntry); + if (index == mCacheEntries.end() || cacheEntry < *index) { ALOGV("get: no cache entry found for key of size %zu", keySize); return 0; } |