OLD | NEW |
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 Loading... |
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 #if defined(OS_ANDROID) | |
64 IPC_STRUCT_TRAITS_BEGIN(gfx::SurfaceTextureId) | |
65 IPC_STRUCT_TRAITS_MEMBER(primary_id) | |
66 IPC_STRUCT_TRAITS_MEMBER(secondary_id) | |
67 IPC_STRUCT_TRAITS_END() | |
68 #endif | |
69 | |
70 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) | 63 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) |
71 IPC_STRUCT_TRAITS_MEMBER(primary_id) | 64 IPC_STRUCT_TRAITS_MEMBER(primary_id) |
72 IPC_STRUCT_TRAITS_MEMBER(secondary_id) | 65 IPC_STRUCT_TRAITS_MEMBER(secondary_id) |
73 IPC_STRUCT_TRAITS_END() | 66 IPC_STRUCT_TRAITS_END() |
74 | 67 |
75 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) | 68 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) |
76 IPC_STRUCT_TRAITS_MEMBER(type) | 69 IPC_STRUCT_TRAITS_MEMBER(type) |
77 IPC_STRUCT_TRAITS_MEMBER(handle) | 70 IPC_STRUCT_TRAITS_MEMBER(handle) |
78 IPC_STRUCT_TRAITS_MEMBER(global_id) | 71 IPC_STRUCT_TRAITS_MEMBER(global_id) |
79 #if defined(OS_MACOSX) | 72 #if defined(OS_MACOSX) |
80 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) | 73 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) |
81 #endif | 74 #endif |
82 #if defined(OS_ANDROID) | |
83 IPC_STRUCT_TRAITS_MEMBER(surface_texture_id) | |
84 #endif | |
85 #if defined(USE_X11) | 75 #if defined(USE_X11) |
86 IPC_STRUCT_TRAITS_MEMBER(pixmap) | 76 IPC_STRUCT_TRAITS_MEMBER(pixmap) |
87 #endif | 77 #endif |
88 IPC_STRUCT_TRAITS_END() | 78 IPC_STRUCT_TRAITS_END() |
89 | 79 |
90 #undef IPC_MESSAGE_EXPORT | 80 #undef IPC_MESSAGE_EXPORT |
91 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 81 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
92 | 82 |
93 #define IPC_MESSAGE_START ChildProcessMsgStart | 83 #define IPC_MESSAGE_START ChildProcessMsgStart |
94 | 84 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 uint32 /* width */, | 188 uint32 /* width */, |
199 uint32 /* height */, | 189 uint32 /* height */, |
200 uint32 /* internalformat */, | 190 uint32 /* internalformat */, |
201 uint32 /* usage */, | 191 uint32 /* usage */, |
202 gfx::GpuMemoryBufferHandle) | 192 gfx::GpuMemoryBufferHandle) |
203 | 193 |
204 // Informs the browser that the child deleted a gpu memory buffer. | 194 // Informs the browser that the child deleted a gpu memory buffer. |
205 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, | 195 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, |
206 gfx::GpuMemoryBufferType, | 196 gfx::GpuMemoryBufferType, |
207 gfx::GpuMemoryBufferId) | 197 gfx::GpuMemoryBufferId) |
OLD | NEW |