SkResourceCache::GetAllocator() index8 and other color types handling
authoraleksandar.stojiljkovic <aleksandar.stojiljkovic@intel.com>
Tue, 10 Nov 2015 12:55:15 +0000 (04:55 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 10 Nov 2015 12:55:15 +0000 (04:55 -0800)
commit07e2692da3971960f8ae8adcd78ccb4bae7ab446
tree7f109e777adb635d8548e8f2e9a591049255a79e
parentd9ffaed6d21f85c717117904da26a2bac2295607
SkResourceCache::GetAllocator() index8 and other color types handling

Unit tests added to check all color types in SkOneShotDiscardablePixelref

SkResourceCacheTest seems to have been allways using default Heap Allocator.
 Fixed so that it uses private (not global that is) SkDiscardableMemory.

BUG=skia:4355

Review URL: https://codereview.chromium.org/1426753006
src/core/SkResourceCache.cpp
tests/CachedDecodingPixelRefTest.cpp
tests/SkResourceCacheTest.cpp