Make SkPicture/SkImageGenerator default to SkCodec
authormsarett <msarett@google.com>
Wed, 17 Feb 2016 18:02:29 +0000 (10:02 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Feb 2016 18:02:29 +0000 (10:02 -0800)
commit8715d47e247bf890ee78af0774ae7e8698146b67
treeaa8b25a8353ccd96e6eccb08f22457a1d89846e0
parentfeec878e850850cb0a092a765e3af0f5a3fa2a42
Make SkPicture/SkImageGenerator default to SkCodec

Remove reference to SkImageDecoder from SkPicture. Make the default
InstallPixelRefProc passed to CreateFromStream use
SkImageGenerator::NewFromEncoded instead.

Make SkImageGenerator::NewFromEncoded create an SkCodecImageGenerator.
Remove the old version that used SkImageDecoder.

Remove all versions of lazy_decode_bitmap/LazyDecodeBitmap. The default
now behaves lazily.

Update all clients to use the default.

Move SkImageDecoderGenerator into KtxTest.cpp, and use it directly.

This is a rebased version of:
https://codereview.chromium.org/1671193002/

TBR=reed@google.com

BUG=skia:4691
BUG=skia:4290
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1699183004

Review URL: https://codereview.chromium.org/1699183004
18 files changed:
bench/ETCBitmapBench.cpp
dm/DMSrcSink.cpp
gyp/codec.gyp
gyp/images.gyp
gyp/tools.gyp
include/core/SkPicture.h
public.bzl
src/core/SkPicture.cpp
src/images/SkImageDecoder_ktx.cpp
src/ports/SkImageGenerator_skia.cpp
tests/KtxTest.cpp
tests/PictureTest.cpp
tools/LazyDecodeBitmap.cpp [deleted file]
tools/LazyDecodeBitmap.h [deleted file]
tools/dump_record.cpp
tools/gpuveto.cpp
tools/lua/lua_pictures.cpp
tools/pinspect.cpp