Searched refs:LayoutCacheKey (Results 1 – 2 of 2) sorted by relevance
/aosp12/frameworks/minikin/include/minikin/ |
H A D | LayoutCache.h | 37 class LayoutCacheKey { 39 LayoutCacheKey(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in LayoutCacheKey() function 60 bool operator==(const LayoutCacheKey& o) const { 82 uint32_t getMemoryUsage() const { return sizeof(LayoutCacheKey) + sizeof(uint16_t) * mNchars; } in getMemoryUsage() 127 class LayoutCache : private android::OnEntryRemoved<LayoutCacheKey, LayoutPiece*> { 138 LayoutCacheKey key(text, range, paint, dir, startHyphen, endHyphen); in getOrCreate() 180 void operator()(LayoutCacheKey& key, LayoutPiece*& value) { in operator() 185 android::LruCache<LayoutCacheKey, LayoutPiece*> mCache GUARDED_BY(mMutex); 196 inline android::hash_t hash_type(const LayoutCacheKey& key) { in hash_type()
|
H A D | BoundsCache.h | 45 class BoundsCache : private android::OnEntryRemoved<LayoutCacheKey, BoundsValue*> { 56 LayoutCacheKey key(text, range, paint, dir, startHyphen, endHyphen); in getOrCreate() 97 void operator()(LayoutCacheKey& key, BoundsValue*& value) { in operator() 103 android::LruCache<LayoutCacheKey, BoundsValue*> mCache GUARDED_BY(mMutex) GUARDED_BY(mMutex);
|