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

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

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy Created 4 years, 5 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_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 284533c8122b0257a8b835f96de284d305bb3a0b..5da45dd0a2656f7b3a89b7e2c6579bb77e1d4438 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1086,6 +1086,7 @@ void RenderWidgetHostViewAura::OnLegacyWindowDestroyed() {
void RenderWidgetHostViewAura::OnSwapCompositorFrame(
uint32_t output_surface_id,
+ const cc::SurfaceId& surface_id,
cc::CompositorFrame frame) {
TRACE_EVENT0("content", "RenderWidgetHostViewAura::OnSwapCompositorFrame");
@@ -1110,7 +1111,7 @@ void RenderWidgetHostViewAura::OnSwapCompositorFrame(
selection.end.SetEdge(end_edge_top, end_edge_bottom);
}
- delegated_frame_host_->SwapDelegatedFrame(output_surface_id,
+ delegated_frame_host_->SwapDelegatedFrame(output_surface_id, surface_id,
std::move(frame));
SelectionUpdated(selection.is_editable, selection.is_empty_text_form_control,
selection.start, selection.end);

Powered by Google App Engine
This is Rietveld 408576698