Index: content/browser/android/synchronous_compositor_host.cc |
diff --git a/content/browser/android/synchronous_compositor_host.cc b/content/browser/android/synchronous_compositor_host.cc |
index f1b18890135511b113d9f261c0f66794b13ac070..257a3a52a6b31f50dc6e6d75606350cfe3232c17 100644 |
--- a/content/browser/android/synchronous_compositor_host.cc |
+++ b/content/browser/android/synchronous_compositor_host.cc |
@@ -289,12 +289,9 @@ void SynchronousCompositorHost::SetSoftwareDrawSharedMemoryIfNeeded( |
SyncCompositorSetSharedMemoryParams set_shm_params; |
set_shm_params.buffer_size = buffer_size; |
- base::ProcessHandle renderer_process_handle = |
- rwhva_->GetRenderWidgetHost()->GetProcess()->GetHandle(); |
- if (!software_draw_shm->shm.ShareToProcess(renderer_process_handle, |
- &set_shm_params.shm_handle)) { |
+ set_shm_params.shm_handle = software_draw_shm->shm.handle().Duplicate(); |
+ if (!set_shm_params.shm_handle.IsValid()) |
return; |
- } |
bool success = false; |
SyncCompositorCommonRendererParams common_renderer_params; |