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

Issue 6820103: Add a new PictureRenderer that draws the picture then breaks up into tiles. (Closed)

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

Description

Add a new PictureRenderer that draws the picture then breaks up into tiles. Committed: https://code.google.com/p/skia/source/detail?r=6333

Patch Set 1 #

Total comments: 11

Patch Set 2 : respond to comments #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -29 lines) Patch
M gyp/tools.gyp View 1 chunk +3 lines, -0 lines 0 comments Download
A tools/CopyTilesRenderer.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
A tools/CopyTilesRenderer.cpp View 1 1 chunk +85 lines, -0 lines 0 comments Download
M tools/bench_pictures_main.cpp View 1 2 10 chunks +80 lines, -14 lines 0 comments Download
M tools/render_pictures_main.cpp View 1 2 3 12 chunks +76 lines, -15 lines 0 comments Download

Messages

Total messages: 4
Leon
11 years, 8 months ago (2012-11-06 19:45:48 UTC) #1
EricB
Looks good, but with feature request. Want Rob's approval as well. https://codereview.appspot.com/6820103/diff/1/tools/CopyTilesRenderer.cpp File tools/CopyTilesRenderer.cpp (right): ...
11 years, 8 months ago (2012-11-06 19:57:43 UTC) #2
robertphillips
LGTM + some questions & nits https://codereview.appspot.com/6820103/diff/1/tools/CopyTilesRenderer.cpp File tools/CopyTilesRenderer.cpp (right): https://codereview.appspot.com/6820103/diff/1/tools/CopyTilesRenderer.cpp#newcode29 tools/CopyTilesRenderer.cpp:29: fLargeTileHeight = 4 ...
11 years, 8 months ago (2012-11-06 20:31:16 UTC) #3
Leon
11 years, 8 months ago (2012-11-06 23:04:32 UTC) #4
https://codereview.appspot.com/6820103/diff/1/tools/CopyTilesRenderer.cpp
File tools/CopyTilesRenderer.cpp (right):

https://codereview.appspot.com/6820103/diff/1/tools/CopyTilesRenderer.cpp#new...
tools/CopyTilesRenderer.cpp:29: fLargeTileHeight = 4 * this->getTileHeight();
On 2012/11/06 20:31:16, robertphillips wrote:
> 4x4 is probably the correct default but I second having it configurable.

Done.

https://codereview.appspot.com/6820103/diff/1/tools/CopyTilesRenderer.cpp#new...
tools/CopyTilesRenderer.cpp:41: // Draw the picture
On 2012/11/06 20:31:16, robertphillips wrote:
> Do we need this clear? It looks like all the skps clear for themselves.

No. Removed.

https://codereview.appspot.com/6820103/diff/1/tools/bench_pictures_main.cpp
File tools/bench_pictures_main.cpp (right):

https://codereview.appspot.com/6820103/diff/1/tools/bench_pictures_main.cpp#n...
tools/bench_pictures_main.cpp:52: SkDebugf(
On 2012/11/06 20:31:16, robertphillips wrote:
> Why do we have '[]'s in the usage? 

I don't know why Keyar originally added them. Originally they had '%'s in them
(which I removed because they didn't get printed, being escape characters),
which may have been to show that a percentage could be used. The text states as
much, so I can remove entirely.

> If this needs correcting could you also fix
> the spelling of 'minWidht'?

Sure.

https://codereview.appspot.com/6820103/diff/1/tools/bench_pictures_main.cpp#n...
tools/bench_pictures_main.cpp:276: if (argv >= stop) {
On 2012/11/06 20:31:16, robertphillips wrote:
> need %s\n", mode); in logError 

Done.

https://codereview.appspot.com/6820103/diff/1/tools/render_pictures_main.cpp
File tools/render_pictures_main.cpp (right):

https://codereview.appspot.com/6820103/diff/1/tools/render_pictures_main.cpp#...
tools/render_pictures_main.cpp:221: if (argv >= stop) {
On 2012/11/06 20:31:16, robertphillips wrote:
> %s\n", mode);

Done.
Sign in to reply to this message.

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