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

Issue 2806163004: Plumbing input event latency reporting through Mus GPU. (Closed)

Created:
3 years, 8 months ago by mfomitchev
Modified:
3 years, 8 months ago
CC:
chromium-reviews, rjkroege, piman+watch_chromium.org, cc-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumbing input event latency reporting through Mus GPU. Adds support for input event latency reporting for Mus. There's two subtle differences between the Mus flow and the non-Mus flow: - DISPLAY_COMPOSITOR_RECEIVED_FRAME_COMPONENT is logged if there are ANY latency components present. - OnGpuSwapBuffersCompleted() is called if there are ANY latency components present. In non-Mus flow these are done only when there are browser-specific latency components present. In practice this shouldn't have any effect on UMA latency reporting, because currently OnGpuSwapBuffersCompleted() exits early if it doesn't see RWH-specific latency components. However it should prove useful for getting latency data for non-blink use cases in the future. Other changes: - Adds logging of DISPLAY_COMPOSITOR_RECEIVED_FRAME_COMPONENT in SurfaceFactory::SubmitCompositorFrame(). - Plumbs through LatencyInfo propagation for the in-process GPU command buffer case (i.e. for Mus GPU). - Adds LatencyTracker to DisplayOutputSurface, and calls LatencyTracker::OnGpuSwapBuffersCompleted from DisplayOutputSurface::OnGpuSwapBuffersCompleted, which ensures UMA latency data is reported in Mus. TBR=bbudge@chromium.org,danakj@chromium.org BUG=686865 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2806163004 Cr-Commit-Position: refs/heads/master@{#464664} Committed: https://chromium.googlesource.com/chromium/src/+/426ea5dd2cf7061a7860a34d502f2c191a343a8e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removing commented out code. #

Total comments: 2

Patch Set 3 : Fixing the race condition. #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : Inline LatencyTracker in DIsplayOutputService. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -17 lines) Patch
M cc/surfaces/compositor_frame_sink_support_unittest.cc View 1 2 3 3 chunks +27 lines, -3 lines 0 comments Download
M cc/surfaces/surface_factory.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M cc/test/test_context_support.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/test_context_support.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/command_buffer/client/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/client_test_helper.h View 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/context_support.h View 2 chunks +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gpu_control.h View 2 chunks +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/gles2_conform_support/egl/context.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/gles2_conform_support/egl/context.cc View 1 chunk +3 lines, -0 lines 0 comments Download
A gpu/ipc/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.cc View 1 2 3 2 chunks +7 lines, -7 lines 0 comments Download
M gpu/ipc/in_process_command_buffer.h View 1 2 4 chunks +12 lines, -1 line 0 comments Download
M gpu/ipc/in_process_command_buffer.cc View 1 2 3 6 chunks +29 lines, -3 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/surfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/surfaces/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/surfaces/display_output_surface.h View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M services/ui/surfaces/display_output_surface.cc View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M ui/latency/BUILD.gn View 1 chunk +11 lines, -0 lines 0 comments Download
M ui/latency/latency_info.h View 1 chunk +6 lines, -0 lines 0 comments Download
A ui/latency/latency_info_test_support.cc View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
mfomitchev
tdresser: Can you please do the initial review from the overal latency tracking perspective?
3 years, 8 months ago (2017-04-10 19:40:30 UTC) #9
tdresser
LGTM, with one tiny nit. https://codereview.chromium.org/2806163004/diff/1/services/ui/surfaces/display_output_surface.cc File services/ui/surfaces/display_output_surface.cc (right): https://codereview.chromium.org/2806163004/diff/1/services/ui/surfaces/display_output_surface.cc#newcode93 services/ui/surfaces/display_output_surface.cc:93: context_provider_->ContextSupport()->Swap(/*frame.latency_info*/); ?
3 years, 8 months ago (2017-04-10 20:36:14 UTC) #10
mfomitchev
fsamuel@chromium.org: Please review changes in services/ui/surfaces/ piman@chromium.org: Please review changes in cc/, gpu/, ppapi/ https://codereview.chromium.org/2806163004/diff/1/services/ui/surfaces/display_output_surface.cc ...
3 years, 8 months ago (2017-04-10 21:31:01 UTC) #12
Fady Samuel
How does this plumbing differ for non-Mus Chrome? Can we unify? Thanks!
3 years, 8 months ago (2017-04-10 21:35:16 UTC) #13
mfomitchev
On 2017/04/10 21:35:16, Fady Samuel wrote: > How does this plumbing differ for non-Mus Chrome? ...
3 years, 8 months ago (2017-04-10 21:41:39 UTC) #14
piman
https://codereview.chromium.org/2806163004/diff/20001/gpu/ipc/in_process_command_buffer.cc File gpu/ipc/in_process_command_buffer.cc (right): https://codereview.chromium.org/2806163004/diff/20001/gpu/ipc/in_process_command_buffer.cc#newcode561 gpu/ipc/in_process_command_buffer.cc:561: if (ui::LatencyInfo::Verify(latency_info_, latency_info_ is written on another thread (without ...
3 years, 8 months ago (2017-04-10 23:50:34 UTC) #15
mfomitchev
https://codereview.chromium.org/2806163004/diff/20001/gpu/ipc/in_process_command_buffer.cc File gpu/ipc/in_process_command_buffer.cc (right): https://codereview.chromium.org/2806163004/diff/20001/gpu/ipc/in_process_command_buffer.cc#newcode561 gpu/ipc/in_process_command_buffer.cc:561: if (ui::LatencyInfo::Verify(latency_info_, On 2017/04/10 23:50:34, piman - OOO back ...
3 years, 8 months ago (2017-04-13 03:00:00 UTC) #16
mfomitchev
-piman@ since he is on vacation now. jbauman@chromium.org: Please review changes in gpu/ and cc/ ...
3 years, 8 months ago (2017-04-13 03:03:57 UTC) #19
Fady Samuel
https://codereview.chromium.org/2806163004/diff/60001/services/ui/surfaces/display_output_surface.cc File services/ui/surfaces/display_output_surface.cc (right): https://codereview.chromium.org/2806163004/diff/60001/services/ui/surfaces/display_output_surface.cc#newcode27 services/ui/surfaces/display_output_surface.cc:27: latency_tracker_(new LatencyTracker), nit: base::MakeUnique<LatencyTracker>() or better yet, why is ...
3 years, 8 months ago (2017-04-13 03:32:18 UTC) #20
mfomitchev
https://codereview.chromium.org/2806163004/diff/60001/services/ui/surfaces/display_output_surface.cc File services/ui/surfaces/display_output_surface.cc (right): https://codereview.chromium.org/2806163004/diff/60001/services/ui/surfaces/display_output_surface.cc#newcode27 services/ui/surfaces/display_output_surface.cc:27: latency_tracker_(new LatencyTracker), On 2017/04/13 03:32:17, Fady Samuel wrote: > ...
3 years, 8 months ago (2017-04-13 17:15:29 UTC) #22
jbauman
lgtm
3 years, 8 months ago (2017-04-13 22:27:04 UTC) #26
mfomitchev
TBR bbudge@chromium.org and danakj@chromium.org for mechanical changes in ppapi/ and cc/test/ respectively
3 years, 8 months ago (2017-04-14 02:11:29 UTC) #28
Fady Samuel
lgtm
3 years, 8 months ago (2017-04-14 02:15:47 UTC) #29
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/2806163004/80001
3 years, 8 months ago (2017-04-14 02:19:25 UTC) #32
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 03:11:14 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/426ea5dd2cf7061a7860a34d502f...

Powered by Google App Engine
This is Rietveld 408576698