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

Issue 245763002: Adds an RTree data structure to gfx/geometry (Closed)

Created:
6 years, 8 months ago by luken
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adds an RTree data structure to gfx/geometry This code forked originally from code review 218843002. This patch introduces an implementation of a classical spatial database, the R*-Tree. This allows for efficient rectangle queries of void* keys associated with bounded boxes. BUG=353867 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267265

Patch Set 1 #

Patch Set 2 : now actually includes the RTree code ;) #

Patch Set 3 : adds OWNERS change #

Total comments: 80

Patch Set 4 : changes from view CL #

Patch Set 5 : [WIP] checkpointing work from piman's feedback #

Patch Set 6 : [WIP] move to whitebox testing #

Patch Set 7 : [WIP] back to home machine #

Patch Set 8 : [WIP] weekend work #

Patch Set 9 : ready for review, thanks #

Total comments: 10

Patch Set 10 : responding to piman early feedback, thanks #

Total comments: 13

Patch Set 11 : responding to pimans feedback, thanks #

Patch Set 12 : fixing some clang trybots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1916 lines, -0 lines) Patch
M ui/gfx/OWNERS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A ui/gfx/geometry/r_tree.h View 1 2 3 4 5 6 7 8 9 1 chunk +296 lines, -0 lines 0 comments Download
A ui/gfx/geometry/r_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +745 lines, -0 lines 0 comments Download
A ui/gfx/geometry/r_tree_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +869 lines, -0 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
luken
Thanks
6 years, 8 months ago (2014-04-21 20:35:02 UTC) #1
piman
https://codereview.chromium.org/245763002/diff/40001/ui/gfx/geometry/r_tree.cc File ui/gfx/geometry/r_tree.cc (right): https://codereview.chromium.org/245763002/diff/40001/ui/gfx/geometry/r_tree.cc#newcode87 ui/gfx/geometry/r_tree.cc:87: size_t number_to_remove, std::list<Node*>* nodes) { Why not std::vector<Node*>? You ...
6 years, 8 months ago (2014-04-21 23:59:30 UTC) #2
luken
PTAL https://codereview.chromium.org/245763002/diff/40001/ui/gfx/geometry/r_tree.cc File ui/gfx/geometry/r_tree.cc (right): https://codereview.chromium.org/245763002/diff/40001/ui/gfx/geometry/r_tree.cc#newcode87 ui/gfx/geometry/r_tree.cc:87: size_t number_to_remove, std::list<Node*>* nodes) { On 2014/04/21 23:59:31, ...
6 years, 7 months ago (2014-04-28 01:33:34 UTC) #3
piman
Early feedback, I still need to look at the tests. https://codereview.chromium.org/245763002/diff/40001/ui/gfx/geometry/r_tree.h File ui/gfx/geometry/r_tree.h (right): https://codereview.chromium.org/245763002/diff/40001/ui/gfx/geometry/r_tree.h#newcode45 ...
6 years, 7 months ago (2014-04-28 18:24:28 UTC) #4
luken
Thanks for continuing to look at this. https://codereview.chromium.org/245763002/diff/40001/ui/gfx/geometry/r_tree.h File ui/gfx/geometry/r_tree.h (right): https://codereview.chromium.org/245763002/diff/40001/ui/gfx/geometry/r_tree.h#newcode45 ui/gfx/geometry/r_tree.h:45: void Query(const ...
6 years, 7 months ago (2014-04-29 21:01:03 UTC) #5
piman
LGTM+nits https://codereview.chromium.org/245763002/diff/170001/ui/gfx/geometry/r_tree_unittest.cc File ui/gfx/geometry/r_tree_unittest.cc (right): https://codereview.chromium.org/245763002/diff/170001/ui/gfx/geometry/r_tree_unittest.cc#newcode69 ui/gfx/geometry/r_tree_unittest.cc:69: Rect check_bounds(0, 0, 0, 0); nit: Rect check_bounds; ...
6 years, 7 months ago (2014-04-29 22:43:06 UTC) #6
luken
Thanks so much, your feedback really made this CL much better! https://codereview.chromium.org/245763002/diff/170001/ui/gfx/geometry/r_tree_unittest.cc File ui/gfx/geometry/r_tree_unittest.cc (right): ...
6 years, 7 months ago (2014-04-29 23:22:47 UTC) #7
piman
lgtm https://codereview.chromium.org/245763002/diff/170001/ui/gfx/geometry/r_tree_unittest.cc File ui/gfx/geometry/r_tree_unittest.cc (right): https://codereview.chromium.org/245763002/diff/170001/ui/gfx/geometry/r_tree_unittest.cc#newcode347 ui/gfx/geometry/r_tree_unittest.cc:347: EXPECT_TRUE(removals[0]->key() != removals[1]->key()); On 2014/04/29 23:22:47, luken wrote: ...
6 years, 7 months ago (2014-04-29 23:38:15 UTC) #8
cpu_(ooo_6.6-7.5)
The CQ bit was checked by cpu@chromium.org
6 years, 7 months ago (2014-04-30 00:13:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/luken@chromium.org/245763002/200001
6 years, 7 months ago (2014-04-30 00:15:01 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-30 00:45:21 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-04-30 00:45:22 UTC) #12
luken
lgtm (since I am now owner of r_tree I have to lgtm my own CL)
6 years, 7 months ago (2014-04-30 00:50:52 UTC) #13
luken
lgtm
6 years, 7 months ago (2014-04-30 00:51:55 UTC) #14
sky
Rubber stamp LGTM
6 years, 7 months ago (2014-04-30 17:27:21 UTC) #15
cpu_(ooo_6.6-7.5)
The CQ bit was checked by cpu@chromium.org
6 years, 7 months ago (2014-04-30 17:31:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/luken@chromium.org/245763002/200001
6 years, 7 months ago (2014-04-30 17:31:50 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 18:09:05 UTC) #18
Message was sent while issue was closed.
Change committed as 267265

Powered by Google App Engine
This is Rietveld 408576698