From 1d225f2b3352bb8f24661f62d2bd1cc7386a2f86 Mon Sep 17 00:00:00 2001 From: "skia.committer@gmail.com" Date: Fri, 14 Sep 2012 02:01:10 +0000 Subject: Sanitizing source files in Skia_Periodic_House_Keeping git-svn-id: http://skia.googlecode.com/svn/trunk@5539 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tools/render_pictures_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/render_pictures_main.cpp b/tools/render_pictures_main.cpp index 613ec94c03..87d5d4b79e 100644 --- a/tools/render_pictures_main.cpp +++ b/tools/render_pictures_main.cpp @@ -126,7 +126,7 @@ static void render_picture(const SkString& inputPath, const SkString& outputDir, SkDebugf("drawing... [%i %i] %s\n", picture.width(), picture.height(), inputPath.c_str()); - + // rescale to avoid memory issues allcoating a very large offscreen SkPicture* pic = &picture; @@ -136,13 +136,13 @@ static void render_picture(const SkString& inputPath, const SkString& outputDir, if (area_too_big(picture.width(), picture.height(), &newSize)) { pic = new SkPicture; aur.reset(pic); - + SkCanvas* canvas = pic->beginRecording(newSize.width(), newSize.height()); SkScalar scale = SkIntToScalar(newSize.width()) / picture.width(); canvas->scale(scale, scale); canvas->drawPicture(picture); pic->endRecording(); - + SkDebugf("... rescaling to [%d %d] to avoid overly large allocations\n", newSize.width(), newSize.height()); } -- cgit v1.2.3