Searched refs:PatchDescription (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/libs/hwui/ |
D | PatchCache.h | 93 struct PatchDescription { struct 94 PatchDescription(): mPatch(nullptr), mBitmapWidth(0), mBitmapHeight(0), in PatchDescription() argument 98 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, in PatchDescription() function 108 static int compare(const PatchDescription& lhs, const PatchDescription& rhs); argument 110 bool operator==(const PatchDescription& other) const { 114 bool operator!=(const PatchDescription& other) const { 118 friend inline int strictly_order_type(const PatchDescription& lhs, in strictly_order_type() argument 119 const PatchDescription& rhs) { in strictly_order_type() 120 return PatchDescription::compare(lhs, rhs) < 0; in strictly_order_type() 123 friend inline int compare_type(const PatchDescription& lhs, in compare_type() argument [all …]
|
D | PatchCache.cpp | 37 , mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity) in PatchCache() 65 hash_t PatchCache::PatchDescription::hash() const { in hash() 74 int PatchCache::PatchDescription::compare(const PatchCache::PatchDescription& lhs, in compare() 75 const PatchCache::PatchDescription& rhs) { in compare() 76 return memcmp(&lhs, &rhs, sizeof(PatchDescription)); in compare() 91 LruCache<PatchDescription, Patch*>::Iterator i(mCache); in clearCache() 107 LruCache<PatchDescription, Patch*>::Iterator i(mCache); in remove() 109 const PatchDescription& key = i.key(); in remove() 243 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); in get()
|