diff options
author | 2012-09-14 02:01:10 +0000 | |
---|---|---|
committer | 2012-09-14 02:01:10 +0000 | |
commit | 1d225f2b3352bb8f24661f62d2bd1cc7386a2f86 (patch) | |
tree | d307eeefb03500f7df3ad58da5ebc3d4dc0f161e /tools | |
parent | 90f2d07d34a8078b615c2441dea7c09eacb67663 (diff) |
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5539 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rw-r--r-- | tools/render_pictures_main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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()); } |