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

Issue 16863005: cc: Add BeginFrameArgs (Closed)

Created:
7 years, 6 months ago by brianderson
Modified:
7 years, 6 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, James Su, boliu, joth, ajuma
Base URL:
http://git.chromium.org/chromium/src.git@nofrc12
Visibility:
Public.

Description

cc: Add BeginFrameArgs In addition to the frame_time, include a deadline and interval with BeginFrame. Values used are placeholders for now, but will be used in the near future. BUG=240945

Patch Set 1 #

Total comments: 17

Patch Set 2 : Rebase and address comments #

Total comments: 1

Patch Set 3 : Fix platform-specific compile errors #

Patch Set 4 : Fix android compile #

Total comments: 8

Patch Set 5 : Make struct. Use const. Use large default deadline. #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -123 lines) Patch
M cc/cc.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A cc/output/begin_frame_args.h View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
A cc/output/begin_frame_args.cc View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
M cc/output/output_surface.h View 1 2 3 4 5 6 4 chunks +12 lines, -4 lines 0 comments Download
M cc/output/output_surface.cc View 1 2 3 4 5 6 4 chunks +8 lines, -4 lines 0 comments Download
M cc/output/output_surface_client.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M cc/output/output_surface_unittest.cc View 1 2 3 4 5 6 5 chunks +7 lines, -7 lines 0 comments Download
M cc/scheduler/frame_rate_controller.h View 1 2 3 4 5 6 5 chunks +6 lines, -5 lines 0 comments Download
M cc/scheduler/frame_rate_controller.cc View 1 2 3 4 5 6 4 chunks +13 lines, -1 line 0 comments Download
M cc/scheduler/frame_rate_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/scheduler/scheduler.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 3 chunks +12 lines, -11 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M cc/scheduler/scheduler_state_machine_unittest.cc View 1 2 3 4 29 chunks +29 lines, -29 lines 0 comments Download
M cc/scheduler/scheduler_unittest.cc View 1 2 3 4 17 chunks +19 lines, -19 lines 0 comments Download
M cc/test/fake_layer_tree_host_impl_client.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M cc/test/fake_output_surface.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/test/scheduler_test_common.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
cc/trees/layer_tree_host_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/single_thread_proxy.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M cc/trees/thread_proxy.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 6 chunks +21 lines, -2 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_output_surface.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 3 chunks +15 lines, -3 lines 0 comments Download
M content/browser/renderer_host/image_transport_factory.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M content/common/cc_messages.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/gpu/compositor_output_surface.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/gpu/compositor_output_surface.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
nduca
yuhsss lgtm
7 years, 6 months ago (2013-06-13 00:16:51 UTC) #1
brianderson
PTAL. Depends on: https://codereview.chromium.org/16833003 This sets and sends BeginFrameArgs everywhere, but doesn't yet use it.
7 years, 6 months ago (2013-06-13 00:16:58 UTC) #2
brianderson
+jschuh for IPC security review.
7 years, 6 months ago (2013-06-13 01:03:03 UTC) #3
brianderson
Also +apatrick for content/renderer/gpu review.
7 years, 6 months ago (2013-06-13 01:10:18 UTC) #4
no sievers
Looks fine for Android with two questions https://codereview.chromium.org/16863005/diff/1/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/16863005/diff/1/content/browser/android/content_view_core_impl.cc#newcode1235 content/browser/android/content_view_core_impl.cc:1235: Is this ...
7 years, 6 months ago (2013-06-13 01:17:47 UTC) #5
Sami
Sweet, lgtm with some nits. https://codereview.chromium.org/16863005/diff/1/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/16863005/diff/1/cc/output/begin_frame_args.h#newcode16 cc/output/begin_frame_args.h:16: BeginFrameArgs(); Can we make ...
7 years, 6 months ago (2013-06-13 10:01:07 UTC) #6
brianderson
https://codereview.chromium.org/16863005/diff/1/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/16863005/diff/1/cc/output/begin_frame_args.h#newcode16 cc/output/begin_frame_args.h:16: BeginFrameArgs(); On 2013/06/13 10:01:07, Sami wrote: > Can we ...
7 years, 6 months ago (2013-06-14 20:12:02 UTC) #7
brianderson
https://codereview.chromium.org/16863005/diff/1/cc/output/begin_frame_args.h File cc/output/begin_frame_args.h (right): https://codereview.chromium.org/16863005/diff/1/cc/output/begin_frame_args.h#newcode16 cc/output/begin_frame_args.h:16: BeginFrameArgs(); On 2013/06/14 20:12:02, Brian Anderson wrote: > On ...
7 years, 6 months ago (2013-06-14 21:07:17 UTC) #8
no sievers
lgtm for Android. +piman for Aura There might be some overlap with has_parent_compositor and other ...
7 years, 6 months ago (2013-06-14 21:15:32 UTC) #9
piman
I'm confused about what this does, so I have some questions first... https://codereview.chromium.org/16863005/diff/25001/cc/output/begin_frame_args.cc File cc/output/begin_frame_args.cc ...
7 years, 6 months ago (2013-06-14 22:53:45 UTC) #10
brianderson
https://codereview.chromium.org/16863005/diff/25001/cc/output/begin_frame_args.cc File cc/output/begin_frame_args.cc (right): https://codereview.chromium.org/16863005/diff/25001/cc/output/begin_frame_args.cc#newcode46 cc/output/begin_frame_args.cc:46: return base::TimeDelta::FromMicroseconds(-8888); On 2013/06/14 22:53:46, piman wrote: > Can ...
7 years, 6 months ago (2013-06-14 23:32:12 UTC) #11
piman
On Fri, Jun 14, 2013 at 4:32 PM, <brianderson@chromium.org> wrote: > > https://codereview.chromium.**org/16863005/diff/25001/cc/** > output/begin_frame_args.cc<https://codereview.chromium.org/16863005/diff/25001/cc/output/begin_frame_args.cc> ...
7 years, 6 months ago (2013-06-15 00:14:28 UTC) #12
brianderson
On 2013/06/15 00:14:28, piman wrote: > On Fri, Jun 14, 2013 at 4:32 PM, <mailto:brianderson@chromium.org> ...
7 years, 6 months ago (2013-06-15 00:39:55 UTC) #13
piman
On Fri, Jun 14, 2013 at 5:39 PM, <brianderson@chromium.org> wrote: > On 2013/06/15 00:14:28, piman ...
7 years, 6 months ago (2013-06-15 01:04:02 UTC) #14
brianderson
7 years, 6 months ago (2013-06-18 19:05:55 UTC) #15
Note: I am moving this review to https://codereview.chromium.org/17391006
because I keep getting the "base files missing error" due to
https://code.google.com/p/rietveld/issues/detail?id=357.

Regarding potential explosion of #ifdefs for the deadline adjustment:
The plan is to avoid hard-coded values as much as possible with Ali's estimation
patch. It'll be a necessary crutch in the short-term however.

For <webview>, I will be working with alexst to figure out how to proceed. In
the short term, we can keep the deadline adjustment large to avoid changing the
scheduling behavior until <webview> gets BeginFrames natively.

Powered by Google App Engine
This is Rietveld 408576698