| 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 28 matching lines...) Expand all Loading... |
| 39 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoMemoryUsageStats) | 39 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoMemoryUsageStats) |
| 40 IPC_STRUCT_TRAITS_MEMBER(process_map) | 40 IPC_STRUCT_TRAITS_MEMBER(process_map) |
| 41 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) | 41 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) |
| 42 IPC_STRUCT_TRAITS_END() | 42 IPC_STRUCT_TRAITS_END() |
| 43 | 43 |
| 44 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoMemoryUsageStats::ProcessStats) | 44 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoMemoryUsageStats::ProcessStats) |
| 45 IPC_STRUCT_TRAITS_MEMBER(video_memory) | 45 IPC_STRUCT_TRAITS_MEMBER(video_memory) |
| 46 IPC_STRUCT_TRAITS_MEMBER(has_duplicates) | 46 IPC_STRUCT_TRAITS_MEMBER(has_duplicates) |
| 47 IPC_STRUCT_TRAITS_END() | 47 IPC_STRUCT_TRAITS_END() |
| 48 | 48 |
| 49 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) | |
| 50 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) | |
| 51 IPC_STRUCT_MEMBER(gfx::Size, size) | |
| 52 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | |
| 53 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage) | |
| 54 IPC_STRUCT_MEMBER(int32_t, client_id) | |
| 55 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle) | |
| 56 IPC_STRUCT_END() | |
| 57 | |
| 58 IPC_STRUCT_TRAITS_BEGIN(gpu::GpuPreferences) | 49 IPC_STRUCT_TRAITS_BEGIN(gpu::GpuPreferences) |
| 59 IPC_STRUCT_TRAITS_MEMBER(single_process) | 50 IPC_STRUCT_TRAITS_MEMBER(single_process) |
| 60 IPC_STRUCT_TRAITS_MEMBER(in_process_gpu) | 51 IPC_STRUCT_TRAITS_MEMBER(in_process_gpu) |
| 61 IPC_STRUCT_TRAITS_MEMBER(ui_prioritize_in_gpu_process) | 52 IPC_STRUCT_TRAITS_MEMBER(ui_prioritize_in_gpu_process) |
| 62 IPC_STRUCT_TRAITS_MEMBER(disable_accelerated_video_decode) | 53 IPC_STRUCT_TRAITS_MEMBER(disable_accelerated_video_decode) |
| 63 #if defined(OS_CHROMEOS) | 54 #if defined(OS_CHROMEOS) |
| 64 IPC_STRUCT_TRAITS_MEMBER(disable_vaapi_accelerated_video_encode) | 55 IPC_STRUCT_TRAITS_MEMBER(disable_vaapi_accelerated_video_encode) |
| 65 #endif | 56 #endif |
| 66 #if BUILDFLAG(ENABLE_WEBRTC) | 57 #if BUILDFLAG(ENABLE_WEBRTC) |
| 67 IPC_STRUCT_TRAITS_MEMBER(disable_web_rtc_hw_encoding) | 58 IPC_STRUCT_TRAITS_MEMBER(disable_web_rtc_hw_encoding) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // GPU Messages | 90 // GPU Messages |
| 100 // These are messages from the browser to the GPU process. | 91 // These are messages from the browser to the GPU process. |
| 101 | 92 |
| 102 // Tells the GPU process to shutdown itself. | 93 // Tells the GPU process to shutdown itself. |
| 103 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize) | 94 IPC_MESSAGE_CONTROL0(GpuMsg_Finalize) |
| 104 | 95 |
| 105 // Tells the GPU process to close the channel identified by |client_id|. | 96 // Tells the GPU process to close the channel identified by |client_id|. |
| 106 // If no channel can be identified, do nothing. | 97 // If no channel can be identified, do nothing. |
| 107 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, int32_t /* client_id */) | 98 IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, int32_t /* client_id */) |
| 108 | 99 |
| 109 // Tells the GPU process to create a new gpu memory buffer. | |
| 110 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, | |
| 111 GpuMsg_CreateGpuMemoryBuffer_Params) | |
| 112 | |
| 113 // Tells the GPU process to destroy buffer. | |
| 114 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, | |
| 115 gfx::GpuMemoryBufferId, /* id */ | |
| 116 int32_t, /* client_id */ | |
| 117 gpu::SyncToken /* sync_token */) | |
| 118 | |
| 119 // Tells the GPU process to create a context for collecting graphics card | 100 // Tells the GPU process to create a context for collecting graphics card |
| 120 // information. | 101 // information. |
| 121 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 102 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
| 122 | 103 |
| 123 // Tells the GPU process to report video_memory information for the task manager | 104 // Tells the GPU process to report video_memory information for the task manager |
| 124 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) | 105 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) |
| 125 | 106 |
| 126 #if defined(OS_ANDROID) | 107 #if defined(OS_ANDROID) |
| 127 // Tells the GPU process to wake up the GPU because we're about to draw. | 108 // Tells the GPU process to wake up the GPU because we're about to draw. |
| 128 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu) | 109 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 154 | 135 |
| 155 // Response from GPU to a GputMsg_Initialize message. | 136 // Response from GPU to a GputMsg_Initialize message. |
| 156 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, | 137 IPC_MESSAGE_CONTROL3(GpuHostMsg_Initialized, |
| 157 bool /* result */, | 138 bool /* result */, |
| 158 ::gpu::GPUInfo /* gpu_info */, | 139 ::gpu::GPUInfo /* gpu_info */, |
| 159 ::gpu::GpuFeatureInfo /* gpu_feature_info */) | 140 ::gpu::GpuFeatureInfo /* gpu_feature_info */) |
| 160 | 141 |
| 161 // Message to the GPU that a shader was loaded from disk. | 142 // Message to the GPU that a shader was loaded from disk. |
| 162 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) | 143 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) |
| 163 | 144 |
| 164 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | |
| 165 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | |
| 166 gfx::GpuMemoryBufferHandle /* handle */) | |
| 167 | |
| 168 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 145 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
| 169 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 146 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
| 170 gpu::GPUInfo /* GPU logging stats */) | 147 gpu::GPUInfo /* GPU logging stats */) |
| 171 | 148 |
| 172 // Response from GPU to a GpuMsg_GetVideoMemory. | 149 // Response from GPU to a GpuMsg_GetVideoMemory. |
| 173 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | 150 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, |
| 174 gpu::VideoMemoryUsageStats /* GPU memory stats */) | 151 gpu::VideoMemoryUsageStats /* GPU memory stats */) |
| 175 | 152 |
| 176 #if defined(OS_ANDROID) | 153 #if defined(OS_ANDROID) |
| 177 // Response to a GpuMsg_DestroyingVideoSurface message. | 154 // Response to a GpuMsg_DestroyingVideoSurface message. |
| 178 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck, | 155 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck, |
| 179 int /* surface_id */) | 156 int /* surface_id */) |
| 180 #endif | 157 #endif |
| 181 | 158 |
| 182 // Message from GPU to add a GPU log message to the about:gpu page. | 159 // Message from GPU to add a GPU log message to the about:gpu page. |
| 183 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 160 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 184 int /*severity*/, | 161 int /*severity*/, |
| 185 std::string /* header */, | 162 std::string /* header */, |
| 186 std::string /* message */) | 163 std::string /* message */) |
| 187 | 164 |
| 188 // Sent by the GPU process to indicate that a fields trial has been activated. | 165 // Sent by the GPU process to indicate that a fields trial has been activated. |
| 189 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) | 166 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) |
| OLD | NEW |