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

Issue 502453003: cc: Remove tiles from recycle tree that were deleted on active. (Closed)

Created:
6 years, 4 months ago by vmpstr
Modified:
6 years, 3 months ago
Reviewers:
danakj, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Remove tiles from recycle tree that were deleted on active. This patch removes tiles from the recycle tree that were deleted from the active tree as a result of a shifting live tiles rect. It is important to do this, since if the active tree then would recreate the deleted tile (ie, live tiles rect shift back), we have to ensure that this tile will be shared when the next pending tree is created. If we don't do it, we can run into a situation in which we will continuously raster the same tile. The patch does the following: - Adds a way to get a recycled tree twin tiling. - During LiveTilesRect tile deletion, deletes tiles from the same location from the recycle twin (if one exists). R=danakj, enne Committed: https://crrev.com/7fceb77977afd9af22215eb9cd28ab667567668e Cr-Commit-Position: refs/heads/master@{#291949}

Patch Set 1 #

Total comments: 2

Patch Set 2 : tests #

Patch Set 3 : +address comment #

Total comments: 2

Patch Set 4 : +comments #

Patch Set 5 : don't maintain recycled twin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -6 lines) Patch
M cc/debug/rasterize_and_record_benchmark_impl.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 4 chunks +16 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 4 chunks +33 lines, -1 line 0 comments Download
M cc/resources/picture_layer_tiling.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M cc/resources/picture_layer_tiling.cc View 1 3 chunks +12 lines, -0 lines 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.cc View 1 2 3 4 3 chunks +11 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
vmpstr
Hi, This is the approach I was thinking of taking. Please take a look. The ...
6 years, 4 months ago (2014-08-22 15:16:23 UTC) #1
enne (OOO)
This seems legit to me.
6 years, 4 months ago (2014-08-22 19:56:55 UTC) #2
enne (OOO)
https://codereview.chromium.org/502453003/diff/1/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/502453003/diff/1/cc/layers/picture_layer_impl.cc#newcode620 cc/layers/picture_layer_impl.cc:620: for (size_t i = 0; i < recycled_twin_layer_->tilings_->num_tilings(); ++i) ...
6 years, 4 months ago (2014-08-22 21:36:09 UTC) #3
vmpstr
Added some tests. https://codereview.chromium.org/502453003/diff/1/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/502453003/diff/1/cc/layers/picture_layer_impl.cc#newcode620 cc/layers/picture_layer_impl.cc:620: for (size_t i = 0; i ...
6 years, 4 months ago (2014-08-22 22:47:30 UTC) #4
enne (OOO)
https://codereview.chromium.org/502453003/diff/40001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/502453003/diff/40001/cc/resources/picture_layer_tiling_unittest.cc#newcode1951 cc/resources/picture_layer_tiling_unittest.cc:1951: TEST(PictureLayerTilingTest, RecycledTilesCleared) { For forgetful future ennes, could you ...
6 years, 4 months ago (2014-08-22 23:01:05 UTC) #5
vmpstr
PTAL https://codereview.chromium.org/502453003/diff/40001/cc/resources/picture_layer_tiling_unittest.cc File cc/resources/picture_layer_tiling_unittest.cc (right): https://codereview.chromium.org/502453003/diff/40001/cc/resources/picture_layer_tiling_unittest.cc#newcode1951 cc/resources/picture_layer_tiling_unittest.cc:1951: TEST(PictureLayerTilingTest, RecycledTilesCleared) { On 2014/08/22 23:01:05, enne wrote: ...
6 years, 4 months ago (2014-08-25 18:41:00 UTC) #6
enne (OOO)
lgtm
6 years, 4 months ago (2014-08-25 20:00:29 UTC) #7
vmpstr
The CQ bit was checked by vmpstr@chromium.org
6 years, 4 months ago (2014-08-25 21:23:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/502453003/60001
6 years, 4 months ago (2014-08-25 21:25:24 UTC) #9
vmpstr
The CQ bit was unchecked by vmpstr@chromium.org
6 years, 4 months ago (2014-08-25 21:37:52 UTC) #10
vmpstr
PTAL. I removed maintaining of the recycle tree here and added a todo. See crbug.com/407418. ...
6 years, 4 months ago (2014-08-26 00:05:22 UTC) #11
enne (OOO)
lgtm. Maintaining pointers to the recycle tree seems like it could be dodgy. PS Why ...
6 years, 3 months ago (2014-08-26 16:59:59 UTC) #12
vmpstr
On 2014/08/26 16:59:59, enne wrote: > lgtm. Maintaining pointers to the recycle tree seems like ...
6 years, 3 months ago (2014-08-26 17:03:33 UTC) #13
vmpstr
The CQ bit was checked by vmpstr@chromium.org
6 years, 3 months ago (2014-08-26 17:03:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmpstr@chromium.org/502453003/80001
6 years, 3 months ago (2014-08-26 17:04:40 UTC) #15
danakj
On Tue, Aug 26, 2014 at 1:03 PM, <vmpstr@chromium.org> wrote: > On 2014/08/26 16:59:59, enne ...
6 years, 3 months ago (2014-08-26 17:22:08 UTC) #16
vmpstr
On 2014/08/26 17:22:08, danakj wrote: > On Tue, Aug 26, 2014 at 1:03 PM, <mailto:vmpstr@chromium.org> ...
6 years, 3 months ago (2014-08-26 18:01:40 UTC) #17
danakj
On Tue, Aug 26, 2014 at 1:21 PM, Dana Jansens <danakj@chromium.org> wrote: > On Tue, ...
6 years, 3 months ago (2014-08-26 18:04:57 UTC) #18
enne (OOO)
Ah, ok, quite right. :)
6 years, 3 months ago (2014-08-26 18:11:55 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (80001) as b1733f3e4f8411dfa234908062538bc47010acbe
6 years, 3 months ago (2014-08-26 18:52:13 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:44:22 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7fceb77977afd9af22215eb9cd28ab667567668e
Cr-Commit-Position: refs/heads/master@{#291949}

Powered by Google App Engine
This is Rietveld 408576698