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 2c48d780f0fd99df89d492dc61abe6e947cd9d78..f5f3aeb797d934d4eb9ea99e71483739e10f0a4d 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -52,6 +52,7 @@ |
#include "cc/base/switches.h" |
#include "cc/output/buffer_to_texture_target_map.h" |
#include "components/discardable_memory/service/discardable_shared_memory_manager.h" |
+#include "components/display_compositor/host_shared_bitmap_manager.h" |
#include "components/tracing/common/tracing_switches.h" |
#include "content/browser/appcache/appcache_dispatcher_host.h" |
#include "content/browser/appcache/chrome_appcache_service.h" |
@@ -707,6 +708,8 @@ RenderProcessHostImpl::RenderProcessHostImpl( |
never_signaled_(base::WaitableEvent::ResetPolicy::MANUAL, |
base::WaitableEvent::InitialState::NOT_SIGNALED), |
#endif |
+ bitmap_manager_client_( |
+ display_compositor::HostSharedBitmapManager::current()), |
instance_weak_factory_( |
new base::WeakPtrFactory<RenderProcessHostImpl>(this)), |
weak_factory_(this) { |
@@ -1336,6 +1339,10 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() { |
base::Unretained(manager))); |
} |
+ registry->AddInterface( |
+ base::Bind(&display_compositor::HostSharedBitmapManagerClient::Bind, |
+ base::Unretained(&bitmap_manager_client_))); |
+ |
GetContentClient()->browser()->ExposeInterfacesToRenderer(registry.get(), |
this); |