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

Issue 918883002: Change input latency result to depend on start of GPU swap (Closed)

Created:
5 years, 10 months ago by brianderson
Modified:
5 years, 7 months ago
CC:
Sami, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman, jbauman+watch_chromium.org, jdduke (slow), kalyank, piman+watch_chromium.org, sievers+watch_chromium.org, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change input latency result to depend on start of GPU swap Use INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT instead of INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT as the final component to calculate input latency. This will more accurately reflect latency regressions in the code we have direct control of in Chrome. Also make PassThroughImageTransportSurface::PostSubBuffer add a INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, which it was missing before. Followup patches will snap INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT to the next vsync to reflect the real display time. The real display time can then be used for better smoothness metrics and also to track latency regressions at the OS/driver level for Ozone and potentially other platforms where we can extract swap info. BUG=360844 Committed: https://crrev.com/62a1ccd2bfd61886dcdb3fed4e020fd77771699f Cr-Commit-Position: refs/heads/master@{#318812}

Patch Set 1 #

Patch Set 2 : Change UMA, add GPU_SWAP_BUFFER to PostSubBuffer, more auto, sample fewer timestamps #

Patch Set 3 : cleanup RWHLT #

Total comments: 1

Patch Set 4 : Address nullptr comment #

Patch Set 5 : rebase #

Patch Set 6 : rebase; need to fix unit tests; skip frames when swap throttled #

Patch Set 7 : fix unittest #

Patch Set 8 : skip late missed BFs; don't wait for browser long; Renderer latency recovery #

Unified diffs Side-by-side diffs Delta from patch set Stats (+869 lines, -134 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/scheduler/scheduler.h View 1 2 3 4 5 6 7 3 chunks +2 lines, -2 lines 0 comments Download
M cc/scheduler/scheduler.cc View 1 2 3 4 5 6 7 4 chunks +49 lines, -10 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -0 lines 0 comments Download
M cc/scheduler/scheduler_state_machine.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -1 line 0 comments Download
M cc/surfaces/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/surfaces/display.h View 1 2 3 4 5 5 chunks +10 lines, -4 lines 0 comments Download
M cc/surfaces/display.cc View 1 2 3 4 5 6 7 8 chunks +38 lines, -18 lines 0 comments Download
M cc/surfaces/display_client.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
A cc/surfaces/display_scheduler.h View 1 2 3 4 5 6 7 1 chunk +91 lines, -0 lines 0 comments Download
A cc/surfaces/display_scheduler.cc View 1 2 3 4 5 6 7 1 chunk +260 lines, -0 lines 0 comments Download
A cc/surfaces/display_scheduler_unittest.cc View 1 2 3 4 5 6 1 chunk +299 lines, -0 lines 0 comments Download
M cc/surfaces/display_unittest.cc View 1 2 3 4 5 11 chunks +76 lines, -39 lines 0 comments Download
M cc/surfaces/onscreen_display_client.h View 1 2 3 4 5 3 chunks +4 lines, -13 lines 0 comments Download
M cc/surfaces/onscreen_display_client.cc View 1 2 3 4 5 3 chunks +20 lines, -44 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
brianderson
Yufeng, what do you think of this? I'm not sure of all the platform differences ...
5 years, 10 months ago (2015-02-12 01:07:01 UTC) #2
Yufeng Shen (Slow to review)
On 2015/02/12 01:07:01, brianderson wrote: > Yufeng, what do you think of this? > > ...
5 years, 10 months ago (2015-02-12 20:27:28 UTC) #3
brianderson
ptal
5 years, 10 months ago (2015-02-12 21:36:38 UTC) #4
Yufeng Shen (Slow to review)
lgtm https://codereview.chromium.org/918883002/diff/40001/content/browser/renderer_host/render_widget_host_latency_tracker.cc File content/browser/renderer_host/render_widget_host_latency_tracker.cc (right): https://codereview.chromium.org/918883002/diff/40001/content/browser/renderer_host/render_widget_host_latency_tracker.cc#newcode332 content/browser/renderer_host/render_widget_host_latency_tracker.cc:332: LatencyInfo::LatencyComponent rwh_component; nit: this can be removed, and ...
5 years, 10 months ago (2015-02-12 21:57:50 UTC) #5
brianderson
skyostil@chromium.org: Please review changes in tools sievers@chromium.org: Please review changes in content
5 years, 10 months ago (2015-02-12 22:26:40 UTC) #8
Sami
lgtm. Once we have richer trace event data from SurfaceFlinger we can use that to ...
5 years, 10 months ago (2015-02-13 14:58:20 UTC) #9
brianderson
+ccameron for owners review of files in content.
5 years, 10 months ago (2015-02-13 21:50:48 UTC) #12
ccameron
OWNER stamp, in that the change does what the description says it does.
5 years, 10 months ago (2015-02-13 21:57:28 UTC) #13
ccameron
On 2015/02/13 21:57:28, ccameron wrote: > OWNER stamp, in that the change does what the ...
5 years, 10 months ago (2015-02-13 21:57:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/918883002/60001
5 years, 10 months ago (2015-02-13 22:13:48 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/25110)
5 years, 10 months ago (2015-02-13 23:12:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/918883002/60001
5 years, 9 months ago (2015-02-27 22:33:08 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/63100)
5 years, 9 months ago (2015-02-27 23:08:10 UTC) #22
brianderson
Yufeng, I rebased this on top of a recent patch of yours. As a sanity ...
5 years, 9 months ago (2015-02-27 23:42:56 UTC) #23
Yufeng Shen (Slow to review)
On 2015/02/27 23:42:56, brianderson wrote: > Yufeng, I rebased this on top of a recent ...
5 years, 9 months ago (2015-03-02 23:54:27 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/918883002/70001
5 years, 9 months ago (2015-03-02 23:56:30 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:70001)
5 years, 9 months ago (2015-03-03 01:33:23 UTC) #28
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 01:34:19 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/62a1ccd2bfd61886dcdb3fed4e020fd77771699f
Cr-Commit-Position: refs/heads/master@{#318812}

Powered by Google App Engine
This is Rietveld 408576698