Index: content/browser/renderer_host/compositor_impl_android.cc |
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc |
index bc2709c3eef96c96b196d7012befbf414dd5a6a1..e7a1d3c0e05dabd0c8b3fb91ae58e1ee503f867c 100644 |
--- a/content/browser/renderer_host/compositor_impl_android.cc |
+++ b/content/browser/renderer_host/compositor_impl_android.cc |
@@ -66,6 +66,11 @@ class OutputSurfaceWithoutParent : public cc::OutputSurface { |
} |
virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE { |
+ for (size_t i = 0; i < frame->metadata.latency_info.size(); i++) { |
+ frame->metadata.latency_info[i].AddLatencyNumber( |
+ ui::INPUT_EVENT_BROWSER_SWAP_BUFFER_COMPONENT, 0, 0); |
+ } |
+ |
content::ContextProviderCommandBuffer* provider_command_buffer = |
static_cast<content::ContextProviderCommandBuffer*>( |
context_provider_.get()); |