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

Issue 2778223005: Plumb activation time to main (Closed)

Created:
3 years, 8 months ago by panicker
Modified:
3 years, 8 months ago
CC:
blink-reviews, cc-bugs_chromium.org, chromium-reviews, kinuko+watch, scheduler-bugs_chromium.org, brianderson, vmpstr, enne (OOO), Sami
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumb activation time in cc to Blink Scheduler in Main BUG=657826, 657825 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2778223005 Cr-Commit-Position: refs/heads/master@{#465701} Committed: https://chromium.googlesource.com/chromium/src/+/9a2eb472fde51de48c095c9c208101c534ac211e

Patch Set 1 #

Patch Set 2 : remove performance observer #

Total comments: 6

Patch Set 3 : add a vector instead of single activate frame time #

Total comments: 23

Patch Set 4 : address review comments #

Patch Set 5 : pass 0 for sync tree in NotifyReadyToActivate from SingleThreadProxy #

Total comments: 8

Patch Set 6 : address comments, remove printfs #

Patch Set 7 : add baseline test in layer_tree_host_unittest_proxy; initialize source_frame_number is all ctors #

Total comments: 11

Patch Set 8 : address review comments #

Patch Set 9 : update test; remove test-only method in proxy_main #

Total comments: 11

Patch Set 10 : update test and fix issue with sending 0 vs -1 to NotifyReadyToActivate #

Patch Set 11 : only add activate time if its not already there #

Total comments: 2

Patch Set 12 : address review comment #

Patch Set 13 : rebase to head #

Patch Set 14 : update BeginFrameArgs::Create in renderer scheduler unittest #

Patch Set 15 : update another BeginMainFrame::Create reference #

Total comments: 2

Patch Set 16 : review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -120 lines) Patch
M cc/output/begin_frame_args.h View 1 2 3 4 5 6 7 3 chunks +19 lines, -0 lines 0 comments Download
M cc/output/begin_frame_args.cc View 1 2 3 4 5 6 4 chunks +11 lines, -4 lines 0 comments Download
M cc/output/begin_frame_args_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/scheduler/begin_frame_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -1 line 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 5 30 chunks +30 lines, -30 lines 0 comments Download
M cc/test/begin_frame_args_test.cc View 1 2 3 4 5 6 4 chunks +6 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_proxy.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +75 lines, -0 lines 0 comments Download
M cc/trees/proxy_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -1 line 0 comments Download
M cc/trees/proxy_main.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/compositor/gpu_vsync_begin_frame_source.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 23 chunks +70 lines, -70 lines 0 comments Download
M ui/android/window_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 75 (33 generated)
enne (OOO)
This seems like reasonable plumbing to me. BeginFrameArgs is a good way to send information ...
3 years, 8 months ago (2017-03-30 15:19:25 UTC) #3
panicker
Thanks enne for the feedback. On 2017/03/30 15:19:25, enne wrote: > This seems like reasonable ...
3 years, 8 months ago (2017-03-30 17:34:04 UTC) #4
brianderson
https://codereview.chromium.org/2778223005/diff/20001/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2778223005/diff/20001/cc/output/begin_frame_args.h#newcode112 cc/output/begin_frame_args.h:112: uint32_t ready_to_activate_source_frame_number; BeginFrameArgs are used everywhere, but these fields ...
3 years, 8 months ago (2017-03-30 18:32:04 UTC) #6
panicker
https://codereview.chromium.org/2778223005/diff/20001/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2778223005/diff/20001/cc/output/begin_frame_args.h#newcode112 cc/output/begin_frame_args.h:112: uint32_t ready_to_activate_source_frame_number; On 2017/03/30 18:32:03, brianderson wrote: > BeginFrameArgs ...
3 years, 8 months ago (2017-03-30 21:31:26 UTC) #7
panicker
I tried BeginMainFrameAndCommitState instead of BeginFrameArgs but it seems wrong to me - see detailed ...
3 years, 8 months ago (2017-03-30 23:09:19 UTC) #8
brianderson
https://codereview.chromium.org/2778223005/diff/20001/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2778223005/diff/20001/cc/output/begin_frame_args.h#newcode112 cc/output/begin_frame_args.h:112: uint32_t ready_to_activate_source_frame_number; On 2017/03/30 23:09:19, panicker wrote: > On ...
3 years, 8 months ago (2017-03-31 22:19:49 UTC) #9
panicker
PTAL. I've updated to vector as suggested, and this looks good in local testing. Also ...
3 years, 8 months ago (2017-04-05 18:45:35 UTC) #11
vmpstr
(just some drive-by comments; the approach looks reasonable to me) https://codereview.chromium.org/2778223005/diff/40001/cc/output/begin_frame_args.cc File cc/output/begin_frame_args.cc (right): https://codereview.chromium.org/2778223005/diff/40001/cc/output/begin_frame_args.cc#newcode30 ...
3 years, 8 months ago (2017-04-05 19:11:33 UTC) #12
brianderson
https://codereview.chromium.org/2778223005/diff/40001/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2778223005/diff/40001/cc/output/begin_frame_args.h#newcode108 cc/output/begin_frame_args.h:108: uint32_t frame_source_number; A few comments: * Make sure to ...
3 years, 8 months ago (2017-04-06 23:43:15 UTC) #13
panicker
PTAL. https://codereview.chromium.org/2778223005/diff/40001/cc/output/begin_frame_args.cc File cc/output/begin_frame_args.cc (right): https://codereview.chromium.org/2778223005/diff/40001/cc/output/begin_frame_args.cc#newcode30 cc/output/begin_frame_args.cc:30: BeginFrameArgs::~BeginFrameArgs() {} On 2017/04/05 19:11:33, vmpstr wrote: > ...
3 years, 8 months ago (2017-04-08 00:29:07 UTC) #14
panicker
PTAL https://codereview.chromium.org/2778223005/diff/40001/cc/trees/single_thread_proxy.cc File cc/trees/single_thread_proxy.cc (right): https://codereview.chromium.org/2778223005/diff/40001/cc/trees/single_thread_proxy.cc#newcode627 cc/trees/single_thread_proxy.cc:627: int SingleThreadProxy::SyncTreeSourceFrameNumber() { On 2017/04/08 00:29:07, panicker wrote: ...
3 years, 8 months ago (2017-04-10 22:20:05 UTC) #15
brianderson
lgtm once nits are addressed and debug code removed. https://codereview.chromium.org/2778223005/diff/80001/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2778223005/diff/80001/cc/output/begin_frame_args.h#newcode110 cc/output/begin_frame_args.h:110: ...
3 years, 8 months ago (2017-04-10 23:12:48 UTC) #16
panicker
Thanks for the review. Re: testing any guidance? I don't think updating scheduler_unittest.cc is useful ...
3 years, 8 months ago (2017-04-11 22:19:37 UTC) #17
brianderson
For testing, you may want to copy then modify LayerTreeHostProxyTestCommitWaitsForActivationMFBA, which explicitly gets us into ...
3 years, 8 months ago (2017-04-12 22:34:12 UTC) #22
brianderson
On 2017/04/12 22:34:12, brianderson wrote: > For testing, you may want to copy then modify ...
3 years, 8 months ago (2017-04-12 22:34:38 UTC) #23
panicker
I'm going to go ahead and submit, advise on testing the scenario I mentioned would ...
3 years, 8 months ago (2017-04-12 22:35:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2778223005/100001
3 years, 8 months ago (2017-04-12 22:35:54 UTC) #28
panicker
On 2017/04/12 22:34:38, brianderson wrote: > On 2017/04/12 22:34:12, brianderson wrote: > > For testing, ...
3 years, 8 months ago (2017-04-12 22:37:50 UTC) #29
panicker
I added a baseline test layer_tree_host_unittest_proxy and left a question there. I couldn't find a ...
3 years, 8 months ago (2017-04-13 22:09:22 UTC) #30
brianderson
https://codereview.chromium.org/2778223005/diff/120001/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2778223005/diff/120001/cc/output/begin_frame_args.h#newcode114 cc/output/begin_frame_args.h:114: uint32_t source_frame_number = 0; I like this way of ...
3 years, 8 months ago (2017-04-13 22:36:37 UTC) #31
panicker
https://codereview.chromium.org/2778223005/diff/120001/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2778223005/diff/120001/cc/output/begin_frame_args.h#newcode114 cc/output/begin_frame_args.h:114: uint32_t source_frame_number = 0; On 2017/04/13 22:36:37, brianderson wrote: ...
3 years, 8 months ago (2017-04-14 22:02:45 UTC) #32
brianderson
https://codereview.chromium.org/2778223005/diff/120001/cc/trees/layer_tree_host_unittest_proxy.cc File cc/trees/layer_tree_host_unittest_proxy.cc (right): https://codereview.chromium.org/2778223005/diff/120001/cc/trees/layer_tree_host_unittest_proxy.cc#newcode420 cc/trees/layer_tree_host_unittest_proxy.cc:420: class LayerTreeHostProxyTestActivationTime : public LayerTreeHostProxyTest { ============ Re: test ...
3 years, 8 months ago (2017-04-14 23:34:28 UTC) #33
panicker
PTAL https://codereview.chromium.org/2778223005/diff/120001/cc/trees/proxy_main.h File cc/trees/proxy_main.h (right): https://codereview.chromium.org/2778223005/diff/120001/cc/trees/proxy_main.h#newcode136 cc/trees/proxy_main.h:136: BeginFrameArgs begin_frame_args_for_testing_; On 2017/04/14 22:02:45, panicker wrote: > ...
3 years, 8 months ago (2017-04-17 21:54:50 UTC) #34
brianderson
https://codereview.chromium.org/2778223005/diff/160001/cc/trees/layer_tree_host_unittest_proxy.cc File cc/trees/layer_tree_host_unittest_proxy.cc (left): https://codereview.chromium.org/2778223005/diff/160001/cc/trees/layer_tree_host_unittest_proxy.cc#oldcode324 cc/trees/layer_tree_host_unittest_proxy.cc:324: // should not signal the completion event of the ...
3 years, 8 months ago (2017-04-17 22:26:34 UTC) #36
panicker
Test is working now, thanks!! https://codereview.chromium.org/2778223005/diff/160001/cc/trees/layer_tree_host_unittest_proxy.cc File cc/trees/layer_tree_host_unittest_proxy.cc (left): https://codereview.chromium.org/2778223005/diff/160001/cc/trees/layer_tree_host_unittest_proxy.cc#oldcode324 cc/trees/layer_tree_host_unittest_proxy.cc:324: // should not signal ...
3 years, 8 months ago (2017-04-17 22:53:29 UTC) #37
brianderson
https://codereview.chromium.org/2778223005/diff/200001/cc/scheduler/scheduler.cc File cc/scheduler/scheduler.cc (right): https://codereview.chromium.org/2778223005/diff/200001/cc/scheduler/scheduler.cc#newcode97 cc/scheduler/scheduler.cc:97: ready_to_activate_time_.back().first != (unsigned)source_frame_number) { static_cast, then lgtm.
3 years, 8 months ago (2017-04-17 23:28:50 UTC) #38
panicker
https://codereview.chromium.org/2778223005/diff/200001/cc/scheduler/scheduler.cc File cc/scheduler/scheduler.cc (right): https://codereview.chromium.org/2778223005/diff/200001/cc/scheduler/scheduler.cc#newcode97 cc/scheduler/scheduler.cc:97: ready_to_activate_time_.back().first != (unsigned)source_frame_number) { On 2017/04/17 23:28:50, brianderson wrote: ...
3 years, 8 months ago (2017-04-17 23:32:19 UTC) #39
panicker
+ccameron could you review for OWNERS for content/browser/compositor/gpu_vsync_begin_frame_source.cc
3 years, 8 months ago (2017-04-17 23:34:29 UTC) #41
ccameron
rs lgtm
3 years, 8 months ago (2017-04-18 00:43:08 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2778223005/240001
3 years, 8 months ago (2017-04-18 16:41:23 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/352027)
3 years, 8 months ago (2017-04-18 16:59:29 UTC) #47
panicker
Alex or Sami - could you approve for renderer-scheduler unittest update?
3 years, 8 months ago (2017-04-18 17:23:02 UTC) #51
alex clarke (OOO till 29th)
lgtm
3 years, 8 months ago (2017-04-18 17:25:18 UTC) #52
panicker
miguelg, tedchoc - could one of you review the minor change for /ui/android (OWNERS)
3 years, 8 months ago (2017-04-18 23:05:44 UTC) #60
Ted C
https://codereview.chromium.org/2778223005/diff/240003/ui/android/window_android.cc File ui/android/window_android.cc (right): https://codereview.chromium.org/2778223005/diff/240003/ui/android/window_android.cc#newcode105 ui/android/window_android.cc:105: BEGINFRAME_FROM_HERE, source_id(), next_sequence_number_, 0, frame_time, should this be kDefaultSourceFrameNumber ...
3 years, 8 months ago (2017-04-18 23:11:06 UTC) #61
panicker
https://codereview.chromium.org/2778223005/diff/240003/ui/android/window_android.cc File ui/android/window_android.cc (right): https://codereview.chromium.org/2778223005/diff/240003/ui/android/window_android.cc#newcode105 ui/android/window_android.cc:105: BEGINFRAME_FROM_HERE, source_id(), next_sequence_number_, 0, frame_time, On 2017/04/18 23:11:06, Ted ...
3 years, 8 months ago (2017-04-19 17:22:09 UTC) #62
Ted C
On 2017/04/19 17:22:09, panicker wrote: > https://codereview.chromium.org/2778223005/diff/240003/ui/android/window_android.cc > File ui/android/window_android.cc (right): > > https://codereview.chromium.org/2778223005/diff/240003/ui/android/window_android.cc#newcode105 > ...
3 years, 8 months ago (2017-04-19 17:22:51 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2778223005/280001
3 years, 8 months ago (2017-04-19 17:26:53 UTC) #69
commit-bot: I haz the power
Committed patchset #16 (id:280001) as https://chromium.googlesource.com/chromium/src/+/9a2eb472fde51de48c095c9c208101c534ac211e
3 years, 8 months ago (2017-04-19 19:23:36 UTC) #72
Roger McFarlane (Chromium)
A revert of this CL (patchset #16 id:280001) has been created in https://codereview.chromium.org/2833603002/ by rogerm@chromium.org. ...
3 years, 8 months ago (2017-04-19 21:21:12 UTC) #73
lijeffrey
On 2017/04/19 21:21:12, Roger McFarlane (Chromium) wrote: > A revert of this CL (patchset #16 ...
3 years, 8 months ago (2017-04-20 17:26:33 UTC) #74
panicker
3 years, 8 months ago (2017-04-20 17:33:20 UTC) #75
Message was sent while issue was closed.
On 2017/04/20 17:26:33, lijeffrey wrote:
> On 2017/04/19 21:21:12, Roger McFarlane (Chromium) wrote:
> > A revert of this CL (patchset #16 id:280001) has been created in
> > https://codereview.chromium.org/2833603002/ by mailto:rogerm@chromium.org.
> > 
> > The reason for reverting is: Failure observed in
> > LayerTreeHostProxyTestActivationTime.RunMultiThread_DelegatingRenderer
> > 
> >
>
https://luci-logdog.appspot.com/v/?s=chromium%2Fbb%2Fchromium.win%2FWin7_Test...
> > .
> 
> According to Findit's analysis in
>
https://findit-for-me.appspot.com/waterfall/flake?key=ag9zfmZpbmRpdC1mb3ItbWV...,
> Findit suggests this CL to have introduced flakiness in
> LayerTreeHostProxyTestActivationTime.RunMultiThread_DelegatingRenderer as
> pointed out by Roger.
> 
> Can someone please help confirm?
> 
> Thanks,
> Jeff on behalf of Findit team

That is correct.

Powered by Google App Engine
This is Rietveld 408576698