DescriptionImprovements/additions to SkImageCache/SkLazyPixelRef.
SkPurgeableImageCache:
New image cache that uses virtual memory to store the pixels. Combines
features of SkAshmemImageCache (which has been removed) with SkPurgeableMemoryBlock, which has android and Mac versions.
SkImageCache:
Modified the API. pinCache now returns a status out parameter which
states whether the pinned memory retained the old data. This allows
allocAndPinCache to only be used for allocations.
Add a new debug only interface to purge unpinned data.
Updates to documentation, clarifying behavior.
Changed CachedStatus to MemoryStatus
SkLruImageCache:
Implement the new function purgeAllUnpinnedCaches and change implementation
of pinCache for the new behavior.
SkLazyPixelRef:
Rewrite onLockPixels to account for the new behavior of pinCache.
BitmapFactoryTest:
Test the new SkPurgeableImageCache.
Write tests which directly test the SkImageCaches.
Create a larger bitmap, since some of the SkImageCaches are designed
to handle large bitmaps.
bench_ and render_pictures:
Consolidate lazy_decode_bitmap into one function.
Allow using a flag to specify using the purgeable image cache.
Clean up some #includes.
Committed: https://code.google.com/p/skia/source/detail?r=8207
Patch Set 1 #Patch Set 2 : Modified a comment. #
Total comments: 5
Patch Set 3 : rebase #Patch Set 4 : in progress changes to unify purgeable image caches #Patch Set 5 : more cleanups #Patch Set 6 : #
Total comments: 6
Patch Set 7 : #Patch Set 8 : #Patch Set 9 : use ashmem_purge_all_caches #Patch Set 10 : Now depends on a separate CL for SkPurgeableMemoryBlock #Patch Set 11 : Remove unneeded file. #Patch Set 12 : #
Total comments: 2
Patch Set 13 : Respond to comments. #
Messages
Total messages: 12 (0 generated)
|