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

Issue 2352393002: cc: Detach spiral iterator implementation to separate file. (Closed)

Created:
4 years, 2 months ago by prashant.n
Modified:
4 years, 2 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Detach spiral iterator implementation to separate file. Currently SpiralDifferenceIterator implements logic based on directions around the center rect. This logic does not take care of aspect ratios of tile size. To consider the aspect ratios during iteration new logic has to be implanted. Until the new logic gets tested thoroughly we need the current logic. This patch detaches the current spiral iterator to separate classes (SpiralIterator and ReverseSpiralIterator) and moves them to their own files making SpiralDifferenceIterator thinner. Now new logic can be added to SpiralDifferenceIterator based on some runtime switch. This patch also separates out unit tests related to SpiralIterator from tiling_data_unittest.cc to its own file. BUG=613695 TESTS=TilingDataSpiralIteratorTest.* CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/051927915d98be61b03119b7bce2301d33829bcf Cr-Commit-Position: refs/heads/master@{#420823}

Patch Set 1 #

Patch Set 2 : review comments + separate spiral iterator tests #

Patch Set 3 : nits in comment #

Patch Set 4 : win build break #

Total comments: 4

Patch Set 5 : review comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1273 lines, -983 lines) Patch
M cc/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/base/BUILD.gn View 1 1 chunk +4 lines, -0 lines 0 comments Download
A cc/base/reverse_spiral_iterator.h View 1 1 chunk +71 lines, -0 lines 0 comments Download
A cc/base/reverse_spiral_iterator.cc View 1 2 3 1 chunk +201 lines, -0 lines 0 comments Download
A cc/base/spiral_iterator.h View 1 1 chunk +71 lines, -0 lines 0 comments Download
A cc/base/spiral_iterator.cc View 1 2 3 1 chunk +162 lines, -0 lines 0 comments Download
A cc/base/spiral_iterator_unittest.cc View 1 2 3 4 1 chunk +678 lines, -0 lines 3 comments Download
M cc/base/tiling_data.h View 1 4 chunks +6 lines, -34 lines 0 comments Download
M cc/base/tiling_data.cc View 1 3 chunks +79 lines, -360 lines 0 comments Download
M cc/base/tiling_data_unittest.cc View 1 1 chunk +0 lines, -589 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 26 (14 generated)
prashant.n
ptal.
4 years, 2 months ago (2016-09-21 14:03:22 UTC) #3
vmpstr
Can you also separate spiral iterator and reverse spiral iterator into two different files? Also, ...
4 years, 2 months ago (2016-09-21 19:58:36 UTC) #4
prashant.n
ptal.
4 years, 2 months ago (2016-09-22 13:34:42 UTC) #12
vmpstr
https://codereview.chromium.org/2352393002/diff/60001/cc/base/spiral_iterator_unittest.cc File cc/base/spiral_iterator_unittest.cc (right): https://codereview.chromium.org/2352393002/diff/60001/cc/base/spiral_iterator_unittest.cc#newcode188 cc/base/spiral_iterator_unittest.cc:188: TEST(TilingDataSpiralIteratorTest, SpiralDifferenceIteratorSmallConsider) { Can you name the test SpiralIteratorTest ...
4 years, 2 months ago (2016-09-22 17:43:43 UTC) #15
prashant.n
https://codereview.chromium.org/2352393002/diff/60001/cc/base/spiral_iterator_unittest.cc File cc/base/spiral_iterator_unittest.cc (right): https://codereview.chromium.org/2352393002/diff/60001/cc/base/spiral_iterator_unittest.cc#newcode188 cc/base/spiral_iterator_unittest.cc:188: TEST(TilingDataSpiralIteratorTest, SpiralDifferenceIteratorSmallConsider) { I'll do this change. https://codereview.chromium.org/2352393002/diff/60001/cc/base/tiling_data.h File ...
4 years, 2 months ago (2016-09-23 01:52:34 UTC) #16
prashant.n
ptal.
4 years, 2 months ago (2016-09-23 02:20:57 UTC) #17
prashant.n
https://codereview.chromium.org/2352393002/diff/80001/cc/base/spiral_iterator_unittest.cc File cc/base/spiral_iterator_unittest.cc (right): https://codereview.chromium.org/2352393002/diff/80001/cc/base/spiral_iterator_unittest.cc#newcode60 cc/base/spiral_iterator_unittest.cc:60: TEST(SpiralIteratorTest, NoIgnoreFullConsider) { How about moving this test code ...
4 years, 2 months ago (2016-09-23 12:11:24 UTC) #18
prashant.n
https://codereview.chromium.org/2352393002/diff/80001/cc/base/spiral_iterator_unittest.cc File cc/base/spiral_iterator_unittest.cc (right): https://codereview.chromium.org/2352393002/diff/80001/cc/base/spiral_iterator_unittest.cc#newcode60 cc/base/spiral_iterator_unittest.cc:60: TEST(SpiralIteratorTest, NoIgnoreFullConsider) { I thought over this again. I ...
4 years, 2 months ago (2016-09-23 13:52:17 UTC) #19
vmpstr
lgtm https://codereview.chromium.org/2352393002/diff/80001/cc/base/spiral_iterator_unittest.cc File cc/base/spiral_iterator_unittest.cc (right): https://codereview.chromium.org/2352393002/diff/80001/cc/base/spiral_iterator_unittest.cc#newcode60 cc/base/spiral_iterator_unittest.cc:60: TEST(SpiralIteratorTest, NoIgnoreFullConsider) { On 2016/09/23 13:52:17, prashant.n wrote: ...
4 years, 2 months ago (2016-09-23 21:05:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2352393002/80001
4 years, 2 months ago (2016-09-24 02:41:45 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-24 03:39:06 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-09-24 03:41:30 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/051927915d98be61b03119b7bce2301d33829bcf
Cr-Commit-Position: refs/heads/master@{#420823}

Powered by Google App Engine
This is Rietveld 408576698