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

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

Issue 2780373002: Use observer pattern instead of sniffing SwapCompositorFrame IPC (Closed)
Patch Set: Don't send metadata Created 3 years, 8 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_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 5caf7eab7947f091d5262799123294bcac397bac..11e46658091734b06a25441bb4421130e138d248 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -2609,6 +2609,10 @@ void RenderWidgetHostImpl::SubmitCompositorFrame(
return;
}
+ last_frame_metadata_ = frame.metadata.Clone();
piman 2017/04/04 17:34:46 Could we move this to after l.2636? 2 reasons: 1-
Saman Sami 2017/04/04 17:49:54 Good point.
+ if (delegate_)
+ delegate_->DidReceiveCompositorFrame();
piman 2017/04/04 17:34:46 Should this move to the end of the function, or at
Saman Sami 2017/04/04 17:49:54 Done.
+
last_local_surface_id_ = local_surface_id;
last_frame_size_ = frame_size;
last_device_scale_factor_ = device_scale_factor;

Powered by Google App Engine
This is Rietveld 408576698