aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dump_record.cpp
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2016-02-10 11:15:21 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-10 11:15:21 -0800
commit026388a01864c74208ad57d1ba4f711602d101c6 (patch)
tree52c2bc5b1e93002f6011feb56c35996c5f0b7d61 /tools/dump_record.cpp
parentb5b497423c581cda24f65dcc7b274fe79ef79588 (diff)
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. BUG=skia:4691 BUG=skia:4290 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1671193002 Review URL: https://codereview.chromium.org/1671193002
Diffstat (limited to 'tools/dump_record.cpp')
-rw-r--r--tools/dump_record.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/dump_record.cpp b/tools/dump_record.cpp
index 029638efb1..96b893735b 100644
--- a/tools/dump_record.cpp
+++ b/tools/dump_record.cpp
@@ -6,7 +6,6 @@
*/
#include "DumpRecord.h"
-#include "LazyDecodeBitmap.h"
#include "SkCommandLineFlags.h"
#include "SkPicture.h"
#include "SkPictureRecorder.h"
@@ -50,8 +49,7 @@ int tool_main(int argc, char** argv) {
SkDebugf("Could not read %s.\n", FLAGS_skps[i]);
return 1;
}
- SkAutoTUnref<SkPicture> src(
- SkPicture::CreateFromStream(stream, sk_tools::LazyDecodeBitmap));
+ SkAutoTUnref<SkPicture> src(SkPicture::CreateFromStream(stream));
if (!src) {
SkDebugf("Could not read %s as an SkPicture.\n", FLAGS_skps[i]);
return 1;