| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
| 6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/establish_channel_params.h" | 10 #include "content/common/establish_channel_params.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) | 57 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) |
| 58 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) | 58 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) |
| 59 IPC_STRUCT_MEMBER(gfx::Size, size) | 59 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 60 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | 60 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) |
| 61 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage) | 61 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage) |
| 62 IPC_STRUCT_MEMBER(int32_t, client_id) | 62 IPC_STRUCT_MEMBER(int32_t, client_id) |
| 63 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle) | 63 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle) |
| 64 IPC_STRUCT_END() | 64 IPC_STRUCT_END() |
| 65 | 65 |
| 66 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBufferFromHandle_Params) | |
| 67 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, handle) | |
| 68 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) | |
| 69 IPC_STRUCT_MEMBER(gfx::Size, size) | |
| 70 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | |
| 71 IPC_STRUCT_MEMBER(int32_t, client_id) | |
| 72 IPC_STRUCT_END() | |
| 73 | |
| 74 IPC_STRUCT_TRAITS_BEGIN(content::EstablishChannelParams) | 66 IPC_STRUCT_TRAITS_BEGIN(content::EstablishChannelParams) |
| 75 IPC_STRUCT_TRAITS_MEMBER(client_id) | 67 IPC_STRUCT_TRAITS_MEMBER(client_id) |
| 76 IPC_STRUCT_TRAITS_MEMBER(client_tracing_id) | 68 IPC_STRUCT_TRAITS_MEMBER(client_tracing_id) |
| 77 IPC_STRUCT_TRAITS_MEMBER(preempts) | 69 IPC_STRUCT_TRAITS_MEMBER(preempts) |
| 78 IPC_STRUCT_TRAITS_MEMBER(allow_view_command_buffers) | 70 IPC_STRUCT_TRAITS_MEMBER(allow_view_command_buffers) |
| 79 IPC_STRUCT_TRAITS_MEMBER(allow_real_time_streams) | 71 IPC_STRUCT_TRAITS_MEMBER(allow_real_time_streams) |
| 80 IPC_STRUCT_TRAITS_END() | 72 IPC_STRUCT_TRAITS_END() |
| 81 | 73 |
| 82 #if defined(OS_MACOSX) | 74 #if defined(OS_MACOSX) |
| 83 IPC_STRUCT_TRAITS_BEGIN(content::AcceleratedSurfaceBuffersSwappedParams) | 75 IPC_STRUCT_TRAITS_BEGIN(content::AcceleratedSurfaceBuffersSwappedParams) |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 content::EstablishChannelParams /* params */) | 152 content::EstablishChannelParams /* params */) |
| 161 | 153 |
| 162 // Tells the GPU process to close the channel identified by |client_id|. | 154 // Tells the GPU process to close the channel identified by |client_id|. |
| 163 // If no channel can be identified, do nothing. | 155 // If no channel can be identified, do nothing. |
| 164 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, int32_t /* client_id */) | 156 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, int32_t /* client_id */) |
| 165 | 157 |
| 166 // Tells the GPU process to create a new gpu memory buffer. | 158 // Tells the GPU process to create a new gpu memory buffer. |
| 167 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, | 159 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, |
| 168 GpuMsg_CreateGpuMemoryBuffer_Params) | 160 GpuMsg_CreateGpuMemoryBuffer_Params) |
| 169 | 161 |
| 170 // Tells the GPU process to create a new gpu memory buffer from an existing | |
| 171 // handle. | |
| 172 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBufferFromHandle, | |
| 173 GpuMsg_CreateGpuMemoryBufferFromHandle_Params) | |
| 174 | |
| 175 // Tells the GPU process to destroy buffer. | 162 // Tells the GPU process to destroy buffer. |
| 176 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, | 163 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, |
| 177 gfx::GpuMemoryBufferId, /* id */ | 164 gfx::GpuMemoryBufferId, /* id */ |
| 178 int32_t, /* client_id */ | 165 int32_t, /* client_id */ |
| 179 gpu::SyncToken /* sync_token */) | 166 gpu::SyncToken /* sync_token */) |
| 180 | 167 |
| 181 // Tells the GPU process to create a context for collecting graphics card | 168 // Tells the GPU process to create a context for collecting graphics card |
| 182 // information. | 169 // information. |
| 183 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 170 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
| 184 | 171 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // so the browser should stop sending the corresponding information | 277 // so the browser should stop sending the corresponding information |
| 291 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription, | 278 IPC_MESSAGE_CONTROL2(GpuHostMsg_RemoveSubscription, |
| 292 int32_t /* client_id */, | 279 int32_t /* client_id */, |
| 293 unsigned int /* target */) | 280 unsigned int /* target */) |
| 294 | 281 |
| 295 // Message from GPU to add a GPU log message to the about:gpu page. | 282 // Message from GPU to add a GPU log message to the about:gpu page. |
| 296 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 283 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 297 int /*severity*/, | 284 int /*severity*/, |
| 298 std::string /* header */, | 285 std::string /* header */, |
| 299 std::string /* message */) | 286 std::string /* message */) |
| OLD | NEW |