Home
last modified time | relevance | path

Searched refs:PatchDescription (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/hwui/
DPatchCache.h92 struct PatchDescription { struct
93 PatchDescription(): mPatch(NULL), mBitmapWidth(0), mBitmapHeight(0), in PatchDescription() function
97 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, in PatchDescription() function
107 static int compare(const PatchDescription& lhs, const PatchDescription& rhs); argument
109 bool operator==(const PatchDescription& other) const {
113 bool operator!=(const PatchDescription& other) const {
117 friend inline int strictly_order_type(const PatchDescription& lhs, in strictly_order_type() argument
118 const PatchDescription& rhs) { in strictly_order_type()
119 return PatchDescription::compare(lhs, rhs) < 0; in strictly_order_type()
122 friend inline int compare_type(const PatchDescription& lhs, in compare_type() argument
[all …]
DPatchCache.cpp34 mSize(0), mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity), in PatchCache()
69 hash_t PatchCache::PatchDescription::hash() const { in hash()
78 int PatchCache::PatchDescription::compare(const PatchCache::PatchDescription& lhs, in compare()
79 const PatchCache::PatchDescription& rhs) { in compare()
80 return memcmp(&lhs, &rhs, sizeof(PatchDescription)); in compare()
95 LruCache<PatchDescription, Patch*>::Iterator i(mCache); in clearCache()
111 LruCache<PatchDescription, Patch*>::Iterator i(mCache); in remove()
113 const PatchDescription& key = i.key(); in remove()
245 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); in get()