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

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

Issue 1244443003: android: Use a hard coded BeginFrame deadline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0c86ebdbcfad4c3486a594831ebf0bbfdbe2dacd..8162df7b8caf678d1e35d5e134b3600475841bdf 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1500,10 +1500,9 @@ void RenderWidgetHostViewAndroid::SendBeginFrame(base::TimeTicks frame_time,
"frame_time_us", frame_time.ToInternalValue());
if (using_browser_compositor_) {
- base::TimeTicks display_time = frame_time + vsync_period;
-
- base::TimeTicks deadline =
- display_time - host_->GetEstimatedBrowserCompositeTime();
+ // TODO(brianderson): Replace this hardcoded deadline after Android
+ // switches to Surfaces and the Browser's commit isn't in the critcal path.
+ base::TimeTicks deadline = frame_time + (vsync_period * 0.6);
host_->Send(new ViewMsg_BeginFrame(
host_->GetRoutingID(),
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698