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

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

Issue 2890063002: Send BeginFrames for the renderer using Mojo (Closed)
Patch Set: c Created 3 years, 7 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 b9898a869d9c3e42e0e206cce3d8230a93d8aee9..16845d55469db9652771b364daa7f15387b5f95c 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1626,9 +1626,12 @@ void RenderWidgetHostViewAndroid::SendBeginFrame(cc::BeginFrameArgs args) {
// switches to Surfaces and the Browser's commit isn't in the critical path.
args.deadline = sync_compositor_ ? base::TimeTicks()
: args.frame_time + (args.interval * 0.6);
- host_->Send(new ViewMsg_BeginFrame(host_->GetRoutingID(), args));
- if (sync_compositor_)
+ if (sync_compositor_) {
+ host_->Send(new ViewMsg_BeginFrame(host_->GetRoutingID(), args));
sync_compositor_->DidSendBeginFrame(view_.GetWindowAndroid());
+ } else if (renderer_compositor_frame_sink_) {
+ renderer_compositor_frame_sink_->OnBeginFrame(args);
+ }
}
bool RenderWidgetHostViewAndroid::Animate(base::TimeTicks frame_time) {

Powered by Google App Engine
This is Rietveld 408576698