Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(533)

Issue 6495125: Enable automatic rescaling in bench_pictures (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by EricB
Modified:
12 years, 3 months ago
Reviewers:
Leon, robertphillips, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Enable automatic rescaling in bench_pictures bench_pictures with "--device gpu" is failing because we're trying to allocate too much GPU memory. Move the recently-added scaling code into picture_utils and share it between render_pictures and bench_pictures. Committed: https://code.google.com/p/skia/source/detail?r=5543

Patch Set 1 #

Total comments: 17

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -48 lines) Patch
M gyp/tools.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M tools/bench_pictures_main.cpp View 1 2 1 chunk +8 lines, -4 lines 0 comments Download
M tools/picture_utils.h View 1 2 chunks +12 lines, -1 line 0 comments Download
M tools/picture_utils.cpp View 1 2 2 chunks +45 lines, -0 lines 0 comments Download
M tools/render_pictures_main.cpp View 1 2 2 chunks +6 lines, -43 lines 0 comments Download

Messages

Total messages: 7
EricB
12 years, 3 months ago (2012-09-13 20:59:57 UTC) #1
Leon
https://codereview.appspot.com/6495125/diff/1/tools/bench_pictures_main.cpp File tools/bench_pictures_main.cpp (right): https://codereview.appspot.com/6495125/diff/1/tools/bench_pictures_main.cpp#newcode112 tools/bench_pictures_main.cpp:112: SkPicture* picture = new SkPicture(&inputStream); SkNEW_ARGS. https://codereview.appspot.com/6495125/diff/1/tools/bench_pictures_main.cpp#newcode120 tools/bench_pictures_main.cpp:120: picture->height(), ...
12 years, 3 months ago (2012-09-13 21:31:40 UTC) #2
EricB
Uploaded patch set 2. https://codereview.appspot.com/6495125/diff/1/tools/bench_pictures_main.cpp File tools/bench_pictures_main.cpp (right): https://codereview.appspot.com/6495125/diff/1/tools/bench_pictures_main.cpp#newcode112 tools/bench_pictures_main.cpp:112: SkPicture* picture = new SkPicture(&inputStream); ...
12 years, 3 months ago (2012-09-13 21:57:24 UTC) #3
robertphillips
https://codereview.appspot.com/6495125/diff/1/tools/picture_utils.cpp File tools/picture_utils.cpp (right): https://codereview.appspot.com/6495125/diff/1/tools/picture_utils.cpp#newcode122 tools/picture_utils.cpp:122: picture->ref(); drawPicture takes a SkPicture& so it shouldn't be ...
12 years, 3 months ago (2012-09-14 12:10:04 UTC) #4
EricB
Uploaded patch set 3. https://codereview.appspot.com/6495125/diff/3002/tools/picture_utils.cpp File tools/picture_utils.cpp (right): https://codereview.appspot.com/6495125/diff/3002/tools/picture_utils.cpp#newcode134 tools/picture_utils.cpp:134: newSize.width(), newSize.height()); On 2012/09/14 12:10:04, ...
12 years, 3 months ago (2012-09-14 12:38:25 UTC) #5
robertphillips
LGTM - but I defer to Leon
12 years, 3 months ago (2012-09-14 12:40:02 UTC) #6
Leon
12 years, 3 months ago (2012-09-14 14:29:22 UTC) #7
On 2012/09/14 12:40:02, robertphillips wrote:
> LGTM - but I defer to Leon

LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b