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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.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_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 4c5569f5aecc0b7437ff0c33f1113416178f18b4..5979e490c620737fb0ea47f107a2616ba2a78da9 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1564,10 +1564,11 @@ bool RenderWidgetHostImpl::OnSwapCompositorFrame(
ViewHostMsg_SwapCompositorFrame::Param param;
if (!ViewHostMsg_SwapCompositorFrame::Read(&message, &param))
return false;
- cc::CompositorFrame frame(std::move(std::get<1>(param)));
uint32_t output_surface_id = std::get<0>(param);
+ cc::SurfaceId surface_id = std::get<1>(param);
+ cc::CompositorFrame frame(std::move(std::get<2>(param)));
std::vector<IPC::Message> messages_to_deliver_with_frame;
- messages_to_deliver_with_frame.swap(std::get<2>(param));
+ messages_to_deliver_with_frame.swap(std::get<3>(param));
if (!ui::LatencyInfo::Verify(frame.metadata.latency_info,
"RenderWidgetHostImpl::OnSwapCompositorFrame")) {
@@ -1582,7 +1583,8 @@ bool RenderWidgetHostImpl::OnSwapCompositorFrame(
touch_emulator_->SetDoubleTapSupportForPageEnabled(!is_mobile_optimized);
if (view_) {
- view_->OnSwapCompositorFrame(output_surface_id, std::move(frame));
+ view_->OnSwapCompositorFrame(output_surface_id, surface_id,
+ std::move(frame));
view_->DidReceiveRendererFrame();
} else {
cc::ReturnedResourceArray resources;

Powered by Google App Engine
This is Rietveld 408576698