Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Issue 23480002: R-Tree -- Don't sort draw commands unless specified. (Closed)

Created:
7 years, 3 months ago by sglez
Modified:
7 years, 3 months ago
Reviewers:
caryclark, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

R-Tree -- Don't sort draw commands unless specified. We expect Webkit and Bink to give us draw commands in a reasonable x,y order. We can maintain correctness and get a 17% recording speedup for the R-Tree by not sorting in x and y when bulk-loading. R=caryclark@google.com, reed@google.com Committed: https://code.google.com/p/skia/source/detail?r=11037

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : s/order/sort. Changed default rtree to sorted and specified unsorted in factory functions #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -36 lines) Patch
M bench/RTreeBench.cpp View 1 2 3 3 chunks +102 lines, -10 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkRTree.h View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M src/core/SkRTree.cpp View 1 2 3 chunks +26 lines, -14 lines 0 comments Download
M tests/RTreeTest.cpp View 1 2 3 4 6 chunks +18 lines, -8 lines 0 comments Download
M tools/PictureRenderer.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
sglez
Hi. This is the CL that makes the R-Tree avoid sorting. https://memegen.googleplex.com/5459606331457536 I read the ...
7 years, 3 months ago (2013-08-26 22:19:56 UTC) #1
caryclark
Looks fine. Please create a unit test that exercises the boolean -- to show that ...
7 years, 3 months ago (2013-08-27 11:54:17 UTC) #2
sglez
Added benches, Changed default behavior to use sorting, but changed the places where the R-Tree ...
7 years, 3 months ago (2013-08-29 18:57:54 UTC) #3
reed1
lgtm, but defer to cary https://codereview.chromium.org/23480002/diff/16001/src/core/SkRTree.h File src/core/SkRTree.h (right): https://codereview.chromium.org/23480002/diff/16001/src/core/SkRTree.h#newcode59 src/core/SkRTree.h:59: bool orderWhenBulkLoading = true); ...
7 years, 3 months ago (2013-08-29 19:17:34 UTC) #4
caryclark
https://codereview.chromium.org/23480002/diff/16001/bench/RTreeBench.cpp File bench/RTreeBench.cpp (right): https://codereview.chromium.org/23480002/diff/16001/bench/RTreeBench.cpp#newcode172 bench/RTreeBench.cpp:172: out.fBottom = 1 + rand.nextU() % (GENERATE_EXTENTS / 3); ...
7 years, 3 months ago (2013-08-29 19:22:18 UTC) #5
sglez
https://codereview.chromium.org/23480002/diff/16001/bench/RTreeBench.cpp File bench/RTreeBench.cpp (right): https://codereview.chromium.org/23480002/diff/16001/bench/RTreeBench.cpp#newcode172 bench/RTreeBench.cpp:172: out.fBottom = 1 + rand.nextU() % (GENERATE_EXTENTS / 3); ...
7 years, 3 months ago (2013-08-29 20:17:38 UTC) #6
caryclark
lgtm
7 years, 3 months ago (2013-08-29 20:38:40 UTC) #7
sglez
7 years, 3 months ago (2013-08-30 17:27:56 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 manually as r11037 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698