Searched refs:PatchDescription (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/libs/hwui/ |
D | PatchCache.h | 86 struct PatchDescription { struct 87 PatchDescription(): mPatch(nullptr), mBitmapWidth(0), mBitmapHeight(0), in PatchDescription() argument 91 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, in PatchDescription() argument 101 static int compare(const PatchDescription& lhs, const PatchDescription& rhs); argument 103 bool operator==(const PatchDescription& other) const { 107 bool operator!=(const PatchDescription& other) const { 111 friend inline int strictly_order_type(const PatchDescription& lhs, in strictly_order_type() argument 112 const PatchDescription& rhs) { in strictly_order_type() 113 return PatchDescription::compare(lhs, rhs) < 0; in strictly_order_type() 116 friend inline int compare_type(const PatchDescription& lhs, in compare_type() argument [all …]
|
D | PatchCache.cpp | 37 , mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity) in PatchCache() 49 hash_t PatchCache::PatchDescription::hash() const { in hash() 58 int PatchCache::PatchDescription::compare(const PatchCache::PatchDescription& lhs, in compare() 59 const PatchCache::PatchDescription& rhs) { in compare() 60 return memcmp(&lhs, &rhs, sizeof(PatchDescription)); in compare() 74 LruCache<PatchDescription, Patch*>::Iterator i(mCache); in clearCache() 90 LruCache<PatchDescription, Patch*>::Iterator i(mCache); in remove() 92 const PatchDescription& key = i.key(); in remove() 229 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); in get()
|