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

Issue 741683003: cc: Move LayerEvictionTileIterator to a separate file and make it a queue (Closed)

Created:
6 years, 1 month ago by USE eero AT chromium.org
Modified:
6 years ago
Reviewers:
reveman, vmpstr, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Move LayerEvictionTileIterator to a separate file and make it a queue In line with LayerRasterTileIterator patch, this patch removes PictureLayerImpl::LayerEvictionTileIterator, moves it to a separate file, renames it to TilingSetEvictionQueue, makes its functionality be more queue-like instead of iterator-like and merges PictureLayerTiling::TilingEvictionTileIterator into it (as those two iterators were so tightly coupled). Also, this patch adds a PLI::CreateEvictionQueue to get a eviction queue for the layer. This hides a bit more details of PLTS from PLI and avoid duplicating eviction category handling in multiple different iterator classes. Committed: https://crrev.com/ada8f5dae0fd99ef5a74fecdff1b91dacd7183b3 Cr-Commit-Position: refs/heads/master@{#305972}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Clean up, TilingEvictionTileIterator removal #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -555 lines) Patch
M cc/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 2 chunks +4 lines, -29 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 2 chunks +8 lines, -154 lines 0 comments Download
M cc/layers/picture_layer_impl_perftest.cc View 7 chunks +19 lines, -19 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 8 chunks +16 lines, -21 lines 0 comments Download
M cc/resources/eviction_tile_priority_queue.h View 3 chunks +11 lines, -10 lines 0 comments Download
M cc/resources/eviction_tile_priority_queue.cc View 4 chunks +43 lines, -48 lines 0 comments Download
M cc/resources/picture_layer_tiling.h View 1 2 chunks +1 line, -19 lines 0 comments Download
M cc/resources/picture_layer_tiling.cc View 1 1 chunk +0 lines, -46 lines 0 comments Download
M cc/resources/picture_layer_tiling_perftest.cc View 1 2 chunks +0 lines, -113 lines 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 1 chunk +0 lines, -96 lines 0 comments Download
A cc/resources/tiling_set_eviction_queue.h View 1 1 chunk +48 lines, -0 lines 0 comments Download
A cc/resources/tiling_set_eviction_queue.cc View 1 1 chunk +197 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
USE eero AT chromium.org
Here is a change for LayerEvictionTileIterator which is very similar to the change for LayerRasterTileIterator ...
6 years, 1 month ago (2014-11-21 15:22:46 UTC) #2
USE eero AT chromium.org
I did not notice any performance degradation related to this patch.
6 years, 1 month ago (2014-11-21 15:24:52 UTC) #3
vmpstr
Thanks for doing this! This looks good from my perspective, but I kinda feel awkward ...
6 years, 1 month ago (2014-11-21 18:08:23 UTC) #4
vmpstr
On 2014/11/21 18:08:23, vmpstr wrote: > Thanks for doing this! This looks good from my ...
6 years, 1 month ago (2014-11-21 18:10:02 UTC) #5
enne (OOO)
In a general sense, this lgtm % vmpstr. vmpstr, I think it's fine for you ...
6 years, 1 month ago (2014-11-21 19:15:31 UTC) #6
USE eero AT chromium.org
On 2014/11/21 18:10:02, vmpstr wrote: > Can the tiling eviction tile iterator go away with ...
6 years ago (2014-11-25 11:42:33 UTC) #7
USE eero AT chromium.org
https://codereview.chromium.org/741683003/diff/1/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/741683003/diff/1/cc/layers/picture_layer_impl.cc#newcode104 cc/layers/picture_layer_impl.cc:104: return nullptr; On 2014/11/21 18:08:23, vmpstr wrote: > I ...
6 years ago (2014-11-25 11:42:42 UTC) #8
vmpstr
Can you also remove PictureLayerTiling::TilingEvictionTileIterator while here? I believe it's not being used anymore. https://codereview.chromium.org/741683003/diff/1/cc/layers/picture_layer_impl.cc ...
6 years ago (2014-11-25 17:37:05 UTC) #9
USE eero AT chromium.org
On 2014/11/25 17:37:05, vmpstr wrote: > Can you also remove PictureLayerTiling::TilingEvictionTileIterator while here? I > ...
6 years ago (2014-11-26 09:17:19 UTC) #10
USE eero AT chromium.org
https://codereview.chromium.org/741683003/diff/1/cc/resources/tiling_set_eviction_queue.cc File cc/resources/tiling_set_eviction_queue.cc (right): https://codereview.chromium.org/741683003/diff/1/cc/resources/tiling_set_eviction_queue.cc#newcode153 cc/resources/tiling_set_eviction_queue.cc:153: Tile* TilingSetEvictionQueue::PopEvictionTile() { On 2014/11/25 17:37:05, vmpstr wrote: > ...
6 years ago (2014-11-26 14:20:46 UTC) #11
USE eero AT chromium.org
PTAL.
6 years ago (2014-11-26 14:29:57 UTC) #12
vmpstr
lgtm
6 years ago (2014-11-26 17:20:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/741683003/40001
6 years ago (2014-11-27 08:49:58 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years ago (2014-11-27 09:41:44 UTC) #16
commit-bot: I haz the power
6 years ago (2014-11-27 09:42:34 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ada8f5dae0fd99ef5a74fecdff1b91dacd7183b3
Cr-Commit-Position: refs/heads/master@{#305972}

Powered by Google App Engine
This is Rietveld 408576698