Remove automatic resizing in *_pictures
Review URL: https://codereview.appspot.com/6554045
git-svn-id: http://skia.googlecode.com/svn/trunk@5614 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp
index 5a7ff44..6066334 100644
--- a/tools/render_pictures_main.cpp
+++ b/tools/render_pictures_main.cpp
@@ -92,20 +92,16 @@
}
bool success = false;
- SkPicture* picture = SkNEW_ARGS(SkPicture, (&inputStream, &success));
- SkAutoTUnref<SkPicture> aur(picture);
+ SkPicture picture(&inputStream, &success);
if (!success) {
SkDebugf("Could not read an SkPicture from %s\n", inputPath.c_str());
return false;
}
- SkDebugf("drawing... [%i %i] %s\n", picture->width(), picture->height(),
+ SkDebugf("drawing... [%i %i] %s\n", picture.width(), picture.height(),
inputPath.c_str());
- // rescale to avoid memory issues allocating a very large offscreen
- sk_tools::resize_if_needed(&aur);
-
- renderer.init(aur);
+ renderer.init(&picture);
SkString outputPath;
make_output_filepath(&outputPath, outputDir, inputFilename);