diff options
author | orglofch <orglofch@chromium.org> | 2014-10-02 16:39:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-02 23:40:08 +0000 |
commit | 545a72d3f37fa15844cb08d83db7cca672b79cd0 (patch) | |
tree | 2c037e73bf06b76a6f6c877d356698d5e195dec8 /ui/events/latency_info.h | |
parent | 9fbdec83ad5a77429c3a11b0d5a34cf9d2305752 (diff) | |
download | chromium_src-545a72d3f37fa15844cb08d83db7cca672b79cd0.zip chromium_src-545a72d3f37fa15844cb08d83db7cca672b79cd0.tar.gz chromium_src-545a72d3f37fa15844cb08d83db7cca672b79cd0.tar.bz2 |
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
Review URL: https://codereview.chromium.org/577273003
Cr-Commit-Position: refs/heads/master@{#297950}
Diffstat (limited to 'ui/events/latency_info.h')
-rw-r--r-- | ui/events/latency_info.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/events/latency_info.h b/ui/events/latency_info.h index 2f534a7..1a18f9b 100644 --- a/ui/events/latency_info.h +++ b/ui/events/latency_info.h @@ -54,6 +54,13 @@ enum LatencyComponentType { WINDOW_OLD_SNAPSHOT_FRAME_NUMBER_COMPONENT, // Timestamp when a tab is requested to be shown. TAB_SHOW_COMPONENT, + // Timestamp of when the Browser process began compositing + INPUT_EVENT_BROWSER_COMPOSITE_COMPONENT, + // Timestamp of when the Browser process began swap buffers + INPUT_EVENT_BROWSER_SWAP_BUFFER_COMPONENT, + // Timestamp of when the gpu service began swap buffers, unlike + // INPUT_EVENT_LATENCY_TERMINATED_FRAME_SWAP_COMPONENT which measure after + INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, // ---------------------------TERMINAL COMPONENT----------------------------- // TERMINAL COMPONENT is when we show the latency end in chrome://tracing. // Timestamp when the mouse event is acked from renderer and it does not @@ -104,7 +111,7 @@ struct EVENTS_BASE_EXPORT LatencyInfo { }; // Empirically determined constant based on a typical scroll sequence. - enum { kTypicalMaxComponentsPerLatencyInfo = 6 }; + enum { kTypicalMaxComponentsPerLatencyInfo = 9 }; enum { kMaxInputCoordinates = 2 }; |