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

Issue 1251693002: cc: Consider Surface active if frame received recently (Closed)

Created:
5 years, 5 months ago by brianderson
Modified:
5 years, 4 months ago
Reviewers:
sunnyps, mithro-old
CC:
chromium-reviews, cc-bugs_chromium.org, jbauman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Consider Surface active if frame received recently Current logic considers a child surface active if it has submitted two frames in the last two vsyncs. This hurts 30fps or 24fps video use cases, so change the heuristic to consider a child surface active if it has submitted a frame anytime within the last 3 vsyncs. BUG=493751 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/b189b0f12544df1f65bd5a189b005e86908b1495 Cr-Commit-Position: refs/heads/master@{#340299}

Patch Set 1 #

Patch Set 2 : test #

Patch Set 3 : 20fps + single surface 20fps #

Total comments: 11

Patch Set 4 : address some comments #

Patch Set 5 : active_child_surface_ids_ #

Total comments: 14

Patch Set 6 : address comments; needs rebase #

Patch Set 7 : rebase on resize logging patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -36 lines) Patch
M cc/surfaces/display_scheduler.h View 1 2 3 4 5 6 2 chunks +10 lines, -5 lines 0 comments Download
M cc/surfaces/display_scheduler.cc View 1 2 3 4 5 6 8 chunks +55 lines, -31 lines 0 comments Download
M cc/surfaces/display_scheduler_unittest.cc View 1 2 3 4 5 6 1 chunk +153 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 18 (3 generated)
brianderson
ptal
5 years, 5 months ago (2015-07-21 22:44:53 UTC) #2
sunnyps
On 2015/07/21 22:44:53, brianderson wrote: > ptal Can you add a test for 24fps? I ...
5 years, 5 months ago (2015-07-21 22:51:47 UTC) #3
brianderson
On 2015/07/21 22:51:47, sunnyps wrote: > On 2015/07/21 22:44:53, brianderson wrote: > > ptal > ...
5 years, 5 months ago (2015-07-21 23:28:18 UTC) #4
brianderson
Addressed Sunny's comments. Had to restructure the code a little to handle a single surface ...
5 years, 5 months ago (2015-07-22 00:29:47 UTC) #5
sunnyps
Left a few comments. Tests look good. https://codereview.chromium.org/1251693002/diff/40001/cc/surfaces/display_scheduler.cc File cc/surfaces/display_scheduler.cc (right): https://codereview.chromium.org/1251693002/diff/40001/cc/surfaces/display_scheduler.cc#newcode100 cc/surfaces/display_scheduler.cc:100: expect_damage_from_root_surface_ = ...
5 years, 5 months ago (2015-07-23 03:02:40 UTC) #6
brianderson
https://codereview.chromium.org/1251693002/diff/40001/cc/surfaces/display_scheduler.cc File cc/surfaces/display_scheduler.cc (right): https://codereview.chromium.org/1251693002/diff/40001/cc/surfaces/display_scheduler.cc#newcode100 cc/surfaces/display_scheduler.cc:100: expect_damage_from_root_surface_ = root_surface_damaged_; On 2015/07/23 03:02:40, sunnyps wrote: > ...
5 years, 5 months ago (2015-07-23 18:21:46 UTC) #7
brianderson
On 2015/07/23 18:21:46, brianderson wrote: > https://codereview.chromium.org/1251693002/diff/40001/cc/surfaces/display_scheduler.cc > File cc/surfaces/display_scheduler.cc (right): > > https://codereview.chromium.org/1251693002/diff/40001/cc/surfaces/display_scheduler.cc#newcode100 > ...
5 years, 5 months ago (2015-07-23 18:34:27 UTC) #8
brianderson
Ptal. Using a circular buffer of active_child_surface_ids now. Also renamed expect_damage_from_root_surface_ to root_surface_active to be ...
5 years, 5 months ago (2015-07-23 20:44:03 UTC) #9
sunnyps
LGTM with nits. https://codereview.chromium.org/1251693002/diff/40001/cc/surfaces/display_scheduler.h File cc/surfaces/display_scheduler.h (right): https://codereview.chromium.org/1251693002/diff/40001/cc/surfaces/display_scheduler.h#newcode84 cc/surfaces/display_scheduler.h:84: std::set<SurfaceId> child_surface_ids_damaged_prev_prev_; On 2015/07/23 18:21:46, brianderson ...
5 years, 5 months ago (2015-07-23 21:10:38 UTC) #10
brianderson
https://codereview.chromium.org/1251693002/diff/80001/cc/surfaces/display_scheduler.cc File cc/surfaces/display_scheduler.cc (right): https://codereview.chromium.org/1251693002/diff/80001/cc/surfaces/display_scheduler.cc#newcode184 cc/surfaces/display_scheduler.cc:184: if (all_active_child_surfaces_ready_to_draw_ && root_surface_active_) { On 2015/07/23 21:10:38, sunnyps ...
5 years, 5 months ago (2015-07-23 22:21:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251693002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251693002/120001
5 years, 5 months ago (2015-07-24 17:49:12 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 5 months ago (2015-07-24 18:57:55 UTC) #15
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/b189b0f12544df1f65bd5a189b005e86908b1495 Cr-Commit-Position: refs/heads/master@{#340299}
5 years, 5 months ago (2015-07-24 18:59:18 UTC) #16
brianderson
Going to revert his while I debug locally why this made things worse instead of ...
5 years, 4 months ago (2015-07-28 18:05:38 UTC) #17
brianderson
5 years, 4 months ago (2015-07-28 18:06:57 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1258273005/ by brianderson@chromium.org.

The reason for reverting is: This caused regressions in 24/30fps cast tests in
stead of improving them.

See crbug.com/514075 for details.
.

Powered by Google App Engine
This is Rietveld 408576698