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

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

Issue 577273003: Add new latency_info for tracking browser composite time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename and add id's to components Created 6 years, 3 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/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index af53727f9ad92906c7aa9d76bcb876e4a0012e51..fa14273efd86d34c994f51e08a1dd0dc1b421ee4 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1339,10 +1339,8 @@ void RenderWidgetHostViewAndroid::SendBeginFrame(base::TimeTicks frame_time,
"frame_time_us", frame_time.ToInternalValue());
base::TimeTicks display_time = frame_time + vsync_period;
- // TODO(brianderson): Use adaptive draw-time estimation.
base::TimeDelta estimated_browser_composite_time =
brianderson 2014/09/22 22:59:35 Can get rid of this local variable now.
orglofch 2014/09/22 23:55:14 Done.
- base::TimeDelta::FromMicroseconds(
- (1.0f * base::Time::kMicrosecondsPerSecond) / (3.0f * 60));
+ host_->GetEstimatedBrowserCompositeTime();
base::TimeTicks deadline = display_time - estimated_browser_composite_time;

Powered by Google App Engine
This is Rietveld 408576698