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

Issue 736753002: cc: Implement geometry-based tile eviction (Closed)

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

Description

cc: Implement geometry-based tile eviction This patch optimizes the way we do eviction at the tiling level. Instead of using sort, it uses a reverse spiral iterator to iterate tiles in reverse order of what they would have been rasterized in. In addition to that, shared tiles are returned only by one tiling set eviction queue. This way tiling set eviction queues can skip shared tiles those priorities for tree priority are closer to those of unshared tiles of the twin tiling. This lessen the number of out of reversed priority order tiles returned by tiling set eviction queues (which were previously handled by sorting). This will also allow eviction tile priority queue not to check for shared tiles returned twice. Committed: https://crrev.com/b4f58cb105bf52668175780da598bb3703d24462 Cr-Commit-Position: refs/heads/master@{#308078}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Clean up #

Patch Set 3 : Rebase #

Patch Set 4 : Clean up #

Total comments: 24

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Patch Set 7 : Rebase #

Total comments: 8

Patch Set 8 : Clean up #

Patch Set 9 : Comments, IsSharedOutOfOrderTile fix #

Patch Set 10 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+494 lines, -252 lines) Patch
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 8 chunks +114 lines, -25 lines 0 comments Download
M cc/resources/eviction_tile_priority_queue.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M cc/resources/picture_layer_tiling.h View 1 2 3 4 5 6 7 8 9 3 chunks +0 lines, -26 lines 0 comments Download
M cc/resources/picture_layer_tiling.cc View 1 2 3 4 5 6 7 8 9 7 chunks +1 line, -123 lines 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -3 lines 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +18 lines, -4 lines 0 comments Download
M cc/resources/tiling_set_eviction_queue.h View 1 2 3 4 5 6 7 8 2 chunks +79 lines, -6 lines 1 comment Download
M cc/resources/tiling_set_eviction_queue.cc View 1 2 3 4 5 6 7 8 6 chunks +267 lines, -63 lines 1 comment Download

Messages

Total messages: 23 (2 generated)
USE eero AT chromium.org
PTAL. This is the actual implementation patch set (split from https://codereview.chromium.org/674103004/) which replaces eviction tile ...
6 years, 1 month ago (2014-11-18 15:28:26 UTC) #2
vmpstr
On 2014/11/18 15:28:26, e_hakkinen wrote: > PTAL. > > This is the actual implementation patch ...
6 years, 1 month ago (2014-11-18 18:13:34 UTC) #3
USE eero AT chromium.org
On 2014/11/18 18:13:34, vmpstr wrote: > Do you know what the relative gains are for ...
6 years, 1 month ago (2014-11-19 11:41:46 UTC) #4
vmpstr
On 2014/11/19 11:41:46, e_hakkinen wrote: > On 2014/11/18 18:13:34, vmpstr wrote: > > Do you ...
6 years, 1 month ago (2014-11-19 16:47:59 UTC) #5
USE eero AT chromium.org
https://codereview.chromium.org/736753002/diff/1/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/736753002/diff/1/cc/resources/picture_layer_tiling.cc#newcode1120 cc/resources/picture_layer_tiling.cc:1120: tiling_->client_->GetMaxTilePriorityBin(); On 2014/11/19 16:47:58, vmpstr wrote: > I'm not ...
6 years, 1 month ago (2014-11-20 14:54:38 UTC) #6
USE eero AT chromium.org
On 2014/11/19 16:47:59, vmpstr wrote: > That's where I'm a bit confused. Pending tree is ...
6 years, 1 month ago (2014-11-20 15:29:16 UTC) #7
vmpstr
> > Cleaning up would make sense. > > IMHO, it should be acknowledged that ...
6 years, 1 month ago (2014-11-20 18:49:37 UTC) #8
USE eero AT chromium.org
Here is a rebase on top of tiling set eviction queue. This does not yet ...
6 years ago (2014-11-27 16:35:20 UTC) #9
USE eero AT chromium.org
PTAL. The implementation is much cleaner now that eviction tile iterators are merged into eviction ...
6 years ago (2014-12-08 14:46:42 UTC) #10
vmpstr
https://codereview.chromium.org/736753002/diff/60001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/736753002/diff/60001/cc/layers/picture_layer_impl_unittest.cc#newcode3886 cc/layers/picture_layer_impl_unittest.cc:3886: if (tile->is_occluded(tree)) This should happen outside of the if ...
6 years ago (2014-12-09 02:10:59 UTC) #11
USE eero AT chromium.org
https://codereview.chromium.org/736753002/diff/60001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/736753002/diff/60001/cc/layers/picture_layer_impl_unittest.cc#newcode3886 cc/layers/picture_layer_impl_unittest.cc:3886: if (tile->is_occluded(tree)) On 2014/12/09 02:10:58, vmpstr wrote: > This ...
6 years ago (2014-12-09 18:44:15 UTC) #12
vmpstr
The patch looks good overall. I think we need to simplify the whole rfa logic ...
6 years ago (2014-12-09 19:47:56 UTC) #13
USE eero AT chromium.org
On 2014/12/09 19:47:56, vmpstr wrote: > The patch looks good overall. I think we need ...
6 years ago (2014-12-10 12:35:46 UTC) #14
vmpstr
I think this is almost ready. As another request, can you put a (large) comment ...
6 years ago (2014-12-10 18:01:15 UTC) #15
USE eero AT chromium.org
https://codereview.chromium.org/736753002/diff/60001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/736753002/diff/60001/cc/layers/picture_layer_impl_unittest.cc#newcode3886 cc/layers/picture_layer_impl_unittest.cc:3886: if (tile->is_occluded(tree)) On 2014/12/10 18:01:15, vmpstr wrote: > On ...
6 years ago (2014-12-11 15:22:00 UTC) #16
USE eero AT chromium.org
On 2014/12/10 18:01:15, vmpstr wrote: > I think this is almost ready. > > As ...
6 years ago (2014-12-11 15:27:03 UTC) #17
vmpstr
Was there a test that caught the fact that the condition got reversed? If not, ...
6 years ago (2014-12-11 18:35:03 UTC) #18
USE eero AT chromium.org
On 2014/12/11 18:35:03, vmpstr wrote: > Was there a test that caught the fact that ...
6 years ago (2014-12-12 09:02:30 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/736753002/180001
6 years ago (2014-12-12 10:30:44 UTC) #21
commit-bot: I haz the power
Committed patchset #10 (id:180001)
6 years ago (2014-12-12 14:41:41 UTC) #22
commit-bot: I haz the power
6 years ago (2014-12-12 14:42:48 UTC) #23
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/b4f58cb105bf52668175780da598bb3703d24462
Cr-Commit-Position: refs/heads/master@{#308078}

Powered by Google App Engine
This is Rietveld 408576698