Searched refs:LayoutCacheKey (Results 1 – 3 of 3) sorted by relevance
/frameworks/minikin/include/minikin/ |
D | LayoutPieces.h | 29 std::size_t operator()(const LayoutCacheKey& key) const { return key.hash(); } in operator() 36 const_cast<LayoutCacheKey*>(&it.first)->freeText(); in ~LayoutPieces() 40 std::unordered_map<LayoutCacheKey, Layout, KeyHasher> offsetMap; 49 const_cast<LayoutCacheKey*>(&result.first->first)->copyText(); in insert() 56 auto it = offsetMap.find(LayoutCacheKey(textBuf, range, paint, dir, startEdit, endEdit)); in getOrCreate()
|
D | LayoutCache.h | 30 class LayoutCacheKey { 32 LayoutCacheKey(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, in LayoutCacheKey() function 53 bool operator==(const LayoutCacheKey& o) const { 82 uint32_t getMemoryUsage() const { return sizeof(LayoutCacheKey) + sizeof(uint16_t) * mNchars; } in getMemoryUsage() 129 class LayoutCache : private android::OnEntryRemoved<LayoutCacheKey, Layout*> { 140 LayoutCacheKey key(text, range, paint, dir, startHyphen, endHyphen); in getOrCreate() 190 void operator()(LayoutCacheKey& key, Layout*& value) { in operator() 195 android::LruCache<LayoutCacheKey, Layout*> mCache GUARDED_BY(mMutex); 209 inline android::hash_t hash_type(const LayoutCacheKey& key) { in hash_type()
|
D | Layout.h | 149 friend class LayoutCacheKey;
|