HomeSort by relevance Sort by last modified time
    Searched refs:LayoutCacheKey (Results 1 - 3 of 3) sorted by null

  /frameworks/minikin/include/minikin/
LayoutPieces.h 29 std::size_t operator()(const LayoutCacheKey& key) const { return key.hash(); }
36 const_cast<LayoutCacheKey*>(&it.first)->freeText();
40 std::unordered_map<LayoutCacheKey, Layout, KeyHasher> offsetMap;
49 const_cast<LayoutCacheKey*>(&result.first->first)->copyText();
56 auto it = offsetMap.find(LayoutCacheKey(textBuf, range, paint, dir, startEdit, endEdit));
LayoutCache.h 30 class LayoutCacheKey {
32 LayoutCacheKey(const U16StringPiece& text, const Range& range, const MinikinPaint& paint,
53 bool operator==(const LayoutCacheKey& o) const {
82 uint32_t getMemoryUsage() const { return sizeof(LayoutCacheKey) + sizeof(uint16_t) * mNchars; }
129 class LayoutCache : private android::OnEntryRemoved<LayoutCacheKey, Layout*> {
140 LayoutCacheKey key(text, range, paint, dir, startHyphen, endHyphen);
190 void operator()(LayoutCacheKey& key, Layout*& value) {
195 android::LruCache<LayoutCacheKey, Layout*> mCache GUARDED_BY(mMutex);
200 // static const size_t kMaxEntries = LruCache<LayoutCacheKey, Layout*>::kUnlimitedCapacity;
209 inline android::hash_t hash_type(const LayoutCacheKey& key)
    [all...]
Layout.h 149 friend class LayoutCacheKey;

Completed in 184 milliseconds