cc: Add Tracing to Compositor Frame Transport from Renderer

Desktop / Chromium - Weiliang Chen [chromium.org] - 9 August 2017 14:29 EDT

This adds tracing for following cases:- serialization and deserialization of compositor frames in IPC,- deserialization of compositor frames in Mojo,- flow event from renderer to browser on desktop,- instance of time elapsed between submitting compositor frame to receiving from renderer to browser on desktop.

R=danakj@chromium.org

Bug: 699121 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel Change-Id: I6ca1adc6dc61bc28c4c241ec63a67402f2edf7cf Reviewed-on: https://chromium-review.googlesource.com/553117 Commit-Queue: weiliangc

8f09363 cc: Add Tracing to Compositor Frame Transport from Renderer
cc/ipc/cc_param_traits.cc | 27 ++++++++++++++++++
cc/ipc/compositor_frame_metadata_struct_traits.cc | 4 +++
cc/ipc/render_pass_struct_traits.cc | 3 ++
cc/ipc/transferable_resource_struct_traits.cc | 3 ++
.../viz/client/client_layer_tree_frame_sink.cc | 14 +++++++--
.../frame_sinks/compositor_frame_sink_impl.cc | 3 +-
.../frame_sinks/compositor_frame_sink_impl.h | 8 +++---
.../frame_sinks/root_compositor_frame_sink_impl.cc | 3 +-
.../frame_sinks/root_compositor_frame_sink_impl.h | 8 +++---
.../offscreen_canvas_provider_impl_unittest.cc | 5 ++--
.../renderer_host/render_widget_host_impl.cc | 25 ++++++++++++++--
.../renderer_host/render_widget_host_impl.h | 3 +-
.../renderer_host/render_widget_host_unittest.cc | 33 ++++++++++++----------
.../ui/ws/compositor_frame_sink_client_binding.cc | 6 ++--
.../ui/ws/compositor_frame_sink_client_binding.h | 3 +-
services/ui/ws/frame_generator.cc | 2 +-
services/ui/ws/frame_generator_unittest.cc | 3 +-
services/ui/ws/window_tree_client_unittest.cc | 4 +--
.../compositing/compositor_frame_struct_traits.cc | 3 ++
.../compositing/compositor_frame_sink.mojom | 9 ++++--
.../OffscreenCanvasFrameDispatcherImpl.cpp | 2 +-
21 files changed, 128 insertions(+), 43 deletions(-)

Upstream: git.chromium.org


  • Share