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

Issue 1422523007: RangeMap: A int->int mapping with fast range operations (Closed)

Created:
5 years, 1 month ago by hubbe
Modified:
5 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, xhwang
Base URL:
https://chromium.googlesource.com/chromium/src.git@lru
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RangeMap: A int->int mapping with fast range operations This will be a component of the multibuffer media cache. Depends on https://codereview.chromium.org/1422523007 for test_random.h Media cache design doc: https://docs.google.com/document/d/15q6LTG0iDUe30QcoMtj4XNmKCa_7W_Q2uUIPFsJhS1E/edit BUG=514719 Committed: https://crrev.com/808e59a12eeb10d8c35a3e5ed60124473d7b19b9 Cr-Commit-Position: refs/heads/master@{#359428}

Patch Set 1 #

Patch Set 2 : merged #

Total comments: 24

Patch Set 3 : lots of comments added #

Total comments: 21

Patch Set 4 : comments addressed #

Total comments: 10

Patch Set 5 : rename RangeMap to IntervalMap & address comments #

Total comments: 14

Patch Set 6 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+564 lines, -0 lines) Patch
M media/blink/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A media/blink/interval_map.h View 1 2 3 4 5 1 chunk +290 lines, -0 lines 0 comments Download
A media/blink/interval_map_unittest.cc View 1 2 3 4 5 1 chunk +272 lines, -0 lines 0 comments Download
M media/blink/media_blink.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (5 generated)
hubbe
5 years, 1 month ago (2015-11-06 19:10:06 UTC) #3
liberato (no reviews please)
i think that all my comments have been addressed in previous rounds. lgtm % one ...
5 years, 1 month ago (2015-11-10 19:45:18 UTC) #4
xhwang
I stopped at RangeMapConstIterator and feel we should have more documentation about how the RangeMap ...
5 years, 1 month ago (2015-11-10 20:56:43 UTC) #6
xhwang
BTW, this range map is generic, and is not limited to int -> int. Shall ...
5 years, 1 month ago (2015-11-10 20:57:47 UTC) #7
hubbe
On 2015/11/10 20:57:47, xhwang wrote: > BTW, this range map is generic, and is not ...
5 years, 1 month ago (2015-11-10 21:53:46 UTC) #8
hubbe
https://codereview.chromium.org/1422523007/diff/20001/media/blink/rangemap.h File media/blink/rangemap.h (right): https://codereview.chromium.org/1422523007/diff/20001/media/blink/rangemap.h#newcode5 media/blink/rangemap.h:5: #ifndef MEDIA_BLINK_RANGEMAP_H_ On 2015/11/10 20:56:42, xhwang wrote: > Since ...
5 years, 1 month ago (2015-11-10 22:17:39 UTC) #9
xhwang
I stopped at IncrementRange(). I'll finish the review tonight or tomorrow. Here are the comments ...
5 years, 1 month ago (2015-11-11 01:05:06 UTC) #10
hubbe
https://chromiumcodereview.appspot.com/1422523007/diff/40001/media/blink/range_map.h File media/blink/range_map.h (right): https://chromiumcodereview.appspot.com/1422523007/diff/40001/media/blink/range_map.h#newcode15 media/blink/range_map.h:15: // A RangeMap<KeyType, ValueType> is similar to a std::map<KeyType, ...
5 years, 1 month ago (2015-11-11 01:29:24 UTC) #11
xhwang
lgtm % some comments https://chromiumcodereview.appspot.com/1422523007/diff/40001/media/blink/range_map.h File media/blink/range_map.h (right): https://chromiumcodereview.appspot.com/1422523007/diff/40001/media/blink/range_map.h#newcode15 media/blink/range_map.h:15: // A RangeMap<KeyType, ValueType> is ...
5 years, 1 month ago (2015-11-11 07:46:22 UTC) #12
hubbe
Renamed to IntervalMap. Will check in tomorrow around lunch unless there are additional comments. https://codereview.chromium.org/1422523007/diff/40001/media/blink/range_map.h ...
5 years, 1 month ago (2015-11-12 06:57:44 UTC) #13
xhwang
This IS much cleaner! Just have some followup questions/comments. https://chromiumcodereview.appspot.com/1422523007/diff/80001/media/blink/interval_map.h File media/blink/interval_map.h (right): https://chromiumcodereview.appspot.com/1422523007/diff/80001/media/blink/interval_map.h#newcode57 media/blink/interval_map.h:57: ...
5 years, 1 month ago (2015-11-12 18:24:59 UTC) #14
hubbe
https://chromiumcodereview.appspot.com/1422523007/diff/80001/media/blink/interval_map.h File media/blink/interval_map.h (right): https://chromiumcodereview.appspot.com/1422523007/diff/80001/media/blink/interval_map.h#newcode57 media/blink/interval_map.h:57: struct Range { On 2015/11/12 18:24:58, xhwang wrote: > ...
5 years, 1 month ago (2015-11-12 19:03:13 UTC) #15
xhwang
lgtm++, thanks!
5 years, 1 month ago (2015-11-12 19:33:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1422523007/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1422523007/100001
5 years, 1 month ago (2015-11-12 21:59:32 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 1 month ago (2015-11-12 23:21:52 UTC) #20
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 23:22:45 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/808e59a12eeb10d8c35a3e5ed60124473d7b19b9
Cr-Commit-Position: refs/heads/master@{#359428}

Powered by Google App Engine
This is Rietveld 408576698