2c7c7ee47d
Removed SkBitmapFactory since no clients were using it. New cache selection mechanism can simply pass a SkDiscardableMemory::Factory into the SkDiscardablePixelRef if non-default SkDiscardableMemory should be used. Removed BitmapFactoryTest. SkDiscardableMemory::Factory interface. Android will need this functionality in the future inside their BitmapFactory. Removed SkLazyPixelRef, since it's functionality is now subsumed into SkDiscardablePixelRef. Removed LazyPixelRef test. Modified SkDiscardablePixelRef to optionally allow it to use a SkDiscardableMemory::Factory. This tiny change makes it a replacement for SkLazyPixelRef. This functioanlity is also necessary for moving Android over to SkDiscardablePixelRef from SkImageRef in a later CL. Added a test for this. SkDecodingImageGenerator::Install can optionally pass a factory in to SkDiscardablePixelRef. Removed SkImageCache, SkLruImageCache, and SkPurgeableImageCache. This functionality can be handled much more cleanly by SkDiscardableMemory. New SkDiscardableMemoryPool class to replace SkLruImageCache. In a later CL, we will replace SkImageRef_GlobalPool (used by android) as well. This is a concrete implementation of SkDiscardableMemory::Factory. Added a test for this. modified gm/factory.cpp to remove dependnce on SkBitmapFactory + SkLruImageCache. Now uses SkDecodingImageGenerator + SkDiscardablePixelRef + SkDiscardableMemoryPool. SkImageDecoder::Target replaces SkBitmapFactory::Target. The DecodeMemoryToTarget function may disappear in the future. Moved SkLazyCachingPixelRef::DecodeProc replaces SkBitmapFactory::DecodeProc. This is a short term change, since another CL changes SkLazyCachingPixelRef to use SkImageGenerator instead of DecodeProc. Modified DrawBitmapRectTest to use SkDiscardablePixelRef instead of SkLazyPixelRef. tools/LazyDecodeBitmap.cpp now uses SkDecodingImageGenerator + SkDiscardablePixelRef instead of a SkBitmapFactory. bench_pictures uses the Global SkDiscardableMemoryPool instead of a global gLruImageCache. R=reed@google.com, scroggo@google.com Review URL: https://codereview.chromium.org/103033002 git-svn-id: http://skia.googlecode.com/svn/trunk@12515 2bbb7eff-a529-9590-31e7-b0007b416f81 |
||
---|---|---|
.. | ||
copyright | ||
flags | ||
lua | ||
skpdiff | ||
tests | ||
__init__.py | ||
bbh_shootout.cpp | ||
bench_pictures_cfg_helper.py | ||
bench_pictures_main.cpp | ||
bench_pictures.cfg | ||
build-tot-chromium.sh | ||
buildbot_globals.py | ||
CopyTilesRenderer.cpp | ||
CopyTilesRenderer.h | ||
coverage.sh | ||
doxygen_footer.txt | ||
filtermain.cpp | ||
find_bad_images_in_skps.py | ||
find_mac_sdk.py | ||
gcov_shim | ||
generate_fir_coeff.py | ||
git-skia-verify | ||
jsondiff.py | ||
LazyDecodeBitmap.cpp | ||
LazyDecodeBitmap.h | ||
merge_static_libs.py | ||
path_utils.cpp | ||
path_utils.h | ||
PdfRenderer.cpp | ||
PdfRenderer.h | ||
picture_utils.cpp | ||
picture_utils.h | ||
PictureBenchmark.cpp | ||
PictureBenchmark.h | ||
PictureRenderer.cpp | ||
PictureRenderer.h | ||
PictureRenderingFlags.cpp | ||
PictureRenderingFlags.h | ||
pinspect.cpp | ||
rebaseline.py | ||
reformat-json.py | ||
render_pdfs_main.cpp | ||
render_pictures_main.cpp | ||
roll_autogen.sh | ||
sanitize_source_files.py | ||
skdiff_html.cpp | ||
skdiff_html.h | ||
skdiff_image.cpp | ||
skdiff_main.cpp | ||
skdiff_utils.cpp | ||
skdiff_utils.h | ||
skdiff.cpp | ||
skdiff.h | ||
skhello.cpp | ||
skimage_main.cpp | ||
submit_try | ||
submit_try.bat | ||
svn.py | ||
svndiff.py | ||
test_image_decoder.cpp | ||
test_pdfs.py | ||
test_pictures.py | ||
test_rendering.py | ||
update-doxygen.sh | ||
valgrind.supp | ||
verify_images_for_gm_results.py | ||
win_dbghelp.cpp | ||
win_dbghelp.h | ||
win_lcid.cpp | ||
xsan_build |