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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 2728183002: RendererCompositorFrameSink should handle local surface id allocation (Closed)
Patch Set: Added comment 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/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 6266020394b9c38dc5f81004bb00d63d139d0dad..001132e1438efc7cbb106ea6517cf93dc73f30da 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -1428,6 +1428,7 @@ void RenderWidgetHostViewMac::FocusedNodeChanged(
void RenderWidgetHostViewMac::OnSwapCompositorFrame(
uint32_t compositor_frame_sink_id,
+ const cc::LocalSurfaceId& local_surface_id,
cc::CompositorFrame frame) {
TRACE_EVENT0("browser", "RenderWidgetHostViewMac::OnSwapCompositorFrame");
@@ -1436,7 +1437,7 @@ void RenderWidgetHostViewMac::OnSwapCompositorFrame(
page_at_minimum_scale_ =
frame.metadata.page_scale_factor == frame.metadata.min_page_scale_factor;
browser_compositor_->SwapCompositorFrame(compositor_frame_sink_id,
- std::move(frame));
+ local_surface_id, std::move(frame));
UpdateDisplayVSyncParameters();
}

Powered by Google App Engine
This is Rietveld 408576698