| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) | 49 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) |
| 50 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) | 50 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) |
| 51 IPC_STRUCT_MEMBER(gfx::Size, size) | 51 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 52 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | 52 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) |
| 53 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage) | 53 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage) |
| 54 IPC_STRUCT_MEMBER(int32_t, client_id) | 54 IPC_STRUCT_MEMBER(int32_t, client_id) |
| 55 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle) | 55 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle) |
| 56 IPC_STRUCT_END() | 56 IPC_STRUCT_END() |
| 57 | 57 |
| 58 IPC_STRUCT_TRAITS_BEGIN(content::EstablishChannelParams) | |
| 59 IPC_STRUCT_TRAITS_MEMBER(client_id) | |
| 60 IPC_STRUCT_TRAITS_MEMBER(client_tracing_id) | |
| 61 IPC_STRUCT_TRAITS_MEMBER(preempts) | |
| 62 IPC_STRUCT_TRAITS_MEMBER(allow_view_command_buffers) | |
| 63 IPC_STRUCT_TRAITS_MEMBER(allow_real_time_streams) | |
| 64 IPC_STRUCT_TRAITS_END() | |
| 65 | |
| 66 IPC_STRUCT_TRAITS_BEGIN(gpu::GpuPreferences) | 58 IPC_STRUCT_TRAITS_BEGIN(gpu::GpuPreferences) |
| 67 IPC_STRUCT_TRAITS_MEMBER(single_process) | 59 IPC_STRUCT_TRAITS_MEMBER(single_process) |
| 68 IPC_STRUCT_TRAITS_MEMBER(in_process_gpu) | 60 IPC_STRUCT_TRAITS_MEMBER(in_process_gpu) |
| 69 IPC_STRUCT_TRAITS_MEMBER(ui_prioritize_in_gpu_process) | 61 IPC_STRUCT_TRAITS_MEMBER(ui_prioritize_in_gpu_process) |
| 70 IPC_STRUCT_TRAITS_MEMBER(disable_accelerated_video_decode) | 62 IPC_STRUCT_TRAITS_MEMBER(disable_accelerated_video_decode) |
| 71 #if defined(OS_CHROMEOS) | 63 #if defined(OS_CHROMEOS) |
| 72 IPC_STRUCT_TRAITS_MEMBER(disable_vaapi_accelerated_video_encode) | 64 IPC_STRUCT_TRAITS_MEMBER(disable_vaapi_accelerated_video_encode) |
| 73 #endif | 65 #endif |
| 74 #if BUILDFLAG(ENABLE_WEBRTC) | 66 #if BUILDFLAG(ENABLE_WEBRTC) |
| 75 IPC_STRUCT_TRAITS_MEMBER(disable_web_rtc_hw_encoding) | 67 IPC_STRUCT_TRAITS_MEMBER(disable_web_rtc_hw_encoding) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 103 IPC_STRUCT_TRAITS_MEMBER(use_passthrough_cmd_decoder) | 95 IPC_STRUCT_TRAITS_MEMBER(use_passthrough_cmd_decoder) |
| 104 IPC_STRUCT_TRAITS_END() | 96 IPC_STRUCT_TRAITS_END() |
| 105 | 97 |
| 106 //------------------------------------------------------------------------------ | 98 //------------------------------------------------------------------------------ |
| 107 // GPU Messages | 99 // GPU Messages |
| 108 // These are messages from the browser to the GPU process. | 100 // These are messages from the browser to the GPU process. |
| 109 | 101 |
| 110 // Tells the GPU process to shutdown itself. | 102 // Tells the GPU process to shutdown itself. |
| 111 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize) | 103 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize) |
| 112 | 104 |
| 113 // Tells the GPU process to create a new channel for communication with a | |
| 114 // given client. The channel name is returned in a | |
| 115 // GpuHostMsg_ChannelEstablished message. The client ID is passed so | |
| 116 // that the GPU process reuses an existing channel to that process if it exists. | |
| 117 // This ID is a unique opaque identifier generated by the browser process. | |
| 118 // The client_tracing_id is a unique ID used for the purposes of tracing. | |
| 119 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, | |
| 120 content::EstablishChannelParams /* params */) | |
| 121 | |
| 122 // Tells the GPU process to close the channel identified by |client_id|. | 105 // Tells the GPU process to close the channel identified by |client_id|. |
| 123 // If no channel can be identified, do nothing. | 106 // If no channel can be identified, do nothing. |
| 124 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, int32_t /* client_id */) | 107 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, int32_t /* client_id */) |
| 125 | 108 |
| 126 // Tells the GPU process to create a new gpu memory buffer. | 109 // Tells the GPU process to create a new gpu memory buffer. |
| 127 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, | 110 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, |
| 128 GpuMsg_CreateGpuMemoryBuffer_Params) | 111 GpuMsg_CreateGpuMemoryBuffer_Params) |
| 129 | 112 |
| 130 // Tells the GPU process to destroy buffer. | 113 // Tells the GPU process to destroy buffer. |
| 131 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, | 114 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 //------------------------------------------------------------------------------ | 151 //------------------------------------------------------------------------------ |
| 169 // GPU Host Messages | 152 // GPU Host Messages |
| 170 // These are messages to the browser. | 153 // These are messages to the browser. |
| 171 | 154 |
| 172 // Response from GPU to a GputMsg_Initialize message. | 155 // Response from GPU to a GputMsg_Initialize message. |
| 173 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, | 156 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, |
| 174 bool /* result */, | 157 bool /* result */, |
| 175 ::gpu::GPUInfo /* gpu_info */, | 158 ::gpu::GPUInfo /* gpu_info */, |
| 176 ::gpu::GpuFeatureInfo /* gpu_feature_info */) | 159 ::gpu::GpuFeatureInfo /* gpu_feature_info */) |
| 177 | 160 |
| 178 // Response from GPU to a GpuHostMsg_EstablishChannel message. | |
| 179 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, | |
| 180 IPC::ChannelHandle /* channel_handle */) | |
| 181 | |
| 182 // Message to the GPU that a shader was loaded from disk. | 161 // Message to the GPU that a shader was loaded from disk. |
| 183 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) | 162 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) |
| 184 | 163 |
| 185 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | 164 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
| 186 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | 165 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
| 187 gfx::GpuMemoryBufferHandle /* handle */) | 166 gfx::GpuMemoryBufferHandle /* handle */) |
| 188 | 167 |
| 189 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 168 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
| 190 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 169 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
| 191 gpu::GPUInfo /* GPU logging stats */) | 170 gpu::GPUInfo /* GPU logging stats */) |
| 192 | 171 |
| 193 // Response from GPU to a GpuMsg_GetVideoMemory. | 172 // Response from GPU to a GpuMsg_GetVideoMemory. |
| 194 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | 173 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, |
| 195 gpu::VideoMemoryUsageStats /* GPU memory stats */) | 174 gpu::VideoMemoryUsageStats /* GPU memory stats */) |
| 196 | 175 |
| 197 #if defined(OS_ANDROID) | 176 #if defined(OS_ANDROID) |
| 198 // Response to a GpuMsg_DestroyingVideoSurface message. | 177 // Response to a GpuMsg_DestroyingVideoSurface message. |
| 199 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck, | 178 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck, |
| 200 int /* surface_id */) | 179 int /* surface_id */) |
| 201 #endif | 180 #endif |
| 202 | 181 |
| 203 // Message from GPU to add a GPU log message to the about:gpu page. | 182 // Message from GPU to add a GPU log message to the about:gpu page. |
| 204 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 183 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 205 int /*severity*/, | 184 int /*severity*/, |
| 206 std::string /* header */, | 185 std::string /* header */, |
| 207 std::string /* message */) | 186 std::string /* message */) |
| 208 | 187 |
| 209 // Sent by the GPU process to indicate that a fields trial has been activated. | 188 // Sent by the GPU process to indicate that a fields trial has been activated. |
| 210 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) | 189 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) |
| OLD | NEW |