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

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

Issue 2835403004: Revert "Use MojoCompositorFrameSink in RendererCompositorFrameSink"
Patch Set: Rebased Created 3 years, 8 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 04f3a5489008d123f6beddd852aafe9ac4869e7e..de8bc44bb71a86b94f803e77d846c518aa584be1 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -749,7 +749,6 @@ RenderProcessHostImpl::RenderProcessHostImpl(
#endif
instance_weak_factory_(
new base::WeakPtrFactory<RenderProcessHostImpl>(this)),
- frame_sink_provider_(id_),
weak_factory_(this) {
widget_helper_ = new RenderWidgetHelper();
@@ -1286,10 +1285,6 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
base::Bind(&RenderProcessHostImpl::CreateOffscreenCanvasProvider,
base::Unretained(this)));
- AddUIThreadInterface(registry.get(),
- base::Bind(&RenderProcessHostImpl::BindFrameSinkProvider,
- base::Unretained(this)));
-
AddUIThreadInterface(
registry.get(),
base::Bind(&BackgroundSyncContext::CreateService,
@@ -1426,11 +1421,6 @@ void RenderProcessHostImpl::CreateOffscreenCanvasProvider(
offscreen_canvas_provider_->Add(std::move(request));
}
-void RenderProcessHostImpl::BindFrameSinkProvider(
- mojom::FrameSinkProviderRequest request) {
- frame_sink_provider_.Bind(std::move(request));
-}
-
void RenderProcessHostImpl::CreateStoragePartitionService(
mojo::InterfaceRequest<mojom::StoragePartitionService> request) {
// DO NOT REMOVE THIS COMMAND LINE CHECK WITHOUT SECURITY REVIEW!
@@ -2832,11 +2822,6 @@ void RenderProcessHostImpl::ProcessDied(bool already_dead,
if (delayed_cleanup_needed_)
Cleanup();
- // If RenderProcessHostImpl is reused, the next renderer will send a new
- // request for FrameSinkProvider so make sure frame_sink_provider_ is ready
- // for that.
- frame_sink_provider_.Unbind();
-
// This object is not deleted at this point and might be reused later.
// TODO(darin): clean this up
}
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698