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

Unified Diff: dm/DM.cpp

Issue 448263002: DM: conserve memory when using --skps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | dm/DMSKPTask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 6256d0d856157595b929e51fd3336cab74d5f0a7..081c0f05e17c486939d0d16083ce97890e827172 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -2,6 +2,7 @@
// For a high-level overview, please see dm/README.
#include "CrashHandler.h"
+#include "LazyDecodeBitmap.h"
#include "SkCommonFlags.h"
#include "SkForceLinking.h"
#include "SkGraphics.h"
@@ -143,7 +144,8 @@ static void kick_off_skps(const SkTArray<SkString>& skps,
SkDebugf("Could not read %s.\n", skps[i].c_str());
exit(1);
}
- SkAutoTUnref<SkPicture> pic(SkPicture::CreateFromStream(stream.get()));
+ SkAutoTUnref<SkPicture> pic(
+ SkPicture::CreateFromStream(stream.get(), &sk_tools::LazyDecodeBitmap));
if (pic.get() == NULL) {
SkDebugf("Could not read %s as an SkPicture.\n", skps[i].c_str());
exit(1);
« no previous file with comments | « no previous file | dm/DMSKPTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698