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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | 158 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) |
158 | 159 |
159 // Tells the GPU process that the browser has seen a GPU switch. | 160 // Tells the GPU process that the browser has seen a GPU switch. |
160 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) | 161 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) |
161 | 162 |
162 //------------------------------------------------------------------------------ | 163 //------------------------------------------------------------------------------ |
163 // GPU Host Messages | 164 // GPU Host Messages |
164 // These are messages to the browser. | 165 // These are messages to the browser. |
165 | 166 |
166 // Response from GPU to a GputMsg_Initialize message. | 167 // Response from GPU to a GputMsg_Initialize message. |
167 IPC_MESSAGE_CONTROL2(GpuHostMsg_Initialized, | 168 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, |
168 bool /* result */, | 169 bool /* result */, |
169 ::gpu::GPUInfo /* gpu_info */) | 170 ::gpu::GPUInfo /* gpu_info */, |
| 171 ::gpu::GpuFeatureInfo /* gpu_feature_info */) |
170 | 172 |
171 // Response from GPU to a GpuHostMsg_EstablishChannel message. | 173 // Response from GPU to a GpuHostMsg_EstablishChannel message. |
172 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, | 174 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, |
173 IPC::ChannelHandle /* channel_handle */) | 175 IPC::ChannelHandle /* channel_handle */) |
174 | 176 |
175 // Message to the GPU that a shader was loaded from disk. | 177 // Message to the GPU that a shader was loaded from disk. |
176 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) | 178 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) |
177 | 179 |
178 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | 180 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
179 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | 181 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
(...skipping 14 matching lines...) Expand all Loading... |
194 #endif | 196 #endif |
195 | 197 |
196 // Message from GPU to add a GPU log message to the about:gpu page. | 198 // Message from GPU to add a GPU log message to the about:gpu page. |
197 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 199 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
198 int /*severity*/, | 200 int /*severity*/, |
199 std::string /* header */, | 201 std::string /* header */, |
200 std::string /* message */) | 202 std::string /* message */) |
201 | 203 |
202 // Sent by the GPU process to indicate that a fields trial has been activated. | 204 // Sent by the GPU process to indicate that a fields trial has been activated. |
203 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) | 205 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) |
OLD | NEW |