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" |
11 #include "gpu/command_buffer/common/sync_token.h" | 11 #include "gpu/command_buffer/common/sync_token.h" |
12 #include "gpu/command_buffer/service/gpu_preferences.h" | 12 #include "gpu/command_buffer/service/gpu_preferences.h" |
| 13 #include "gpu/config/gpu_feature_info.h" |
13 #include "gpu/config/gpu_info.h" | 14 #include "gpu/config/gpu_info.h" |
14 #include "gpu/ipc/common/gpu_command_buffer_traits.h" | 15 #include "gpu/ipc/common/gpu_command_buffer_traits.h" |
15 #include "gpu/ipc/common/gpu_param_traits.h" | 16 #include "gpu/ipc/common/gpu_param_traits.h" |
16 #include "gpu/ipc/common/memory_stats.h" | 17 #include "gpu/ipc/common/memory_stats.h" |
17 #include "gpu/ipc/common/surface_handle.h" | 18 #include "gpu/ipc/common/surface_handle.h" |
18 #include "ipc/ipc_channel_handle.h" | 19 #include "ipc/ipc_channel_handle.h" |
19 #include "ipc/ipc_message_macros.h" | 20 #include "ipc/ipc_message_macros.h" |
20 #include "ipc/ipc_message_start.h" | 21 #include "ipc/ipc_message_start.h" |
21 #include "media/media_features.h" | 22 #include "media/media_features.h" |
22 #include "ui/events/ipc/latency_info_param_traits.h" | 23 #include "ui/events/ipc/latency_info_param_traits.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 #endif | 163 #endif |
163 | 164 |
164 // Tells the GPU process that the browser has seen a GPU switch. | 165 // Tells the GPU process that the browser has seen a GPU switch. |
165 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) | 166 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) |
166 | 167 |
167 //------------------------------------------------------------------------------ | 168 //------------------------------------------------------------------------------ |
168 // GPU Host Messages | 169 // GPU Host Messages |
169 // These are messages to the browser. | 170 // These are messages to the browser. |
170 | 171 |
171 // Response from GPU to a GputMsg_Initialize message. | 172 // Response from GPU to a GputMsg_Initialize message. |
172 IPC_MESSAGE_CONTROL2(GpuHostMsg_Initialized, | 173 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, |
173 bool /* result */, | 174 bool /* result */, |
174 ::gpu::GPUInfo /* gpu_info */) | 175 ::gpu::GPUInfo /* gpu_info */, |
| 176 ::gpu::GpuFeatureInfo /* gpu_feature_info */) |
175 | 177 |
176 // Response from GPU to a GpuHostMsg_EstablishChannel message. | 178 // Response from GPU to a GpuHostMsg_EstablishChannel message. |
177 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, | 179 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, |
178 IPC::ChannelHandle /* channel_handle */) | 180 IPC::ChannelHandle /* channel_handle */) |
179 | 181 |
180 // Message to the GPU that a shader was loaded from disk. | 182 // Message to the GPU that a shader was loaded from disk. |
181 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) | 183 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) |
182 | 184 |
183 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | 185 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
184 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | 186 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
(...skipping 14 matching lines...) Expand all Loading... |
199 #endif | 201 #endif |
200 | 202 |
201 // Message from GPU to add a GPU log message to the about:gpu page. | 203 // Message from GPU to add a GPU log message to the about:gpu page. |
202 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 204 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
203 int /*severity*/, | 205 int /*severity*/, |
204 std::string /* header */, | 206 std::string /* header */, |
205 std::string /* message */) | 207 std::string /* message */) |
206 | 208 |
207 // Sent by the GPU process to indicate that a fields trial has been activated. | 209 // Sent by the GPU process to indicate that a fields trial has been activated. |
208 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) | 210 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) |
OLD | NEW |