skia2/include
scroggo@google.com bb281f7f96 Improvements/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.

Review URL: https://codereview.chromium.org/12433020

git-svn-id: http://skia.googlecode.com/svn/trunk@8207 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-18 21:37:39 +00:00
..
animator Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
config Re-enable inst counting in debug builds. 2013-01-15 20:37:04 +00:00
core reland 8200 w/ fix for android (use fullpath instead of path) 2013-03-18 21:08:46 +00:00
device/xps Formatting cleanup: remove extra whitespace 2012-01-28 01:45:11 +00:00
effects Added toString to SkMaskFilter-derived classes 2013-03-18 17:53:38 +00:00
gpu Increase bits for effect attribute key. 2013-03-13 21:05:14 +00:00
images fix window's build errors 2013-03-14 15:18:08 +00:00
lazy Improvements/additions to SkImageCache/SkLazyPixelRef. 2013-03-18 21:37:39 +00:00
pdf Update flag to reflect actual meaning. 2013-03-12 19:53:16 +00:00
pipe Adding a silent playback option to SkGPipeRead 2012-09-20 19:35:43 +00:00
ports Improvements/additions to SkImageCache/SkLazyPixelRef. 2013-03-18 21:37:39 +00:00
svg Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
text Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
utils Unify wgl context creation. 2013-03-05 19:13:09 +00:00
views Fixing some warnings on Linux 2013-03-07 20:52:59 +00:00
xml Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00