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

Side by Side Diff: gpu/ipc/service/gpu_channel_test_common.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « extensions/browser/user_script_loader.cc ('k') | media/audio/audio_input_device_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/ipc/service/gpu_channel_test_common.h" 5 #include "gpu/ipc/service/gpu_channel_test_common.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/test/test_simple_task_runner.h" 9 #include "base/test/test_simple_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 148 }
149 149
150 sink->ClearMessages(); 150 sink->ClearMessages();
151 151
152 delete msg; 152 delete msg;
153 } 153 }
154 154
155 base::SharedMemoryHandle GpuChannelTestCommon::GetSharedHandle() { 155 base::SharedMemoryHandle GpuChannelTestCommon::GetSharedHandle() {
156 base::SharedMemory shared_memory; 156 base::SharedMemory shared_memory;
157 shared_memory.CreateAnonymous(10); 157 shared_memory.CreateAnonymous(10);
158 base::SharedMemoryHandle shmem_handle; 158 return shared_memory.handle().Duplicate();
159 shared_memory.ShareToProcess(base::GetCurrentProcessHandle(), &shmem_handle);
160 return shmem_handle;
161 } 159 }
162 160
163 } // namespace gpu 161 } // namespace gpu
OLDNEW
« no previous file with comments | « extensions/browser/user_script_loader.cc ('k') | media/audio/audio_input_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698