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

Unified Diff: content/browser/android/synchronous_compositor_host.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. Created 3 years, 8 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
« no previous file with comments | « components/nacl/browser/nacl_process_host.cc ('k') | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « components/nacl/browser/nacl_process_host.cc ('k') | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698