| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // These are messages from the browser to the GPU process. | 108 // These are messages from the browser to the GPU process. |
| 109 | 109 |
| 110 // Tells the GPU process to initialize itself. The browser explicitly | 110 // Tells the GPU process to initialize itself. The browser explicitly |
| 111 // requests this be done so that we are guaranteed that the channel is set | 111 // requests this be done so that we are guaranteed that the channel is set |
| 112 // up between the browser and GPU process before doing any work that might | 112 // up between the browser and GPU process before doing any work that might |
| 113 // potentially crash the GPU process. Detection of the child process | 113 // potentially crash the GPU process. Detection of the child process |
| 114 // exiting abruptly is predicated on having the IPC channel set up. | 114 // exiting abruptly is predicated on having the IPC channel set up. |
| 115 IPC_MESSAGE_CONTROL1(GpuMsg_Initialize, | 115 IPC_MESSAGE_CONTROL1(GpuMsg_Initialize, |
| 116 gpu::GpuPreferences /* gpu_prefernces */) | 116 gpu::GpuPreferences /* gpu_prefernces */) |
| 117 | 117 |
| 118 // Tells the GPU process to shutdown itself. | |
| 119 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize) | |
| 120 | |
| 121 // Tells the GPU process to create a new channel for communication with a | 118 // Tells the GPU process to create a new channel for communication with a |
| 122 // given client. The channel name is returned in a | 119 // given client. The channel name is returned in a |
| 123 // GpuHostMsg_ChannelEstablished message. The client ID is passed so | 120 // GpuHostMsg_ChannelEstablished message. The client ID is passed so |
| 124 // that the GPU process reuses an existing channel to that process if it exists. | 121 // that the GPU process reuses an existing channel to that process if it exists. |
| 125 // This ID is a unique opaque identifier generated by the browser process. | 122 // This ID is a unique opaque identifier generated by the browser process. |
| 126 // The client_tracing_id is a unique ID used for the purposes of tracing. | 123 // The client_tracing_id is a unique ID used for the purposes of tracing. |
| 127 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, | 124 IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, |
| 128 content::EstablishChannelParams /* params */) | 125 content::EstablishChannelParams /* params */) |
| 129 | 126 |
| 130 // Tells the GPU process to close the channel identified by |client_id|. | 127 // Tells the GPU process to close the channel identified by |client_id|. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 gpu::GPUMemoryUmaStats /* GPU memory UMA stats */) | 232 gpu::GPUMemoryUmaStats /* GPU memory UMA stats */) |
| 236 | 233 |
| 237 // Message from GPU to add a GPU log message to the about:gpu page. | 234 // Message from GPU to add a GPU log message to the about:gpu page. |
| 238 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 235 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 239 int /*severity*/, | 236 int /*severity*/, |
| 240 std::string /* header */, | 237 std::string /* header */, |
| 241 std::string /* message */) | 238 std::string /* message */) |
| 242 | 239 |
| 243 // Sent by the GPU process to indicate that a fields trial has been activated. | 240 // Sent by the GPU process to indicate that a fields trial has been activated. |
| 244 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) | 241 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) |
| OLD | NEW |