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

Issue 6521043: Reuse one canvas for every tile in bench_pictures (in single threaded mode). (Closed)

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

Description

Reuse one canvas for every tile in bench_pictures (in single threaded mode). Turn off multi threaded option for now. In bench_pictures, do not create a large canvas, since we never use it. Remove unused functions on TiledPictureRenderer. Committed: https://code.google.com/p/skia/source/detail?r=5583

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -82 lines) Patch
M tools/PictureRenderer.h View 4 chunks +2 lines, -21 lines 0 comments Download
M tools/PictureRenderer.cpp View 1 2 11 chunks +66 lines, -61 lines 0 comments Download

Messages

Total messages: 5
Leon
This will use only one tile for tiled drawing in bench_pictures. render_pictures will still create ...
11 years, 9 months ago (2012-09-14 21:14:34 UTC) #1
bsalomon
On 2012/09/14 21:14:34, scroggo-work wrote: > This will use only one tile for tiled drawing ...
11 years, 9 months ago (2012-09-14 21:17:12 UTC) #2
EricB
LGTM with question/suggestion https://codereview.appspot.com/6521043/diff/1/tools/PictureRenderer.cpp File tools/PictureRenderer.cpp (right): https://codereview.appspot.com/6521043/diff/1/tools/PictureRenderer.cpp#newcode206 tools/PictureRenderer.cpp:206: tile_y_start += height) { Would this ...
11 years, 9 months ago (2012-09-14 21:25:06 UTC) #3
Leon
https://codereview.appspot.com/6521043/diff/1/tools/PictureRenderer.cpp File tools/PictureRenderer.cpp (right): https://codereview.appspot.com/6521043/diff/1/tools/PictureRenderer.cpp#newcode206 tools/PictureRenderer.cpp:206: tile_y_start += height) { On 2012/09/14 21:25:06, EricB wrote: ...
11 years, 9 months ago (2012-09-17 21:52:51 UTC) #4
EricB
11 years, 9 months ago (2012-09-18 11:52:36 UTC) #5
On 2012/09/17 21:52:51, scroggo-work wrote:
> https://codereview.appspot.com/6521043/diff/1/tools/PictureRenderer.cpp
> File tools/PictureRenderer.cpp (right):
> 
>
https://codereview.appspot.com/6521043/diff/1/tools/PictureRenderer.cpp#newco...
> tools/PictureRenderer.cpp:206: tile_y_start += height) {
> On 2012/09/14 21:25:06, EricB wrote:
> > Would this be more stable if we looped over indices and multiplied to get
the
> > tile boundaries, rather than doing a bunch of floating-point adds?
> 
> Now that I think about it, these numbers are actually integers, so I think it
> makes the most sense to leave them as integers until I create the rectangle.
In
> this case, I think addition is fine.
> 
> If you think using multiplication here is still better - it might be a little
> clearer, check out patch set 2.

LGTM at patch set 3.
Sign in to reply to this message.

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