| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // Tells the GPU process to destroy buffer. | 99 // Tells the GPU process to destroy buffer. |
| 100 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, | 100 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, |
| 101 gfx::GpuMemoryBufferId, /* id */ | 101 gfx::GpuMemoryBufferId, /* id */ |
| 102 int32_t, /* client_id */ | 102 int32_t, /* client_id */ |
| 103 gpu::SyncToken /* sync_token */) | 103 gpu::SyncToken /* sync_token */) |
| 104 | 104 |
| 105 // Tells the GPU process to create a context for collecting graphics card | 105 // Tells the GPU process to create a context for collecting graphics card |
| 106 // information. | 106 // information. |
| 107 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 107 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
| 108 | 108 |
| 109 // Tells the GPU process to remove all contexts. | |
| 110 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) | |
| 111 | |
| 112 // Tells the GPU process to crash. | |
| 113 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) | |
| 114 | |
| 115 // Tells the GPU process to hang. | |
| 116 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | |
| 117 | |
| 118 #if defined(OS_ANDROID) | |
| 119 // Tells the GPU process to throw a java exception | |
| 120 IPC_MESSAGE_CONTROL0(GpuMsg_JavaCrash) | |
| 121 #endif | |
| 122 | |
| 123 // Tells the GPU process that the browser has seen a GPU switch. | 109 // Tells the GPU process that the browser has seen a GPU switch. |
| 124 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) | 110 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) |
| 125 | 111 |
| 126 //------------------------------------------------------------------------------ | 112 //------------------------------------------------------------------------------ |
| 127 // GPU Host Messages | 113 // GPU Host Messages |
| 128 // These are messages to the browser. | 114 // These are messages to the browser. |
| 129 | 115 |
| 130 // Response from GPU to a GputMsg_Initialize message. | 116 // Response from GPU to a GputMsg_Initialize message. |
| 131 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, | 117 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, |
| 132 bool /* result */, | 118 bool /* result */, |
| 133 ::gpu::GPUInfo /* gpu_info */, | 119 ::gpu::GPUInfo /* gpu_info */, |
| 134 ::gpu::GpuFeatureInfo /* gpu_feature_info */) | 120 ::gpu::GpuFeatureInfo /* gpu_feature_info */) |
| 135 | 121 |
| 136 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | 122 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
| 137 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | 123 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
| 138 gfx::GpuMemoryBufferHandle /* handle */) | 124 gfx::GpuMemoryBufferHandle /* handle */) |
| 139 | 125 |
| 140 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 126 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
| 141 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 127 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
| 142 gpu::GPUInfo /* GPU logging stats */) | 128 gpu::GPUInfo /* GPU logging stats */) |
| 143 | 129 |
| 144 // Message from GPU to add a GPU log message to the about:gpu page. | 130 // Message from GPU to add a GPU log message to the about:gpu page. |
| 145 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 131 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 146 int /*severity*/, | 132 int /*severity*/, |
| 147 std::string /* header */, | 133 std::string /* header */, |
| 148 std::string /* message */) | 134 std::string /* message */) |
| 149 | 135 |
| 150 // Sent by the GPU process to indicate that a fields trial has been activated. | 136 // Sent by the GPU process to indicate that a fields trial has been activated. |
| 151 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) | 137 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) |
| OLD | NEW |