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

Issue 1051993002: cc: Remove tile sharing from tilings. (Closed)

Created:
5 years, 8 months ago by vmpstr
Modified:
5 years, 7 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Remove tile sharing from tilings. This patch removes sharing tiles from tilings. Previously, tiles that were not invalidated were shared between the pending and the active trees. With this patch, tiles that are exist on the active tree and are not invalidated are not created on the pending tree, resulting in fewer overall tiles. This improves performance of updating and managing tiles. Also, this patch opens up opportunities for a lot of code clean up that can otherwise be confusing when two trees are involved. R=danakj, enne Committed: https://crrev.com/0061b75e810f088900a0a8fbdd29ba5595c73016 Cr-Commit-Position: refs/heads/master@{#326804} Committed: https://crrev.com/a960b5558d7210bb5bfa67a832f800bb36e629a7 Cr-Commit-Position: refs/heads/master@{#327553}

Patch Set 1 #

Total comments: 16

Patch Set 2 : update #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 29

Patch Set 7 : update #

Patch Set 8 : #

Patch Set 9 : +comments #

Patch Set 10 : update #

Patch Set 11 : update #

Total comments: 17

Patch Set 12 : update #

Total comments: 2

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : update #

Total comments: 10

Patch Set 17 : update #

Patch Set 18 : update #

Patch Set 19 : update #

Total comments: 2

Patch Set 20 : typo #

Patch Set 21 : fixes #

Total comments: 7

Patch Set 22 : update #

Total comments: 2

Patch Set 23 : #

Total comments: 1

Patch Set 24 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1281 lines, -1064 lines) Patch
M cc/base/tiling_data.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/base/tiling_data.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 58 chunks +321 lines, -291 lines 0 comments Download
M cc/resources/eviction_tile_priority_queue.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -6 lines 0 comments Download
M cc/resources/picture_layer_tiling.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +56 lines, -51 lines 0 comments Download
M cc/resources/picture_layer_tiling.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 11 chunks +223 lines, -266 lines 0 comments Download
M cc/resources/picture_layer_tiling_set.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/picture_layer_tiling_set.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +9 lines, -3 lines 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 20 chunks +78 lines, -72 lines 0 comments Download
M cc/resources/raster_tile_priority_queue_all.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -2 lines 0 comments Download
M cc/resources/raster_tile_priority_queue_all.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +24 lines, -86 lines 0 comments Download
M cc/resources/raster_tile_priority_queue_required.h View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/raster_tile_priority_queue_required.cc View 1 chunk +33 lines, -9 lines 0 comments Download
M cc/resources/tile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +7 lines, -41 lines 0 comments Download
M cc/resources/tile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 3 chunks +3 lines, -7 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +14 lines, -5 lines 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 21 chunks +73 lines, -62 lines 0 comments Download
M cc/resources/tiling_set_eviction_queue.h View 1 2 3 4 5 6 7 8 9 5 chunks +27 lines, -1 line 0 comments Download
M cc/resources/tiling_set_eviction_queue.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 15 chunks +176 lines, -87 lines 0 comments Download
M cc/resources/tiling_set_raster_queue_all.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +35 lines, -4 lines 0 comments Download
M cc/resources/tiling_set_raster_queue_all.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 16 chunks +135 lines, -28 lines 0 comments Download
M cc/resources/tiling_set_raster_queue_required.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/tiling_set_raster_queue_required.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +32 lines, -20 lines 0 comments Download
M cc/test/fake_picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_picture.cc View 1 4 chunks +13 lines, -11 lines 0 comments Download

Messages

Total messages: 59 (5 generated)
vmpstr
Hi. This isn't done, but I'd appreciate an early review to see how people feel ...
5 years, 8 months ago (2015-04-01 21:56:32 UTC) #2
danakj
Why did you do a Pending/ActivePLT split classes like that? It seems like it'll be ...
5 years, 8 months ago (2015-04-02 21:39:16 UTC) #3
enne (OOO)
I have to admit I am not super convinced on the pending/active split. There are ...
5 years, 8 months ago (2015-04-02 21:45:34 UTC) #4
vmpstr
What I'm trying to accomplish is to have a tiling (active tree tiling) that is ...
5 years, 8 months ago (2015-04-02 22:33:27 UTC) #5
danakj
On Thu, Apr 2, 2015 at 3:33 PM, <vmpstr@chromium.org> wrote: > What I'm trying to ...
5 years, 8 months ago (2015-04-02 22:36:47 UTC) #6
vmpstr
Ok, how's this? There's still a couple of eviction tests failing, but that's because this ...
5 years, 8 months ago (2015-04-07 00:28:37 UTC) #7
danakj
This looks better so far.. I got as far as my comments are... and I'll ...
5 years, 8 months ago (2015-04-08 00:13:07 UTC) #8
enne (OOO)
https://codereview.chromium.org/1051993002/diff/100001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (left): https://codereview.chromium.org/1051993002/diff/100001/cc/resources/picture_layer_tiling.cc#oldcode111 cc/resources/picture_layer_tiling.cc:111: // Check our twin for a valid tile. I'm ...
5 years, 8 months ago (2015-04-09 17:54:24 UTC) #9
vmpstr
https://codereview.chromium.org/1051993002/diff/100001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1051993002/diff/100001/cc/layers/picture_layer_impl_unittest.cc#newcode685 cc/layers/picture_layer_impl_unittest.cc:685: if (*iter) { On 2015/04/08 00:13:06, danakj wrote: > ...
5 years, 8 months ago (2015-04-10 20:25:14 UTC) #10
enne (OOO)
https://codereview.chromium.org/1051993002/diff/100001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/1051993002/diff/100001/cc/resources/picture_layer_tiling.cc#newcode295 cc/resources/picture_layer_tiling.cc:295: // Active tree should always create a tile. On ...
5 years, 8 months ago (2015-04-10 21:16:28 UTC) #11
vmpstr
https://codereview.chromium.org/1051993002/diff/100001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/1051993002/diff/100001/cc/resources/picture_layer_tiling.cc#newcode295 cc/resources/picture_layer_tiling.cc:295: // Active tree should always create a tile. On ...
5 years, 8 months ago (2015-04-10 22:24:29 UTC) #12
enne (OOO)
Ok, thanks! What are the pieces left here? Testing?
5 years, 8 months ago (2015-04-10 22:30:22 UTC) #13
vmpstr
On 2015/04/10 22:30:22, enne wrote: > Ok, thanks! What are the pieces left here? Testing? ...
5 years, 8 months ago (2015-04-10 22:36:43 UTC) #14
timford35
5 years, 8 months ago (2015-04-10 22:43:22 UTC) #16
vmpstr
PTAL. The latest patchset includes eviction changes and final unittest fixes (ie, this is "land-able")
5 years, 8 months ago (2015-04-13 19:24:51 UTC) #17
enne (OOO)
https://codereview.chromium.org/1051993002/diff/200001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1051993002/diff/200001/cc/layers/picture_layer_impl_unittest.cc#newcode2090 cc/layers/picture_layer_impl_unittest.cc:2090: TEST_F(PictureLayerImplTest, AllHighResRequiredEvenIfShared) { AllHighResRequiredEvenIfAirquotesSharedAirquotes https://codereview.chromium.org/1051993002/diff/200001/cc/layers/picture_layer_impl_unittest.cc#newcode2136 cc/layers/picture_layer_impl_unittest.cc:2136: TEST_F(PictureLayerImplTest, EverythingRequiredIfActiveMissingTiles) { ...
5 years, 8 months ago (2015-04-13 22:36:03 UTC) #18
vmpstr
PTAL https://codereview.chromium.org/1051993002/diff/200001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1051993002/diff/200001/cc/layers/picture_layer_impl_unittest.cc#newcode2090 cc/layers/picture_layer_impl_unittest.cc:2090: TEST_F(PictureLayerImplTest, AllHighResRequiredEvenIfShared) { On 2015/04/13 22:36:02, enne wrote: ...
5 years, 8 months ago (2015-04-13 23:52:13 UTC) #19
vmpstr
https://codereview.chromium.org/1051993002/diff/200001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1051993002/diff/200001/cc/layers/picture_layer_impl_unittest.cc#newcode2136 cc/layers/picture_layer_impl_unittest.cc:2136: TEST_F(PictureLayerImplTest, EverythingRequiredIfActiveMissingTiles) { On 2015/04/13 23:52:12, vmpstr wrote: > ...
5 years, 8 months ago (2015-04-13 23:53:48 UTC) #20
enne (OOO)
https://codereview.chromium.org/1051993002/diff/220001/cc/resources/picture_layer_tiling.h File cc/resources/picture_layer_tiling.h (right): https://codereview.chromium.org/1051993002/diff/220001/cc/resources/picture_layer_tiling.h#newcode287 cc/resources/picture_layer_tiling.h:287: // This returns "next" visible rect. That is, when ...
5 years, 8 months ago (2015-04-14 23:27:17 UTC) #21
vmpstr
https://codereview.chromium.org/1051993002/diff/220001/cc/resources/picture_layer_tiling.h File cc/resources/picture_layer_tiling.h (right): https://codereview.chromium.org/1051993002/diff/220001/cc/resources/picture_layer_tiling.h#newcode287 cc/resources/picture_layer_tiling.h:287: // This returns "next" visible rect. That is, when ...
5 years, 8 months ago (2015-04-15 19:16:36 UTC) #22
enne (OOO)
Thanks! Sorry for all the nitpicking. Your code is clever, but I just want to ...
5 years, 8 months ago (2015-04-15 20:13:51 UTC) #23
vmpstr
Thanks for the review. I reran this on perf locally and it's kind of all ...
5 years, 8 months ago (2015-04-17 16:53:11 UTC) #24
vmpstr
On 2015/04/17 16:53:11, vmpstr wrote: > Thanks for the review. I reran this on perf ...
5 years, 8 months ago (2015-04-17 16:53:49 UTC) #25
vmpstr
I had to change this quite a bit, PTAL
5 years, 8 months ago (2015-04-20 20:06:29 UTC) #26
enne (OOO)
https://codereview.chromium.org/1051993002/diff/300001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1051993002/diff/300001/cc/layers/picture_layer_impl.cc#newcode634 cc/layers/picture_layer_impl.cc:634: scoped_refptr<RasterSource>* raster_source) { Pointer to a refptr <_< Is ...
5 years, 8 months ago (2015-04-20 22:36:28 UTC) #27
vmpstr
PTAL https://codereview.chromium.org/1051993002/diff/300001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1051993002/diff/300001/cc/layers/picture_layer_impl.cc#newcode634 cc/layers/picture_layer_impl.cc:634: scoped_refptr<RasterSource>* raster_source) { On 2015/04/20 22:36:28, enne wrote: ...
5 years, 8 months ago (2015-04-22 18:38:58 UTC) #28
enne (OOO)
On 2015/04/22 at 18:38:58, vmpstr wrote: > > It's a little out of the way ...
5 years, 8 months ago (2015-04-22 20:56:40 UTC) #29
vmpstr
On 2015/04/22 20:56:40, enne wrote: > On 2015/04/22 at 18:38:58, vmpstr wrote: > > > ...
5 years, 8 months ago (2015-04-22 21:46:21 UTC) #30
enne (OOO)
On 2015/04/22 at 21:46:21, vmpstr wrote: > CreateTile is used in 4 functions now (CreateMissingTilesInLiveTilesRect, ...
5 years, 8 months ago (2015-04-22 22:18:52 UTC) #31
vmpstr
On 2015/04/22 22:18:52, enne wrote: > On 2015/04/22 at 21:46:21, vmpstr wrote: > > > ...
5 years, 8 months ago (2015-04-22 23:00:34 UTC) #32
vmpstr
PTAL
5 years, 8 months ago (2015-04-22 23:38:21 UTC) #33
enne (OOO)
On 2015/04/22 at 23:00:34, vmpstr wrote: > > All of them? I'm not sure relying ...
5 years, 8 months ago (2015-04-23 00:40:44 UTC) #34
vmpstr
On 2015/04/23 00:40:44, enne wrote: > On 2015/04/22 at 23:00:34, vmpstr wrote: > > > ...
5 years, 8 months ago (2015-04-23 00:57:12 UTC) #35
enne (OOO)
On 2015/04/23 at 00:57:12, vmpstr wrote: > Ok, in that case we need to address ...
5 years, 8 months ago (2015-04-23 01:07:55 UTC) #36
vmpstr
As per offline discussion, I've changed this to remove invalidated tiles before copying the pending ...
5 years, 8 months ago (2015-04-23 20:06:01 UTC) #37
enne (OOO)
lgtm, thanks!
5 years, 8 months ago (2015-04-23 20:18:28 UTC) #38
enne (OOO)
https://codereview.chromium.org/1051993002/diff/360001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1051993002/diff/360001/cc/layers/picture_layer_impl_unittest.cc#newcode3515 cc/layers/picture_layer_impl_unittest.cc:3515: // Since there is no invalidaiton, pending tree should ...
5 years, 8 months ago (2015-04-23 20:18:36 UTC) #39
vmpstr
https://codereview.chromium.org/1051993002/diff/360001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1051993002/diff/360001/cc/layers/picture_layer_impl_unittest.cc#newcode3515 cc/layers/picture_layer_impl_unittest.cc:3515: // Since there is no invalidaiton, pending tree should ...
5 years, 8 months ago (2015-04-23 20:37:02 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1051993002/380001
5 years, 8 months ago (2015-04-24 15:33:37 UTC) #43
commit-bot: I haz the power
Committed patchset #20 (id:380001)
5 years, 8 months ago (2015-04-24 15:38:26 UTC) #44
commit-bot: I haz the power
Patchset 20 (id:??) landed as https://crrev.com/0061b75e810f088900a0a8fbdd29ba5595c73016 Cr-Commit-Position: refs/heads/master@{#326804}
5 years, 8 months ago (2015-04-24 15:39:24 UTC) #45
vmpstr
A revert of this CL (patchset #20 id:380001) has been created in https://codereview.chromium.org/1108773003/ by vmpstr@chromium.org. ...
5 years, 7 months ago (2015-04-27 17:03:35 UTC) #46
vmpstr
Please take a look. https://codereview.chromium.org/1051993002/diff/400001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/1051993002/diff/400001/cc/resources/picture_layer_tiling.cc#newcode140 cc/resources/picture_layer_tiling.cc:140: bool create_missing_tiles = false; This ...
5 years, 7 months ago (2015-04-28 19:06:04 UTC) #47
enne (OOO)
<_< https://codereview.chromium.org/1051993002/diff/400001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/1051993002/diff/400001/cc/resources/picture_layer_tiling.cc#newcode140 cc/resources/picture_layer_tiling.cc:140: bool create_missing_tiles = false; On 2015/04/28 19:06:04, vmpstr ...
5 years, 7 months ago (2015-04-28 21:53:40 UTC) #48
vmpstr
PTAL https://codereview.chromium.org/1051993002/diff/400001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/1051993002/diff/400001/cc/resources/picture_layer_tiling.cc#newcode140 cc/resources/picture_layer_tiling.cc:140: bool create_missing_tiles = false; On 2015/04/28 21:53:40, enne ...
5 years, 7 months ago (2015-04-29 00:38:44 UTC) #49
enne (OOO)
https://codereview.chromium.org/1051993002/diff/420001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1051993002/diff/420001/cc/layers/picture_layer_impl_unittest.cc#newcode4886 cc/layers/picture_layer_impl_unittest.cc:4886: host_impl_.settings_.can_use_lcd_text = false; Sorry, but I'm not super keen ...
5 years, 7 months ago (2015-04-29 02:18:49 UTC) #50
vmpstr
https://codereview.chromium.org/1051993002/diff/420001/cc/layers/picture_layer_impl_unittest.cc File cc/layers/picture_layer_impl_unittest.cc (right): https://codereview.chromium.org/1051993002/diff/420001/cc/layers/picture_layer_impl_unittest.cc#newcode4886 cc/layers/picture_layer_impl_unittest.cc:4886: host_impl_.settings_.can_use_lcd_text = false; On 2015/04/29 02:18:49, enne wrote: > ...
5 years, 7 months ago (2015-04-29 15:57:01 UTC) #51
vmpstr
As per offline discussion, I changed layer draw_properties_ instead, but I still had to promote ...
5 years, 7 months ago (2015-04-29 17:53:30 UTC) #52
enne (OOO)
https://codereview.chromium.org/1051993002/diff/440001/cc/layers/layer_impl.h File cc/layers/layer_impl.h (right): https://codereview.chromium.org/1051993002/diff/440001/cc/layers/layer_impl.h#newcode806 cc/layers/layer_impl.h:806: DrawProperties<LayerImpl> draw_properties_; Could you just call draw_properties() that returns ...
5 years, 7 months ago (2015-04-29 18:01:24 UTC) #53
vmpstr
On 2015/04/29 18:01:24, enne wrote: > https://codereview.chromium.org/1051993002/diff/440001/cc/layers/layer_impl.h > File cc/layers/layer_impl.h (right): > > https://codereview.chromium.org/1051993002/diff/440001/cc/layers/layer_impl.h#newcode806 > ...
5 years, 7 months ago (2015-04-29 18:23:31 UTC) #54
enne (OOO)
lgtm
5 years, 7 months ago (2015-04-29 18:40:13 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1051993002/460001
5 years, 7 months ago (2015-04-29 20:44:11 UTC) #57
commit-bot: I haz the power
Committed patchset #24 (id:460001)
5 years, 7 months ago (2015-04-29 21:25:40 UTC) #58
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 21:26:37 UTC) #59
Message was sent while issue was closed.
Patchset 24 (id:??) landed as
https://crrev.com/a960b5558d7210bb5bfa67a832f800bb36e629a7
Cr-Commit-Position: refs/heads/master@{#327553}

Powered by Google App Engine
This is Rietveld 408576698