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

Unified Diff: content/browser/frame_host/render_widget_host_view_guest.cc

Issue 2728183002: RendererCompositorFrameSink should handle local surface id allocation (Closed)
Patch Set: Rebase Created 3 years, 9 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/frame_host/render_widget_host_view_guest.cc
diff --git a/content/browser/frame_host/render_widget_host_view_guest.cc b/content/browser/frame_host/render_widget_host_view_guest.cc
index 772aad36e4deb547e95728ec9f2c8adaa995f071..92df1d6f7a498dcd9e7c5a89ca635237b2c28c19 100644
--- a/content/browser/frame_host/render_widget_host_view_guest.cc
+++ b/content/browser/frame_host/render_widget_host_view_guest.cc
@@ -281,11 +281,13 @@ void RenderWidgetHostViewGuest::SendSurfaceInfoToEmbedderImpl(
void RenderWidgetHostViewGuest::OnSwapCompositorFrame(
uint32_t compositor_frame_sink_id,
+ cc::LocalSurfaceId local_surface_id,
Fady Samuel 2017/03/15 12:05:47 const cc::LocalSurfaceId&
Saman Sami 2017/03/16 18:33:07 Done.
cc::CompositorFrame frame) {
TRACE_EVENT0("content", "RenderWidgetHostViewGuest::OnSwapCompositorFrame");
last_scroll_offset_ = frame.metadata.root_scroll_offset;
- ProcessCompositorFrame(compositor_frame_sink_id, std::move(frame));
+ ProcessCompositorFrame(compositor_frame_sink_id, local_surface_id,
+ std::move(frame));
// If after detaching we are sent a frame, we should finish processing it, and
// then we should clear the surface so that we are not holding resources we

Powered by Google App Engine
This is Rietveld 408576698