Descriptioncc: 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
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 26 (14 generated)
|