| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) | 39 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) |
| 40 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) | 40 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) |
| 41 IPC_STRUCT_MEMBER(gfx::Size, size) | 41 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 42 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | 42 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) |
| 43 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage) | 43 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage) |
| 44 IPC_STRUCT_MEMBER(int32_t, client_id) | 44 IPC_STRUCT_MEMBER(int32_t, client_id) |
| 45 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle) | 45 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle) |
| 46 IPC_STRUCT_END() | 46 IPC_STRUCT_END() |
| 47 | 47 |
| 48 IPC_STRUCT_TRAITS_BEGIN(content::EstablishChannelParams) |
| 49 IPC_STRUCT_TRAITS_MEMBER(client_id) |
| 50 IPC_STRUCT_TRAITS_MEMBER(client_tracing_id) |
| 51 IPC_STRUCT_TRAITS_MEMBER(preempts) |
| 52 IPC_STRUCT_TRAITS_MEMBER(allow_view_command_buffers) |
| 53 IPC_STRUCT_TRAITS_MEMBER(allow_real_time_streams) |
| 54 IPC_STRUCT_TRAITS_END() |
| 55 |
| 48 IPC_STRUCT_TRAITS_BEGIN(gpu::GpuPreferences) | 56 IPC_STRUCT_TRAITS_BEGIN(gpu::GpuPreferences) |
| 49 IPC_STRUCT_TRAITS_MEMBER(single_process) | 57 IPC_STRUCT_TRAITS_MEMBER(single_process) |
| 50 IPC_STRUCT_TRAITS_MEMBER(in_process_gpu) | 58 IPC_STRUCT_TRAITS_MEMBER(in_process_gpu) |
| 51 IPC_STRUCT_TRAITS_MEMBER(ui_prioritize_in_gpu_process) | 59 IPC_STRUCT_TRAITS_MEMBER(ui_prioritize_in_gpu_process) |
| 52 IPC_STRUCT_TRAITS_MEMBER(disable_accelerated_video_decode) | 60 IPC_STRUCT_TRAITS_MEMBER(disable_accelerated_video_decode) |
| 53 #if defined(OS_CHROMEOS) | 61 #if defined(OS_CHROMEOS) |
| 54 IPC_STRUCT_TRAITS_MEMBER(disable_vaapi_accelerated_video_encode) | 62 IPC_STRUCT_TRAITS_MEMBER(disable_vaapi_accelerated_video_encode) |
| 55 #endif | 63 #endif |
| 56 #if BUILDFLAG(ENABLE_WEBRTC) | 64 #if BUILDFLAG(ENABLE_WEBRTC) |
| 57 IPC_STRUCT_TRAITS_MEMBER(disable_web_rtc_hw_encoding) | 65 IPC_STRUCT_TRAITS_MEMBER(disable_web_rtc_hw_encoding) |
| (...skipping 27 matching lines...) Expand all Loading... |
| 85 IPC_STRUCT_TRAITS_MEMBER(use_passthrough_cmd_decoder) | 93 IPC_STRUCT_TRAITS_MEMBER(use_passthrough_cmd_decoder) |
| 86 IPC_STRUCT_TRAITS_END() | 94 IPC_STRUCT_TRAITS_END() |
| 87 | 95 |
| 88 //------------------------------------------------------------------------------ | 96 //------------------------------------------------------------------------------ |
| 89 // GPU Messages | 97 // GPU Messages |
| 90 // These are messages from the browser to the GPU process. | 98 // These are messages from the browser to the GPU process. |
| 91 | 99 |
| 92 // Tells the GPU process to shutdown itself. | 100 // Tells the GPU process to shutdown itself. |
| 93 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize) | 101 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize) |
| 94 | 102 |
| 103 // Tells the GPU process to create a new channel for communication with a |
| 104 // given client. The channel name is returned in a |
| 105 // GpuHostMsg_ChannelEstablished message. The client ID is passed so |
| 106 // that the GPU process reuses an existing channel to that process if it exists. |
| 107 // This ID is a unique opaque identifier generated by the browser process. |
| 108 // The client_tracing_id is a unique ID used for the purposes of tracing. |
| 109 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, |
| 110 content::EstablishChannelParams /* params */) |
| 111 |
| 95 // Tells the GPU process to close the channel identified by |client_id|. | 112 // Tells the GPU process to close the channel identified by |client_id|. |
| 96 // If no channel can be identified, do nothing. | 113 // If no channel can be identified, do nothing. |
| 97 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, int32_t /* client_id */) | 114 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, int32_t /* client_id */) |
| 98 | 115 |
| 99 // Tells the GPU process to create a new gpu memory buffer. | 116 // Tells the GPU process to create a new gpu memory buffer. |
| 100 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, | 117 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, |
| 101 GpuMsg_CreateGpuMemoryBuffer_Params) | 118 GpuMsg_CreateGpuMemoryBuffer_Params) |
| 102 | 119 |
| 103 // Tells the GPU process to destroy buffer. | 120 // Tells the GPU process to destroy buffer. |
| 104 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, | 121 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 //------------------------------------------------------------------------------ | 155 //------------------------------------------------------------------------------ |
| 139 // GPU Host Messages | 156 // GPU Host Messages |
| 140 // These are messages to the browser. | 157 // These are messages to the browser. |
| 141 | 158 |
| 142 // Response from GPU to a GputMsg_Initialize message. | 159 // Response from GPU to a GputMsg_Initialize message. |
| 143 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, | 160 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, |
| 144 bool /* result */, | 161 bool /* result */, |
| 145 ::gpu::GPUInfo /* gpu_info */, | 162 ::gpu::GPUInfo /* gpu_info */, |
| 146 ::gpu::GpuFeatureInfo /* gpu_feature_info */) | 163 ::gpu::GpuFeatureInfo /* gpu_feature_info */) |
| 147 | 164 |
| 165 // Response from GPU to a GpuHostMsg_EstablishChannel message. |
| 166 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, |
| 167 IPC::ChannelHandle /* channel_handle */) |
| 168 |
| 148 // Message to the GPU that a shader was loaded from disk. | 169 // Message to the GPU that a shader was loaded from disk. |
| 149 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) | 170 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) |
| 150 | 171 |
| 151 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | 172 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
| 152 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | 173 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
| 153 gfx::GpuMemoryBufferHandle /* handle */) | 174 gfx::GpuMemoryBufferHandle /* handle */) |
| 154 | 175 |
| 155 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 176 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
| 156 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 177 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
| 157 gpu::GPUInfo /* GPU logging stats */) | 178 gpu::GPUInfo /* GPU logging stats */) |
| 158 | 179 |
| 159 #if defined(OS_ANDROID) | 180 #if defined(OS_ANDROID) |
| 160 // Response to a GpuMsg_DestroyingVideoSurface message. | 181 // Response to a GpuMsg_DestroyingVideoSurface message. |
| 161 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck, | 182 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck, |
| 162 int /* surface_id */) | 183 int /* surface_id */) |
| 163 #endif | 184 #endif |
| 164 | 185 |
| 165 // Message from GPU to add a GPU log message to the about:gpu page. | 186 // Message from GPU to add a GPU log message to the about:gpu page. |
| 166 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 187 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 167 int /*severity*/, | 188 int /*severity*/, |
| 168 std::string /* header */, | 189 std::string /* header */, |
| 169 std::string /* message */) | 190 std::string /* message */) |
| 170 | 191 |
| 171 // Sent by the GPU process to indicate that a fields trial has been activated. | 192 // Sent by the GPU process to indicate that a fields trial has been activated. |
| 172 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) | 193 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) |
| OLD | NEW |