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

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

Issue 2717213004: Move SharedBitmapManager implementation out of content/ (Closed)
Patch Set: rebase Created 3 years, 10 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 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);

Powered by Google App Engine
This is Rietveld 408576698