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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 833283003: Reland "Add new latency_info for tracking browser composite time." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f1fced07b898bffc533c9bbc5a3d6e054a6059d6..81ad1751015df22e88e4d5454d90b82ecb543380 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -81,6 +81,11 @@ class OutputSurfaceWithoutParent : public cc::OutputSurface {
}
virtual void SwapBuffers(cc::CompositorFrame* frame) override {
+ for (auto& latency : frame->metadata.latency_info) {
+ latency.AddLatencyNumber(
+ ui::INPUT_EVENT_BROWSER_SWAP_BUFFER_COMPONENT, 0, 0);
jdduke (slow) 2015/01/06 16:01:43 Hmm, I actually don't see this component used anyw
+ }
+
GetCommandBufferProxy()->SetLatencyInfo(frame->metadata.latency_info);
DCHECK(frame->gl_frame_data->sub_buffer_rect ==
gfx::Rect(frame->gl_frame_data->size));

Powered by Google App Engine
This is Rietveld 408576698