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

Issue 1491703003: [Courgette] Initial Implementation of LabelManager. (Closed)

Created:
5 years ago by huangs
Modified:
5 years ago
CC:
chromium-reviews, Sigurður Ásgeirsson
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Courgette] Initial Implementation of LabelManager This is part of the effort to reduce Courgette's peak memory. Main changes: - Moving Label to image_utils.h, and change Label::count_ from int to int32. - Adding utility class ConsecutiveRangeVisitor, with tests. - Adding LabelManager, with tests. The new code is not yet used in production. Committed: https://crrev.com/7a2fea2555a8014c4bdcdbc1119b97f98e057248 Cr-Commit-Position: refs/heads/master@{#363688}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Style fixes; use C++11 features where applicable. #

Total comments: 43

Patch Set 3 : Optimization and cleanups. #

Total comments: 7

Patch Set 4 : Fix sign issues in tests. #

Patch Set 5 : Fix signed/unsigned issue; make Label::count_ int32. #

Total comments: 12

Patch Set 6 : More signed/unsigned fix. #

Total comments: 2

Patch Set 7 : Fix comments; clean up test. #

Total comments: 2

Patch Set 8 : Fix const variable names in test; apply 'git cl format', keeping most recommendations. #

Total comments: 1

Patch Set 9 : Small spacing nit. #

Patch Set 10 : Sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+439 lines, -17 lines) Patch
M courgette/BUILD.gn View 4 chunks +5 lines, -0 lines 0 comments Download
M courgette/assembly_program.h View 1 chunk +1 line, -17 lines 0 comments Download
A courgette/consecutive_range_visitor.h View 1 2 3 4 5 6 7 8 1 chunk +57 lines, -0 lines 0 comments Download
A courgette/consecutive_range_visitor_unittest.cc View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
M courgette/courgette.gyp View 4 chunks +5 lines, -0 lines 0 comments Download
M courgette/image_utils.h View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
A courgette/label_manager.h View 1 2 3 4 5 6 1 chunk +64 lines, -0 lines 0 comments Download
A courgette/label_manager.cc View 1 2 3 4 5 6 7 1 chunk +74 lines, -0 lines 0 comments Download
A courgette/label_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +143 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (15 generated)
huangs
PTAL. Thanks!
5 years ago (2015-12-01 21:41:57 UTC) #3
grt (UTC plus 2)
initial comments https://codereview.chromium.org/1491703003/diff/1/courgette/consecutive_range_visitor.h File courgette/consecutive_range_visitor.h (right): https://codereview.chromium.org/1491703003/diff/1/courgette/consecutive_range_visitor.h#newcode49 courgette/consecutive_range_visitor.h:49: InputIterator tail_; please add lightweight comments https://codereview.chromium.org/1491703003/diff/1/courgette/consecutive_range_visitor.h#newcode52 ...
5 years ago (2015-12-02 19:03:41 UTC) #5
huangs
Thanks! Updated, PTAL. https://codereview.chromium.org/1491703003/diff/1/courgette/consecutive_range_visitor.h File courgette/consecutive_range_visitor.h (right): https://codereview.chromium.org/1491703003/diff/1/courgette/consecutive_range_visitor.h#newcode49 courgette/consecutive_range_visitor.h:49: InputIterator tail_; On 2015/12/02 19:03:40, grt ...
5 years ago (2015-12-02 20:51:02 UTC) #6
grt (UTC plus 2)
https://codereview.chromium.org/1491703003/diff/20001/courgette/consecutive_range_visitor.h File courgette/consecutive_range_visitor.h (right): https://codereview.chromium.org/1491703003/diff/20001/courgette/consecutive_range_visitor.h#newcode45 courgette/consecutive_range_visitor.h:45: while (head_ != end_ && *head_ == *tail_) is ...
5 years ago (2015-12-03 15:19:10 UTC) #7
huangs
Thanks! Updated, PTAL. https://codereview.chromium.org/1491703003/diff/20001/courgette/consecutive_range_visitor.h File courgette/consecutive_range_visitor.h (right): https://codereview.chromium.org/1491703003/diff/20001/courgette/consecutive_range_visitor.h#newcode45 courgette/consecutive_range_visitor.h:45: while (head_ != end_ && *head_ ...
5 years ago (2015-12-03 19:29:07 UTC) #8
huangs
Ping wfh@ for review, PTAL. Thanks!
5 years ago (2015-12-03 23:27:42 UTC) #9
Will Harris
This lgtm. I'd like to wait for an l-g-t-m from grt before you commit though. ...
5 years ago (2015-12-03 23:47:35 UTC) #10
huangs
Yeah I'll wait for grt@'s comments. Doing dry run in the mean time. Thanks! https://codereview.chromium.org/1491703003/diff/40001/courgette/label_manager_unittest.cc ...
5 years ago (2015-12-04 00:20:29 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491703003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491703003/60001
5 years ago (2015-12-04 00:23:22 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) ...
5 years ago (2015-12-04 02:30:42 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491703003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491703003/100001
5 years ago (2015-12-04 18:01:08 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-04 19:13:54 UTC) #20
grt (UTC plus 2)
https://codereview.chromium.org/1491703003/diff/20001/courgette/image_utils.h File courgette/image_utils.h (right): https://codereview.chromium.org/1491703003/diff/20001/courgette/image_utils.h#newcode23 courgette/image_utils.h:23: // TODO(sra): Make fields private and add setters and ...
5 years ago (2015-12-04 19:33:42 UTC) #21
Will Harris
https://codereview.chromium.org/1491703003/diff/40001/courgette/label_manager_unittest.cc File courgette/label_manager_unittest.cc (right): https://codereview.chromium.org/1491703003/diff/40001/courgette/label_manager_unittest.cc#newcode16 courgette/label_manager_unittest.cc:16: namespace { On 2015/12/04 19:33:41, grt wrote: > On ...
5 years ago (2015-12-04 19:35:36 UTC) #22
huangs
Updated, PTAL. https://codereview.chromium.org/1491703003/diff/40001/courgette/label_manager_unittest.cc File courgette/label_manager_unittest.cc (right): https://codereview.chromium.org/1491703003/diff/40001/courgette/label_manager_unittest.cc#newcode16 courgette/label_manager_unittest.cc:16: namespace { K, moving back. https://codereview.chromium.org/1491703003/diff/80001/courgette/image_utils.h File ...
5 years ago (2015-12-04 20:01:13 UTC) #23
grt (UTC plus 2)
lgtm w/ a nit https://codereview.chromium.org/1491703003/diff/120001/courgette/label_manager_unittest.cc File courgette/label_manager_unittest.cc (right): https://codereview.chromium.org/1491703003/diff/120001/courgette/label_manager_unittest.cc#newcode60 courgette/label_manager_unittest.cc:60: static const RVA test_targets_raw[] = ...
5 years ago (2015-12-04 20:29:02 UTC) #24
huangs
Thanks. Updated and submitting! https://codereview.chromium.org/1491703003/diff/20001/courgette/label_manager.cc File courgette/label_manager.cc (right): https://codereview.chromium.org/1491703003/diff/20001/courgette/label_manager.cc#newcode62 courgette/label_manager.cc:62: [](const Label& l) { return ...
5 years ago (2015-12-04 21:25:37 UTC) #25
huangs
https://codereview.chromium.org/1491703003/diff/140001/courgette/consecutive_range_visitor.h File courgette/consecutive_range_visitor.h (right): https://codereview.chromium.org/1491703003/diff/140001/courgette/consecutive_range_visitor.h#newcode45 courgette/consecutive_range_visitor.h:45: } Oh yeww, I'm moving brace back.
5 years ago (2015-12-04 21:27:15 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491703003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491703003/160001
5 years ago (2015-12-04 21:52:18 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/88617) linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years ago (2015-12-04 22:56:39 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491703003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491703003/180001
5 years ago (2015-12-07 21:46:01 UTC) #34
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years ago (2015-12-08 01:27:54 UTC) #36
commit-bot: I haz the power
5 years ago (2015-12-08 01:28:53 UTC) #38
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/7a2fea2555a8014c4bdcdbc1119b97f98e057248
Cr-Commit-Position: refs/heads/master@{#363688}

Powered by Google App Engine
This is Rietveld 408576698