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

Issue 6933044: Modifying SkTileGrid to support arbitrary query rectangles. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by junov1
Modified:
12 years, 1 month ago
Reviewers:
TomH, reed1
CC:
skia-review_googlegroups.com, bsalomon
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Modifying SkTileGrid to support arbitrary query rectangles. Exposing SkTileGrid functionality in the public API through SkTileGridPicture. This patch also makes TileGrid and Rtree testable in gm, which revealed errors. TEST=gm with '--tileGrid' BUG=http://code.google.com/p/chromium/issues/detail?id=164636 Committed: https://code.google.com/p/skia/source/detail?r=6783

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -50 lines) Patch
M gm/gm.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gm/gmmain.cpp View 8 chunks +29 lines, -9 lines 0 comments Download
M gyp/core.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
A include/core/SkTileGridPicture.h View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M src/core/SkTileGrid.h View 1 2 3 4 3 chunks +58 lines, -4 lines 0 comments Download
M src/core/SkTileGrid.cpp View 1 2 3 4 4 chunks +39 lines, -11 lines 0 comments Download
A src/core/SkTileGridPicture.cpp View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M tests/TileGridTest.cpp View 1 2 3 4 chunks +76 lines, -1 line 0 comments Download
M tools/PictureRenderer.cpp View 1 3 chunks +3 lines, -25 lines 0 comments Download

Messages

Total messages: 16
junov1
12 years, 1 month ago (2012-12-11 16:38:07 UTC) #1
TomH
It's really not clear to me why you had to templatize, or why your merge ...
12 years, 1 month ago (2012-12-11 16:41:02 UTC) #2
junov1
A naive implementation of an order-preserving merge would be O(n^2). This one is O(n). The ...
12 years, 1 month ago (2012-12-11 16:49:45 UTC) #3
reed1
https://codereview.appspot.com/6933044/diff/4001/src/core/SkTileGrid.cpp File src/core/SkTileGrid.cpp (right): https://codereview.appspot.com/6933044/diff/4001/src/core/SkTileGrid.cpp#newcode64 src/core/SkTileGrid.cpp:64: // The +1/-1 is to compensate for the outset ...
12 years, 1 month ago (2012-12-11 18:35:40 UTC) #4
reed1
1. have you tried just templating the search method, rather than then entire class? e.g. ...
12 years, 1 month ago (2012-12-11 18:45:09 UTC) #5
junov1
On 2012/12/11 18:45:09, reed1 wrote: > 1. have you tried just templating the search method, ...
12 years, 1 month ago (2012-12-11 21:32:23 UTC) #6
junov1
Patch.
12 years, 1 month ago (2012-12-12 15:22:26 UTC) #7
TomH
Test is out of date? Still templated, chunks commented out, ... What about the helper ...
12 years, 1 month ago (2012-12-12 15:26:51 UTC) #8
junov1
On 2012/12/12 15:26:51, TomH wrote: > Test is out of date? Still templated, chunks commented ...
12 years, 1 month ago (2012-12-12 19:01:09 UTC) #9
junov1
Patch
12 years, 1 month ago (2012-12-12 20:10:23 UTC) #10
reed1
works for me. should we wait for tom?
12 years, 1 month ago (2012-12-12 20:49:27 UTC) #11
junov1
On 2012/12/12 20:49:27, reed1 wrote: > works for me. should we wait for tom? I ...
12 years, 1 month ago (2012-12-12 21:18:56 UTC) #12
TomH
I think there's a memory leak; modulo that, LGTM enough to commit in face of ...
12 years, 1 month ago (2012-12-13 10:38:32 UTC) #13
junov1
There is no SkNEW macro for alloca, and it is not leakable. FYI: alloca allocates ...
12 years, 1 month ago (2012-12-13 15:02:53 UTC) #14
junov1
Patch
12 years, 1 month ago (2012-12-13 16:17:28 UTC) #15
TomH
12 years, 1 month ago (2012-12-13 16:22:10 UTC) #16
Do it!
Sign in to reply to this message.

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