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

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 938e3ba84e414cf067ab6ab8923d43d9a700260d..53394246b83948b1242900806eb0b81704923eb8 100644
--- a/content/browser/frame_host/render_widget_host_view_guest.cc
+++ b/content/browser/frame_host/render_widget_host_view_guest.cc
@@ -282,11 +282,13 @@ void RenderWidgetHostViewGuest::SendSurfaceInfoToEmbedderImpl(
void RenderWidgetHostViewGuest::OnSwapCompositorFrame(
uint32_t compositor_frame_sink_id,
+ const cc::LocalSurfaceId& local_surface_id,
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