Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: tools/render_pdfs_main.cpp

Issue 433063002: Memory improvements to render_pdfs; better DM pool size defaults (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: default DM_POOL_SIZE smalle ron android Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/lazy/SkDiscardableMemoryPool.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « src/lazy/SkDiscardableMemoryPool.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698