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

Issue 6820093: Adding SkTileGrid: a new subclass of BBoxHierarchy, optimized for tiled playback. (Closed)

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

Description

Adding SkTileGrid: a new subclass of BBoxHierarchy, optimized for tiled playback. Committed: https://code.google.com/p/skia/source/detail?r=6314

Patch Set 1 #

Total comments: 11

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -5 lines) Patch
M gyp/core.gypi View 1 chunk +3 lines, -1 line 0 comments Download
A src/core/SkTileGrid.h View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
A src/core/SkTileGrid.cpp View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
M tools/PictureRenderer.h View 5 chunks +11 lines, -1 line 0 comments Download
M tools/PictureRenderer.cpp View 1 2 chunks +26 lines, -0 lines 0 comments Download
M tools/bench_pictures_main.cpp View 1 8 chunks +34 lines, -3 lines 0 comments Download

Messages

Total messages: 11
junov1
11 years, 8 months ago (2012-11-05 17:55:43 UTC) #1
reed1
is this just a check-point, or do you have new benches or tests that exercise ...
11 years, 8 months ago (2012-11-05 18:07:54 UTC) #2
junov
On 2012/11/05 18:07:54, reed1 wrote: > is this just a check-point, or do you have ...
11 years, 8 months ago (2012-11-05 18:22:23 UTC) #3
Leon
https://codereview.appspot.com/6820093/diff/1/src/core/SkTileGrid.cpp File src/core/SkTileGrid.cpp (right): https://codereview.appspot.com/6820093/diff/1/src/core/SkTileGrid.cpp#newcode21 src/core/SkTileGrid.cpp:21: new (&fTileData[i]) SkTDArray<SkTDArray<void *>>(); SkNEW_PLACEMENT https://codereview.appspot.com/6820093/diff/1/src/core/SkTileGrid.cpp#newcode24 src/core/SkTileGrid.cpp:24: new (&fTileData[i][j]) ...
11 years, 8 months ago (2012-11-05 18:28:04 UTC) #4
junov1
Patch
11 years, 8 months ago (2012-11-05 20:05:14 UTC) #5
Leon
lgtm
11 years, 8 months ago (2012-11-05 20:17:38 UTC) #6
reed1
did you mean to revert the change to SkTDArray? https://codereview.appspot.com/6820093/diff/16/src/core/SkTileGrid.h File src/core/SkTileGrid.h (right): https://codereview.appspot.com/6820093/diff/16/src/core/SkTileGrid.h#newcode50 src/core/SkTileGrid.h:50: ...
11 years, 8 months ago (2012-11-05 20:27:49 UTC) #7
junov1
> https://codereview.appspot.com/6820093/diff/16/src/core/SkTileGrid.h#newcode50 > src/core/SkTileGrid.h:50: int fTileWidth, fTileHeight, fXTileCount, fYTileCount; > Not sure we can handle ...
11 years, 8 months ago (2012-11-05 20:33:16 UTC) #8
junov1
Patch 3 reverts SkTDArray. Also, I could just use a dynamically allocated C-style array for ...
11 years, 8 months ago (2012-11-05 20:36:16 UTC) #9
junov1
Patch! Got rid of nested SkTDArrays. Result: simpler code, fewer malloc calls.
11 years, 8 months ago (2012-11-05 20:56:26 UTC) #10
reed1
11 years, 8 months ago (2012-11-06 18:21:35 UTC) #11
as per chat, lets make it very very clear that this subclass *only* works if the
query rect matches only 1 tile, and is suboptimal if the query is smaller than
one tile.

other than that, lgtm.

I still am hopeful for a robust competitor to rtree (KD tree?) in the future...
Sign in to reply to this message.

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