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

Issue 377793003: Consider occluded tiles during eviction with occluded as Tile property. (Closed)

Created:
6 years, 5 months ago by jbedley
Modified:
6 years, 5 months ago
Reviewers:
danakj, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org
Project:
chromium
Visibility:
Public.

Description

Consider occluded tiles during eviction with occluded as Tile property. This modifies the eviction order to consider occlusion so that the LayerEvictionTileIterator and TileManager::EvictionTileIterator will evict occluded tiles before unoccluded tiles in the same priority bin. The current eviction order is to evict tiles that are: 1. In a lower priority bin 2. Not required for activation 3. At worse resolution 4. Farther away from visible This patch adds occlusion to the order to evict tiles that are: 1. In a lower priority bin 2. Not required for activation 3. At worse resolution 4. Occluded 5. Farther away from visible This patch depends on https://codereview.chromium.org/374653003/ which tracks occlusion per tree and stores the info on the Tile. BUG=178971 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283842

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address feedback #

Total comments: 12

Patch Set 3 : Address feedback #

Patch Set 4 : Add TileManager unit test #

Total comments: 22

Patch Set 5 : Address feedback #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -22 lines) Patch
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 2 chunks +201 lines, -0 lines 0 comments Download
M cc/resources/picture_layer_tiling.cc View 1 2 3 4 5 1 chunk +16 lines, -4 lines 0 comments Download
M cc/resources/tile.h View 1 2 3 4 5 3 chunks +23 lines, -8 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 4 chunks +21 lines, -5 lines 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 4 5 1 chunk +145 lines, -0 lines 0 comments Download
M cc/resources/tile_priority.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/tile_priority.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
jbedley
PTAL
6 years, 5 months ago (2014-07-08 15:51:49 UTC) #1
danakj
https://codereview.chromium.org/377793003/diff/1/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/377793003/diff/1/cc/layers/picture_layer_impl_unittest.cc#newcode3258 cc/layers/picture_layer_impl_unittest.cc:3258: pending_layer_, NEW_CONTENT_TAKES_PRIORITY); what about the SAME_PRIORITY_FOR_BOTH_TREES case? if a ...
6 years, 5 months ago (2014-07-09 17:38:41 UTC) #2
vmpstr
I'm not sure that the tile manager will do the right thing with this patch. ...
6 years, 5 months ago (2014-07-09 23:23:06 UTC) #3
jbedley
The changes made to the OcclusionTrackingPictureLayerImpl unit test caused it to get pretty long. Also, ...
6 years, 5 months ago (2014-07-11 00:19:38 UTC) #4
vmpstr
I think the tile manager changes look correct. Thanks. Just a few test comments below ...
6 years, 5 months ago (2014-07-11 00:44:32 UTC) #5
jbedley
https://codereview.chromium.org/377793003/diff/20001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/377793003/diff/20001/cc/layers/picture_layer_impl_unittest.cc#newcode3359 cc/layers/picture_layer_impl_unittest.cc:3359: (tile->priority_for_tree_priority(tree_priority).priority_bin != On 2014/07/11 00:44:31, vmpstr wrote: > Can ...
6 years, 5 months ago (2014-07-11 18:00:31 UTC) #6
vmpstr
This LG, just the tile manager unittests left, I think. https://codereview.chromium.org/377793003/diff/20001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/377793003/diff/20001/cc/layers/picture_layer_impl_unittest.cc#newcode3362 ...
6 years, 5 months ago (2014-07-11 18:13:37 UTC) #7
jbedley
I've added a test to make sure TileManager considers occlusion as well. PTAL.
6 years, 5 months ago (2014-07-14 18:30:44 UTC) #8
vmpstr
Mostly LG https://codereview.chromium.org/377793003/diff/60001/cc/resources/tile_manager_unittest.cc File cc/resources/tile_manager_unittest.cc (right): https://codereview.chromium.org/377793003/diff/60001/cc/resources/tile_manager_unittest.cc#newcode1067 cc/resources/tile_manager_unittest.cc:1067: TreePriority tree_priority = NEW_CONTENT_TAKES_PRIORITY; From my understanding, ...
6 years, 5 months ago (2014-07-14 18:42:21 UTC) #9
jbedley
https://codereview.chromium.org/377793003/diff/60001/cc/resources/tile_manager_unittest.cc File cc/resources/tile_manager_unittest.cc (right): https://codereview.chromium.org/377793003/diff/60001/cc/resources/tile_manager_unittest.cc#newcode1067 cc/resources/tile_manager_unittest.cc:1067: TreePriority tree_priority = NEW_CONTENT_TAKES_PRIORITY; On 2014/07/14 18:42:20, vmpstr wrote: ...
6 years, 5 months ago (2014-07-14 19:31:33 UTC) #10
vmpstr
lgtm; back to danakj for final review. https://codereview.chromium.org/377793003/diff/60001/cc/resources/tile_manager_unittest.cc File cc/resources/tile_manager_unittest.cc (right): https://codereview.chromium.org/377793003/diff/60001/cc/resources/tile_manager_unittest.cc#newcode1067 cc/resources/tile_manager_unittest.cc:1067: TreePriority tree_priority ...
6 years, 5 months ago (2014-07-14 19:33:13 UTC) #11
danakj
https://codereview.chromium.org/377793003/diff/60001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/377793003/diff/60001/cc/layers/picture_layer_impl_unittest.cc#newcode2827 cc/layers/picture_layer_impl_unittest.cc:2827: size_t expected_occluded_tile_count[]) { can this be size_t expected_occluded_tile_count[NUM_TREE_PRIORITIES]? https://codereview.chromium.org/377793003/diff/60001/cc/layers/picture_layer_impl_unittest.cc#newcode2828 ...
6 years, 5 months ago (2014-07-15 21:26:51 UTC) #12
jbedley
PTAL https://codereview.chromium.org/377793003/diff/60001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/377793003/diff/60001/cc/layers/picture_layer_impl_unittest.cc#newcode2827 cc/layers/picture_layer_impl_unittest.cc:2827: size_t expected_occluded_tile_count[]) { On 2014/07/15 21:26:50, danakj wrote: ...
6 years, 5 months ago (2014-07-16 16:09:31 UTC) #13
danakj
https://codereview.chromium.org/377793003/diff/60001/cc/resources/tile_manager_unittest.cc File cc/resources/tile_manager_unittest.cc (right): https://codereview.chromium.org/377793003/diff/60001/cc/resources/tile_manager_unittest.cc#newcode1067 cc/resources/tile_manager_unittest.cc:1067: TreePriority tree_priority = NEW_CONTENT_TAKES_PRIORITY; On 2014/07/16 16:09:31, jbedley wrote: ...
6 years, 5 months ago (2014-07-16 22:30:47 UTC) #14
danakj
LGTM on this as an incremental step if you like, but I think we need ...
6 years, 5 months ago (2014-07-16 22:31:14 UTC) #15
jbedley
On 2014/07/16 22:31:14, danakj wrote: > LGTM on this as an incremental step if you ...
6 years, 5 months ago (2014-07-17 15:39:13 UTC) #16
jbedley
The CQ bit was checked by jbedley@chromium.org
6 years, 5 months ago (2014-07-17 15:39:22 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbedley@chromium.org/377793003/80001
6 years, 5 months ago (2014-07-17 15:41:00 UTC) #18
jbedley
The CQ bit was unchecked by jbedley@chromium.org
6 years, 5 months ago (2014-07-17 16:08:02 UTC) #19
jbedley
The CQ bit was checked by jbedley@chromium.org
6 years, 5 months ago (2014-07-17 17:04:52 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbedley@chromium.org/377793003/100001
6 years, 5 months ago (2014-07-17 17:05:57 UTC) #21
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 19:53:03 UTC) #22
Message was sent while issue was closed.
Change committed as 283842

Powered by Google App Engine
This is Rietveld 408576698