| Index: tools/render_pdfs_main.cpp
|
| diff --git a/tools/render_pdfs_main.cpp b/tools/render_pdfs_main.cpp
|
| index be294399ec24e576ec46f5be1f35ad43780dcc42..deabb3a0ac8c7c0d37bbab54b15534c9bbfd60f9 100644
|
| --- a/tools/render_pdfs_main.cpp
|
| +++ b/tools/render_pdfs_main.cpp
|
| @@ -19,6 +19,7 @@
|
| #include "SkTSort.h"
|
| #include "PdfRenderer.h"
|
| #include "picture_utils.h"
|
| +#include "LazyDecodeBitmap.h"
|
|
|
| __SK_FORCE_IMAGE_DECODER_LINKING;
|
|
|
| @@ -160,7 +161,9 @@ static bool render_pdf(const SkString& inputPath, const SkString& outputDir,
|
| return false;
|
| }
|
|
|
| - SkAutoTUnref<SkPicture> picture(SkPicture::CreateFromStream(&inputStream));
|
| + SkAutoTUnref<SkPicture> picture(
|
| + SkPicture::CreateFromStream(
|
| + &inputStream, &sk_tools::LazyDecodeBitmap));
|
|
|
| if (NULL == picture.get()) {
|
| SkDebugf("Could not read an SkPicture from %s\n", inputPath.c_str());
|
|
|