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

Issue 12259027: cc: Simplify the logic for deciding to update tile priorities. (Closed)

Created:
7 years, 10 months ago by danakj
Modified:
7 years, 7 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, piman, backer, joth
Visibility:
Public.

Description

cc: Simplify the logic for deciding to update tile priorities. Only update priorities for a layer if it has at least one tiling that has not had its priorities updated yet for the current impl-side frame. Commits happens at the start of an impl frame, so they are guaranteed to get updated priorities. Any tilings that are newly created are also guaranteed since they have no frame timestamp saved in them. When we activate and draw the pending tree, we will only update the tile priorities a single time. R=enne BUG=176312 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197976

Patch Set 1 : #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : New tilings cause us to update tile props #

Patch Set 4 : Avoid project more agressively. Don't save state for tile prio if we didn't compute tile prio. #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Super simple #

Patch Set 8 : Sper simple x2 #

Total comments: 5

Patch Set 9 : No extra virtual #

Patch Set 10 : No extra virtual #

Patch Set 11 : Remove the LTI variable #

Total comments: 2

Patch Set 12 : current_frame_time_in_seconds, #

Patch Set 13 : in_seconds #

Total comments: 2

Patch Set 14 : #

Patch Set 15 : rebsae #

Patch Set 16 : rebase #

Patch Set 17 : rebase #

Patch Set 18 : Rebase and don't clone prioritization properties if we don't clone tiles #

Patch Set 19 : Add early-out and unit test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -164 lines) Patch
M cc/layers/layer_position_constraint_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -9 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +16 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 3 chunks +6 lines, -4 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 5 chunks +11 lines, -28 lines 2 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 1 chunk +1 line, -2 lines 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 2 chunks +2 lines, -4 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 16 17 18 9 chunks +74 lines, -12 lines 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +6 lines, -13 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 20 chunks +28 lines, -47 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +4 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +3 lines, -20 lines 0 comments Download
M cc/trees/occlusion_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 56 (0 generated)
danakj
7 years, 10 months ago (2013-02-14 17:51:47 UTC) #1
danakj
Also added an early-out in PLImpl::UpdateTilePriorities if the layer has no tilings, to avoid the ...
7 years, 10 months ago (2013-02-14 17:59:00 UTC) #2
ccameron
This should help some, though we'll still end up having to update priorities while zooming/scrolling. ...
7 years, 10 months ago (2013-02-14 18:35:10 UTC) #3
danakj
https://codereview.chromium.org/12259027/diff/10001/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/12259027/diff/10001/cc/picture_layer_impl.cc#newcode241 cc/picture_layer_impl.cc:241: On 2013/02/14 18:35:10, ccameron1 wrote: > It'd be really ...
7 years, 10 months ago (2013-02-14 18:41:24 UTC) #4
enne (OOO)
lgtm
7 years, 10 months ago (2013-02-14 20:40:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/10001
7 years, 10 months ago (2013-02-14 20:44:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/10001
7 years, 10 months ago (2013-02-14 22:29:16 UTC) #7
danakj
One change PTAL. When PLImpl does AddTiling, it sets needs_update_tile_priorities. This ensures that if you ...
7 years, 10 months ago (2013-02-15 18:07:59 UTC) #8
danakj
I think we could also avoid the matrix inverse/project a bit more aggressively. If there's ...
7 years, 10 months ago (2013-02-15 18:24:13 UTC) #9
danakj
review ping, enne can you PTAL at this? it changed a bunch since your first ...
7 years, 9 months ago (2013-03-03 19:26:10 UTC) #10
enne (OOO)
https://codereview.chromium.org/12259027/diff/23001/cc/layer_tree_impl.cc File cc/layer_tree_impl.cc (right): https://codereview.chromium.org/12259027/diff/23001/cc/layer_tree_impl.cc#newcode224 cc/layer_tree_impl.cc:224: DCHECK_EQ(UPDATE_ACTIVE_TREE_FOR_DRAW, reason); The change that added this UpdateDrawProperties reason ...
7 years, 9 months ago (2013-03-04 20:16:39 UTC) #11
danakj
PTAL. The "set_needs_update_tile_priorities" was really there to make sure new tilings got prioritized immediately. But ...
7 years, 8 months ago (2013-04-19 23:24:45 UTC) #12
danakj
On Fri, Apr 19, 2013 at 7:24 PM, <danakj@chromium.org> wrote: > PTAL. > > The ...
7 years, 8 months ago (2013-04-19 23:27:12 UTC) #13
danakj
On 2013/04/19 23:27:12, danakj wrote: > Hm.... but maybe this isn't quite great yet cuz ...
7 years, 8 months ago (2013-04-19 23:48:09 UTC) #14
enne (OOO)
https://codereview.chromium.org/12259027/diff/46001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/12259027/diff/46001/cc/trees/layer_tree_host_common.cc#newcode1403 cc/trees/layer_tree_host_common.cc:1403: NeedsFirstTimeUpdateTilePrioritiesForLayer(layer)) I'm a little ಠ_ಠ at adding yet another ...
7 years, 8 months ago (2013-04-22 17:03:48 UTC) #15
danakj
https://codereview.chromium.org/12259027/diff/46001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/12259027/diff/46001/cc/trees/layer_tree_host_common.cc#newcode1403 cc/trees/layer_tree_host_common.cc:1403: NeedsFirstTimeUpdateTilePrioritiesForLayer(layer)) On 2013/04/22 17:03:48, enne wrote: > I'm a ...
7 years, 8 months ago (2013-04-22 18:37:30 UTC) #16
danakj
Updated the CL without the extra virtual.
7 years, 8 months ago (2013-04-22 18:44:07 UTC) #17
enne (OOO)
https://codereview.chromium.org/12259027/diff/46001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/12259027/diff/46001/cc/trees/layer_tree_host_common.cc#newcode1403 cc/trees/layer_tree_host_common.cc:1403: NeedsFirstTimeUpdateTilePrioritiesForLayer(layer)) On 2013/04/22 18:37:30, danakj wrote: > Ah, I ...
7 years, 8 months ago (2013-04-22 18:44:13 UTC) #18
danakj
https://codereview.chromium.org/12259027/diff/46001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/12259027/diff/46001/cc/trees/layer_tree_host_common.cc#newcode1403 cc/trees/layer_tree_host_common.cc:1403: NeedsFirstTimeUpdateTilePrioritiesForLayer(layer)) On 2013/04/22 18:44:13, enne wrote: > On 2013/04/22 ...
7 years, 8 months ago (2013-04-22 18:59:38 UTC) #19
enne (OOO)
I do like this a lot better, thanks. I assume the perf test is still ...
7 years, 8 months ago (2013-04-22 19:19:40 UTC) #20
danakj
https://codereview.chromium.org/12259027/diff/57010/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/12259027/diff/57010/cc/layers/picture_layer_impl.cc#newcode268 cc/layers/picture_layer_impl.cc:268: double current_frame_time = (layer_tree_impl()->CurrentFrameTimeTicks() - On 2013/04/22 19:19:40, enne ...
7 years, 8 months ago (2013-04-22 19:26:53 UTC) #21
danakj
Before: [==========] Running 3 tests from 2 test cases. [----------] Global test environment set-up. [----------] ...
7 years, 8 months ago (2013-04-22 19:29:09 UTC) #22
danakj
Renamed current_frame_time_in_seconds, PTAL
7 years, 8 months ago (2013-04-22 19:31:00 UTC) #23
danakj
Updated the description too.
7 years, 8 months ago (2013-04-22 19:37:48 UTC) #24
enne (OOO)
lgtm https://codereview.chromium.org/12259027/diff/68001/cc/resources/picture_layer_tiling.h File cc/resources/picture_layer_tiling.h (right): https://codereview.chromium.org/12259027/diff/68001/cc/resources/picture_layer_tiling.h#newcode153 cc/resources/picture_layer_tiling.h:153: return frame_time_in_seconds != last_impl_frame_time_; last_impl_frame_time => last_frame_time_in_seconds?
7 years, 8 months ago (2013-04-22 19:44:17 UTC) #25
danakj
https://codereview.chromium.org/12259027/diff/68001/cc/resources/picture_layer_tiling.h File cc/resources/picture_layer_tiling.h (right): https://codereview.chromium.org/12259027/diff/68001/cc/resources/picture_layer_tiling.h#newcode153 cc/resources/picture_layer_tiling.h:153: return frame_time_in_seconds != last_impl_frame_time_; On 2013/04/22 19:44:17, enne wrote: ...
7 years, 8 months ago (2013-04-22 19:47:59 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/61018
7 years, 8 months ago (2013-04-22 19:49:00 UTC) #27
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-22 19:50:43 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/61018
7 years, 8 months ago (2013-04-22 19:51:28 UTC) #29
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 8 months ago (2013-04-23 03:33:47 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/61018
7 years, 8 months ago (2013-04-23 14:45:14 UTC) #31
commit-bot: I haz the power
Failed to apply patch for cc/trees/layer_tree_host_common.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-23 14:45:19 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/83001
7 years, 8 months ago (2013-04-23 14:47:03 UTC) #33
commit-bot: I haz the power
Failed to apply patch for cc/trees/layer_tree_host_common.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-23 14:47:08 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/82003
7 years, 8 months ago (2013-04-23 14:47:53 UTC) #35
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-23 14:59:23 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/82003
7 years, 8 months ago (2013-04-23 15:32:57 UTC) #37
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 8 months ago (2013-04-23 22:03:08 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/82003
7 years, 7 months ago (2013-04-29 19:48:55 UTC) #39
commit-bot: I haz the power
Failed to apply patch for cc/layers/layer_position_constraint_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-04-29 19:48:59 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/102001
7 years, 7 months ago (2013-04-30 00:55:02 UTC) #41
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 7 months ago (2013-04-30 01:10:26 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/102001
7 years, 7 months ago (2013-04-30 01:15:25 UTC) #43
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 7 months ago (2013-04-30 06:44:35 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/102001
7 years, 7 months ago (2013-04-30 18:15:23 UTC) #45
danakj
+aelias This seems to be crashing the webview tests somehow, but there's not stacktrace or ...
7 years, 7 months ago (2013-04-30 21:13:40 UTC) #46
aelias_OOO_until_Jul13
[+joth for help on WebView test failures]
7 years, 7 months ago (2013-04-30 21:29:52 UTC) #47
joth
There should be some more info in the logcat dump: http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/49562/steps/logcat_dump/logs/stdio 08015: 04-30 02:27:12.929 24954 ...
7 years, 7 months ago (2013-04-30 22:10:44 UTC) #48
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 7 months ago (2013-05-01 05:01:53 UTC) #49
enne (OOO)
https://codereview.chromium.org/12259027/diff/139001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/12259027/diff/139001/cc/resources/picture_layer_tiling.cc#newcode35 cc/resources/picture_layer_tiling.cc:35: out->resolution_ = resolution_; Looking at this code closer, but ...
7 years, 7 months ago (2013-05-02 19:59:45 UTC) #50
danakj
https://codereview.chromium.org/12259027/diff/139001/cc/resources/picture_layer_tiling.cc File cc/resources/picture_layer_tiling.cc (right): https://codereview.chromium.org/12259027/diff/139001/cc/resources/picture_layer_tiling.cc#newcode35 cc/resources/picture_layer_tiling.cc:35: out->resolution_ = resolution_; On 2013/05/02 19:59:46, enne wrote: > ...
7 years, 7 months ago (2013-05-02 20:02:04 UTC) #51
enne (OOO)
sgtm and lgtm
7 years, 7 months ago (2013-05-02 20:03:45 UTC) #52
danakj
Thanks joth, that helped out!
7 years, 7 months ago (2013-05-02 20:59:49 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/139001
7 years, 7 months ago (2013-05-02 21:00:04 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12259027/139001
7 years, 7 months ago (2013-05-02 21:54:21 UTC) #55
commit-bot: I haz the power
7 years, 7 months ago (2013-05-02 22:02:06 UTC) #56
Message was sent while issue was closed.
Change committed as 197976

Powered by Google App Engine
This is Rietveld 408576698