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

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

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NativePixmapManager is singleton Created 5 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_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 248ed1d8b17158adeb873798ca038fb954fa0f68..6266268163d6d1d99cc103bd5bb841a9ea2da007 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -189,6 +189,11 @@
#include "content/browser/browser_io_surface_manager_mac.h"
#endif
+#if defined(USE_OZONE)
+#include "content/browser/gpu/browser_native_pixmap_manager_ozone.h"
+#include "ui/ozone/public/ozone_switches.h"
+#endif
+
#if defined(ENABLE_BROWSER_CDMS)
#include "content/browser/media/cdm/browser_cdm_manager.h"
#endif
@@ -809,6 +814,9 @@ void RenderProcessHostImpl::CreateMessageFilters() {
gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get());
AddFilter(gpu_message_filter_);
+#if defined(USE_OZONE)
+ AddFilter(BrowserNativePixmapManager::GetInstance()->CreateMessageFilter());
+#endif
#if defined(ENABLE_WEBRTC)
AddFilter(new WebRTCIdentityServiceHost(
GetID(), storage_partition_impl_->GetWebRTCIdentityStore()));
@@ -1390,6 +1398,9 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kDisableWin32kRendererLockDown,
switches::kTraceExportEventsToETW,
#endif
+#if defined(USE_OZONE)
+ switches::kOzonePlatform,
+#endif
#if defined(OS_CHROMEOS)
switches::kDisableVaapiAcceleratedVideoEncode,
#endif

Powered by Google App Engine
This is Rietveld 408576698