Chromium Code Reviews| 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 4bcb713cb2640cf286962e0b9683c0968c182fe9..92d626d9715ed0c8f58c47f054b17c456f91dd76 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.cc |
| +++ b/content/browser/renderer_host/render_process_host_impl.cc |
| @@ -191,6 +191,8 @@ |
| #endif |
| #if defined(USE_OZONE) |
| +#include "ui/ozone/public/client_native_pixmap_factory.h" |
| +#include "ui/ozone/public/ozone_platform.h" |
| #include "ui/ozone/public/ozone_switches.h" |
| #endif |
| @@ -1606,6 +1608,12 @@ void RenderProcessHostImpl::OnChannelConnected(int32 peer_pid) { |
| GetID()); |
| Send(new ChildProcessMsg_SetIOSurfaceManagerToken(io_surface_manager_token_)); |
| #endif |
| +#if defined(USE_OZONE) |
| + auto device_fd = |
|
dcheng
2015/08/21 14:44:06
Same.
dshwang
2015/08/21 18:38:37
Done.
|
| + ui::OzonePlatform::GetInstance()->OpenClientNativePixmapDevice(); |
| + Send(new ChildProcessMsg_InitializeClientNativePixmapFactory( |
| + base::FileDescriptor(device_fd.Pass()))); |
| +#endif |
| } |
| void RenderProcessHostImpl::OnChannelError() { |