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 /content/common/gpu/image_transport_surface.cc | |
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 'content/common/gpu/image_transport_surface.cc')
-rw-r--r-- | content/common/gpu/image_transport_surface.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc index 21581af..45c1c83 100644 --- a/content/common/gpu/image_transport_surface.cc +++ b/content/common/gpu/image_transport_surface.cc @@ -226,6 +226,10 @@ bool PassThroughImageTransportSurface::SwapBuffers() { // GetVsyncValues before SwapBuffers to work around Mali driver bug: // crbug.com/223558. SendVSyncUpdateIfAvailable(); + for (size_t i = 0; i < latency_info_.size(); ++i) { + latency_info_[i].AddLatencyNumber( + ui::INPUT_EVENT_GPU_SWAP_BUFFER_COMPONENT, 0, 0); + } bool result = gfx::GLSurfaceAdapter::SwapBuffers(); for (size_t i = 0; i < latency_info_.size(); i++) { latency_info_[i].AddLatencyNumber( |