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

Side by Side Diff: content/common/child_process_messages.h

Issue 685983005: gpu: Associate all GpuMemoryBuffers with unique IDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more ozone build fix Created 6 years, 1 month 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 | « content/common/child_process_host_impl.cc ('k') | content/common/gpu/client/gpu_channel_host.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Common IPC messages used for child processes. 5 // Common IPC messages used for child processes.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot) 54 IPC_STRUCT_TRAITS_BEGIN(tracked_objects::ProcessDataSnapshot)
55 IPC_STRUCT_TRAITS_MEMBER(tasks) 55 IPC_STRUCT_TRAITS_MEMBER(tasks)
56 IPC_STRUCT_TRAITS_MEMBER(descendants) 56 IPC_STRUCT_TRAITS_MEMBER(descendants)
57 IPC_STRUCT_TRAITS_MEMBER(process_id) 57 IPC_STRUCT_TRAITS_MEMBER(process_id)
58 IPC_STRUCT_TRAITS_END() 58 IPC_STRUCT_TRAITS_END()
59 59
60 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, 60 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType,
61 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) 61 gfx::GPU_MEMORY_BUFFER_TYPE_LAST)
62 62
63 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId)
64 IPC_STRUCT_TRAITS_MEMBER(primary_id)
65 IPC_STRUCT_TRAITS_MEMBER(secondary_id)
66 IPC_STRUCT_TRAITS_END()
67
68 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) 63 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle)
64 IPC_STRUCT_TRAITS_MEMBER(id)
69 IPC_STRUCT_TRAITS_MEMBER(type) 65 IPC_STRUCT_TRAITS_MEMBER(type)
70 IPC_STRUCT_TRAITS_MEMBER(handle) 66 IPC_STRUCT_TRAITS_MEMBER(handle)
71 IPC_STRUCT_TRAITS_MEMBER(global_id)
72 #if defined(OS_MACOSX) 67 #if defined(OS_MACOSX)
73 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) 68 IPC_STRUCT_TRAITS_MEMBER(io_surface_id)
74 #endif 69 #endif
75 #if defined(USE_X11)
76 IPC_STRUCT_TRAITS_MEMBER(pixmap)
77 #endif
78 IPC_STRUCT_TRAITS_END() 70 IPC_STRUCT_TRAITS_END()
79 71
80 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Format, 72 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Format,
81 gfx::GpuMemoryBuffer::FORMAT_LAST) 73 gfx::GpuMemoryBuffer::FORMAT_LAST)
82 74
83 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Usage, 75 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Usage,
84 gfx::GpuMemoryBuffer::USAGE_LAST) 76 gfx::GpuMemoryBuffer::USAGE_LAST)
85 77
86 #undef IPC_MESSAGE_EXPORT 78 #undef IPC_MESSAGE_EXPORT
87 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 79 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 gfx::GpuMemoryBufferType, 194 gfx::GpuMemoryBufferType,
203 gfx::GpuMemoryBufferId, 195 gfx::GpuMemoryBufferId,
204 uint32 /* sync_point */) 196 uint32 /* sync_point */)
205 197
206 // Asks the browser to create a block of discardable shared memory for the 198 // Asks the browser to create a block of discardable shared memory for the
207 // child process. 199 // child process.
208 IPC_SYNC_MESSAGE_CONTROL1_1( 200 IPC_SYNC_MESSAGE_CONTROL1_1(
209 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, 201 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory,
210 uint32 /* size */, 202 uint32 /* size */,
211 base::SharedMemoryHandle) 203 base::SharedMemoryHandle)
OLDNEW
« no previous file with comments | « content/common/child_process_host_impl.cc ('k') | content/common/gpu/client/gpu_channel_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698