|
Make base::SharedMemoryHandle a class on POSIX.
This CL is *mostly* a refactor with no behavioral changes.
SharedMemoryHandle is already a struct on Windows and macOS. Making it a struct
on all platforms allows the introduction of a GUID field.
This CL includes two small fixes:
Previously, the implementation of SharedMemory on POSIX was inconsistent on the
definition of a valid handle. Sometimes it would check fd > 0, sometimes it
would check fd >= 0, and sometimes it would check fd != -1. This CL standardizes
on fd >= 0.
The previous implementation of SharedMemory on NaCl would leak a fd if it
failed to copy the fd in ShareToProcessCommon.
BUG= 713763
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Review-Url: https://codereview.chromium.org/2843113002
Cr-Commit-Position: refs/heads/master@{#468035}
Committed: https://chromium.googlesource.com/chromium/src/+/22a813bccaeb05fc47689b540701e6d590fa7648
Total comments: 22
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+302 lines, -150 lines) |
Patch |
|
M |
base/BUILD.gn
|
View
|
1
2
4
5
6
7
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/memory/discardable_shared_memory.cc
|
View
|
1
2
3
|
2 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory.h
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_android.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_handle.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+51 lines, -1 line |
2 comments
|
Download
|
|
A |
base/memory/shared_memory_handle_posix.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+69 lines, -0 lines |
2 comments
|
Download
|
|
M |
base/memory/shared_memory_nacl.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+21 lines, -35 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_posix.cc
|
View
|
1
2
3
4
5
6
7
8
|
14 chunks |
+37 lines, -37 lines |
0 comments
|
Download
|
|
M |
base/memory/shared_memory_unittest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
base/metrics/field_trial.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/gpu/arc_gpu_video_decode_accelerator.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
components/exo/wayland/clients/client_base.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
components/exo/wayland/server.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
components/printing/renderer/print_web_view_helper_linux.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/sandbox_ipc_linux.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/child/blob_storage/blob_transport_controller_unittest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ipc/ipc_message_utils.h
|
View
|
1
2
3
4
|
3 chunks |
+1 line, -6 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message_utils.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+64 lines, -5 lines |
0 comments
|
Download
|
|
M |
media/base/video_frame.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
mojo/edk/embedder/platform_shared_buffer.cc
|
View
|
1
2
|
7 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
|
M |
mojo/edk/system/platform_wrapper_unittest.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
mojo/public/cpp/system/platform_handle.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -9 lines |
0 comments
|
Download
|
|
M |
ui/gfx/mojo/buffer_types_struct_traits.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
|
M |
ui/ozone/platform/wayland/wayland_surface_factory.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 73 (54 generated)
|