Descriptionretool image cache to be generic cache, allowing the client to subclass "Rec", so they can provide a custom Key and arbitrary Value.
Follow-on CLs
- rename ScaledimageCache to something like GeneralCache
- explore if we can use call-backs or some mechanism to completely hide "lock/unlock", by forcing all clients to support "copying" their value out of the cache as the result of a Find.
Committed: https://skia.googlesource.com/skia/+/680fb9e8f10d24b5fe35c90338de37c57392f1aa
Patch Set 1 #Patch Set 2 : rebase #
Total comments: 6
Patch Set 3 : bitmapcache wrapper now hides any locking #Patch Set 4 : address comments from #2 #Patch Set 5 : clean up includes for bitmapcache #
Total comments: 1
Patch Set 6 : incorporate sizeof key into bytesUsed() #
Total comments: 1
Patch Set 7 : rebase + add comment in unlock #
Messages
Total messages: 18 (0 generated)
|