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

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

Issue 2932893002: BrowserMainLoop owns FrameSinkManagerHost (Closed)
Patch Set: Fix offscreen canvas unit tests Created 3 years, 6 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_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index fc876c671daea63b084e640a2cb2fdc474ce576d..9028c5552f18710c00e138b2557097a6b5824a75 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1639,8 +1639,9 @@ void RenderProcessHostImpl::CreateOffscreenCanvasProvider(
if (!offscreen_canvas_provider_) {
// The client id gets converted to a uint32_t in FrameSinkId.
uint32_t renderer_client_id = base::checked_cast<uint32_t>(id_);
- offscreen_canvas_provider_ =
- base::MakeUnique<OffscreenCanvasProviderImpl>(renderer_client_id);
+ offscreen_canvas_provider_ = base::MakeUnique<OffscreenCanvasProviderImpl>(
+ BrowserMainLoop::GetInstance()->frame_sink_manager_host(),
+ renderer_client_id);
}
offscreen_canvas_provider_->Add(std::move(request));
}

Powered by Google App Engine
This is Rietveld 408576698