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

Issue 2583483002: [cc] Adds source_id and sequence_number to BeginFrameArgs. (Closed)

Created:
4 years ago by Eric Seckler
Modified:
4 years ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nona+watch_chromium.org, shuchen+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, blink-reviews, piman+watch_chromium.org, cc-bugs_chromium.org, James Su, scheduler-bugs_chromium.org, darin (slow to review), yusukes+watch_chromium.org, enne (OOO), Sami, Ted C
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[cc] Adds source_id and sequence_number to BeginFrameArgs. Also uses the sequence number in external BeginFrameSources to decide whether a missed BeginFrame should be sent. BUG=646774, 401331 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/1ce4fd58dd1e43b5e033ab4d1a35028b04ac0224 Cr-Commit-Position: refs/heads/master@{#440382}

Patch Set 1 #

Total comments: 32

Patch Set 2 : Address Sami's comments #

Total comments: 8

Patch Set 3 : Address Brian's comments. #

Total comments: 2

Patch Set 4 : fix WindowBeginFrameSource::AddObserver() DCHECK. #

Patch Set 5 : rebase #

Total comments: 4

Patch Set 6 : fix field ordering #

Unified diffs Side-by-side diffs Delta from patch set Stats (+933 lines, -621 lines) Patch
M cc/blimp/layer_tree_host_remote.h View 2 chunks +6 lines, -0 lines 0 comments Download
M cc/blimp/layer_tree_host_remote.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M cc/ipc/begin_frame_args.mojom View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/ipc/begin_frame_args_struct_traits.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M cc/ipc/cc_param_traits_macros.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/output/begin_frame_args.h View 1 2 3 4 5 4 chunks +17 lines, -1 line 0 comments Download
M cc/output/begin_frame_args.cc View 1 2 3 chunks +20 lines, -5 lines 0 comments Download
M cc/output/begin_frame_args_unittest.cc View 3 chunks +42 lines, -17 lines 0 comments Download
M cc/scheduler/begin_frame_source.h View 1 2 5 chunks +17 lines, -2 lines 0 comments Download
M cc/scheduler/begin_frame_source.cc View 1 2 3 4 10 chunks +67 lines, -21 lines 0 comments Download
M cc/scheduler/begin_frame_source_unittest.cc View 1 2 3 4 26 chunks +111 lines, -60 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 5 chunks +13 lines, -5 lines 0 comments Download
M cc/surfaces/display_scheduler_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/begin_frame_args_test.h View 2 chunks +11 lines, -1 line 0 comments Download
M cc/test/begin_frame_args_test.cc View 3 chunks +32 lines, -15 lines 0 comments Download
M cc/test/begin_frame_source_test.h View 2 chunks +36 lines, -27 lines 0 comments Download
M cc/test/begin_frame_source_test.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/begin_frame_source_test_unittest.cc View 1 chunk +58 lines, -58 lines 0 comments Download
M cc/test/fake_external_begin_frame_source.h View 2 chunks +2 lines, -0 lines 0 comments Download
M cc/test/fake_external_begin_frame_source.cc View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 151 chunks +378 lines, -342 lines 0 comments Download
M cc/trees/single_thread_proxy.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/gpu/compositor_forwarding_message_filter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/renderer/renderer_scheduler_impl_unittest.cc View 1 2 3 4 25 chunks +77 lines, -50 lines 0 comments Download
M ui/android/window_android.cc View 1 2 3 4 4 chunks +10 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 42 (25 generated)
Eric Seckler
Hi Brian, as promised, sequence numbers first! :) Thanks!
4 years ago (2016-12-15 13:23:00 UTC) #5
Sami
Non-owner lgtm. https://codereview.chromium.org/2583483002/diff/1/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2583483002/diff/1/cc/output/begin_frame_args.h#newcode94 cc/output/begin_frame_args.h:94: uint32_t source_id; nit: move source_id toward the ...
4 years ago (2016-12-15 13:53:01 UTC) #9
Eric Seckler
Thanks, Sami! https://codereview.chromium.org/2583483002/diff/1/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2583483002/diff/1/cc/output/begin_frame_args.h#newcode94 cc/output/begin_frame_args.h:94: uint32_t source_id; On 2016/12/15 13:53:00, Sami wrote: ...
4 years ago (2016-12-15 14:59:38 UTC) #10
brianderson
Only looked at the begin_frame_[source|args] files so far. https://codereview.chromium.org/2583483002/diff/1/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2583483002/diff/1/cc/output/begin_frame_args.h#newcode53 cc/output/begin_frame_args.h:53: static ...
4 years ago (2016-12-15 20:30:36 UTC) #11
brianderson
https://codereview.chromium.org/2583483002/diff/1/cc/blimp/layer_tree_host_remote.cc File cc/blimp/layer_tree_host_remote.cc (right): https://codereview.chromium.org/2583483002/diff/1/cc/blimp/layer_tree_host_remote.cc#newcode374 cc/blimp/layer_tree_host_remote.cc:374: begin_frame_number_++, now, now + kDefaultFrameInterval, Increment after the call. ...
4 years ago (2016-12-15 22:10:33 UTC) #12
Eric Seckler
Thank you for the fantastic turn-around, Brian :D https://codereview.chromium.org/2583483002/diff/1/cc/blimp/layer_tree_host_remote.cc File cc/blimp/layer_tree_host_remote.cc (right): https://codereview.chromium.org/2583483002/diff/1/cc/blimp/layer_tree_host_remote.cc#newcode374 cc/blimp/layer_tree_host_remote.cc:374: begin_frame_number_++, ...
4 years ago (2016-12-16 17:25:58 UTC) #13
Eric Seckler
+tedchoc@ for ui/android/window_android.cc Nasko, would you be happy to look at content/ and the IPC ...
4 years ago (2016-12-16 17:32:09 UTC) #15
brianderson
lgtm! https://codereview.chromium.org/2583483002/diff/1/cc/scheduler/begin_frame_source.cc File cc/scheduler/begin_frame_source.cc (right): https://codereview.chromium.org/2583483002/diff/1/cc/scheduler/begin_frame_source.cc#newcode257 cc/scheduler/begin_frame_source.cc:257: last_args.sequence_number)) { On 2016/12/16 17:25:57, Eric Seckler wrote: ...
4 years ago (2016-12-16 17:53:38 UTC) #16
Eric Seckler
nasko@ friendly ping :) Ted is OOO, adding twellington@ for ui/android/window_android.cc instead. https://codereview.chromium.org/2583483002/diff/40001/ui/android/window_android.cc File ui/android/window_android.cc ...
4 years ago (2016-12-20 12:52:29 UTC) #20
Theresa
+boliu@ to look at window_android.cc, then I'll do an OWNERS stamp.
4 years ago (2016-12-20 16:35:21 UTC) #27
boliu
On 2016/12/20 16:35:21, Theresa Wellington wrote: > +boliu@ to look at window_android.cc, then I'll do ...
4 years ago (2016-12-20 16:38:02 UTC) #28
Theresa
lgtm
4 years ago (2016-12-20 16:38:28 UTC) #29
nasko
IPC and content/ LGTM with a couple of nits. https://codereview.chromium.org/2583483002/diff/100001/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2583483002/diff/100001/cc/output/begin_frame_args.h#newcode99 cc/output/begin_frame_args.h:99: ...
4 years ago (2016-12-21 17:31:45 UTC) #32
Eric Seckler
Thanks Nasko! https://codereview.chromium.org/2583483002/diff/100001/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/2583483002/diff/100001/cc/output/begin_frame_args.h#newcode99 cc/output/begin_frame_args.h:99: uint32_t source_id; On 2016/12/21 17:31:45, nasko wrote: ...
4 years ago (2016-12-22 09:20:27 UTC) #34
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/2583483002/140001
4 years ago (2016-12-22 09:22:07 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years ago (2016-12-22 11:24:14 UTC) #40
commit-bot: I haz the power
4 years ago (2016-12-22 11:28:17 UTC) #42
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1ce4fd58dd1e43b5e033ab4d1a35028b04ac0224
Cr-Commit-Position: refs/heads/master@{#440382}

Powered by Google App Engine
This is Rietveld 408576698