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

Issue 577273003: Add new latency_info for tracking browser composite time. (Closed)

Created:
6 years, 3 months ago by orglofch
Modified:
6 years, 2 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tdresser+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, James Su, Sami
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add new latency_info for tracking browser composite time. RenderWidgetHostImpl maintains a rolling estimate of composite times to be passed to RenderWidgetHostViewAndroid::SendBeginFrame to improve deadline estimate. Latency info is still currently tied to input events. Future patch should make the latency_info update on a per frame basis. BUG=414365 Committed: https://crrev.com/545a72d3f37fa15844cb08d83db7cca672b79cd0 Cr-Commit-Position: refs/heads/master@{#297950}

Patch Set 1 #

Patch Set 2 : rm useless comment #

Total comments: 12

Patch Set 3 : Rename and add id's to components #

Total comments: 4

Patch Set 4 : add estimate slack #

Patch Set 5 : made slack constant #

Total comments: 9

Patch Set 6 : Tuned kTypicalMaxComponentsPerLatencyInfo #

Patch Set 7 : Sievers Review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -7 lines) Patch
M cc/base/rolling_time_delta_history.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/base/rolling_time_delta_history.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 5 chunks +36 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 1 chunk +2 lines, -6 lines 0 comments Download
M content/common/gpu/image_transport_surface.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/latency_info.h View 1 2 3 4 5 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 32 (11 generated)
orglofch
PTAL
6 years, 3 months ago (2014-09-18 21:28:34 UTC) #4
brianderson
https://codereview.chromium.org/577273003/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/577273003/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1460 content/browser/renderer_host/render_widget_host_impl.cc:1460: ui::INPUT_EVENT_BROWSER_COMPOSITE_COMPONENT, 0, 0); If the Browser is swap or ...
6 years, 3 months ago (2014-09-18 23:26:15 UTC) #5
jbauman
https://codereview.chromium.org/577273003/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/577273003/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1460 content/browser/renderer_host/render_widget_host_impl.cc:1460: ui::INPUT_EVENT_BROWSER_COMPOSITE_COMPONENT, 0, 0); This should specify GetLatencyComponentId() as the ...
6 years, 3 months ago (2014-09-19 20:40:29 UTC) #6
orglofch
https://codereview.chromium.org/577273003/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/577273003/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1460 content/browser/renderer_host/render_widget_host_impl.cc:1460: ui::INPUT_EVENT_BROWSER_COMPOSITE_COMPONENT, 0, 0); On 2014/09/19 20:40:29, jbauman wrote: > ...
6 years, 3 months ago (2014-09-19 22:40:27 UTC) #8
brianderson
lgtm w/ nits, but you'll need OWNERS approval for dirs other than cc. This gives ...
6 years, 3 months ago (2014-09-22 22:59:35 UTC) #9
orglofch
https://codereview.chromium.org/577273003/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/577273003/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2347 content/browser/renderer_host/render_widget_host_impl.cc:2347: return browser_composite_latency_history_.Percentile( On 2014/09/22 22:59:35, brianderson wrote: > Let's ...
6 years, 3 months ago (2014-09-22 23:55:15 UTC) #13
mithro-old
Does this make sense to support for all platforms, not just Android?
6 years, 3 months ago (2014-09-23 08:22:06 UTC) #15
orglofch
Yes, the plan is to move this to other platforms once unified begin frame has ...
6 years, 3 months ago (2014-09-23 17:34:40 UTC) #16
brianderson
@miletus: Can you review the LatencyInfo bits of this patch? @sievers, @jbauman: Do the other ...
6 years, 2 months ago (2014-10-01 19:44:18 UTC) #18
jbauman
lgtm
6 years, 2 months ago (2014-10-01 21:31:54 UTC) #19
Yufeng Shen (Slow to review)
https://codereview.chromium.org/577273003/diff/180001/ui/events/latency_info.h File ui/events/latency_info.h (right): https://codereview.chromium.org/577273003/diff/180001/ui/events/latency_info.h#newcode105 ui/events/latency_info.h:105: // Empirically determined constant based on a typical scroll ...
6 years, 2 months ago (2014-10-01 21:46:19 UTC) #20
no sievers
https://codereview.chromium.org/577273003/diff/180001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/577273003/diff/180001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2165 content/browser/renderer_host/render_widget_host_impl.cc:2165: if (latency_info.FindLatency(ui::INPUT_EVENT_RENDERER_SWAP_RECEIVED_COMPONENT, Hmm, so does that ignore the time ...
6 years, 2 months ago (2014-10-01 22:15:08 UTC) #21
orglofch
https://codereview.chromium.org/577273003/diff/180001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/577273003/diff/180001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2165 content/browser/renderer_host/render_widget_host_impl.cc:2165: if (latency_info.FindLatency(ui::INPUT_EVENT_RENDERER_SWAP_RECEIVED_COMPONENT, On 2014/10/01 22:15:08, sievers wrote: > Hmm, ...
6 years, 2 months ago (2014-10-02 00:46:04 UTC) #23
Yufeng Shen (Slow to review)
On 2014/10/02 00:46:04, orglofch wrote: > https://codereview.chromium.org/577273003/diff/180001/content/browser/renderer_host/render_widget_host_impl.cc > File content/browser/renderer_host/render_widget_host_impl.cc (right): > > https://codereview.chromium.org/577273003/diff/180001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2165 > ...
6 years, 2 months ago (2014-10-02 01:15:43 UTC) #24
no sievers
https://codereview.chromium.org/577273003/diff/180001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/577273003/diff/180001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2165 content/browser/renderer_host/render_widget_host_impl.cc:2165: if (latency_info.FindLatency(ui::INPUT_EVENT_RENDERER_SWAP_RECEIVED_COMPONENT, On 2014/10/02 00:46:04, orglofch wrote: > On ...
6 years, 2 months ago (2014-10-02 20:17:42 UTC) #25
no sievers
On 2014/10/02 20:17:42, sievers wrote: > I was actually more worried that we end up ...
6 years, 2 months ago (2014-10-02 20:18:47 UTC) #26
orglofch
https://codereview.chromium.org/577273003/diff/180001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/577273003/diff/180001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2351 content/browser/renderer_host/render_widget_host_impl.cc:2351: kBrowserCompositeLatencyEstimationSlack; On 2014/10/02 20:17:42, sievers wrote: > On 2014/10/02 ...
6 years, 2 months ago (2014-10-02 22:17:56 UTC) #27
no sievers
lgtm, thanks!
6 years, 2 months ago (2014-10-02 22:34:23 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/577273003/240001
6 years, 2 months ago (2014-10-02 22:40:31 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:240001) as ca0f047e42f574e6fe043bd58f89e76c1cb3425a
6 years, 2 months ago (2014-10-02 23:40:03 UTC) #31
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 23:40:38 UTC) #32
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/545a72d3f37fa15844cb08d83db7cca672b79cd0
Cr-Commit-Position: refs/heads/master@{#297950}

Powered by Google App Engine
This is Rietveld 408576698