| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #undef IPC_MESSAGE_EXPORT | 30 #undef IPC_MESSAGE_EXPORT |
| 31 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 31 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 32 | 32 |
| 33 #define IPC_MESSAGE_START GpuMsgStart | 33 #define IPC_MESSAGE_START GpuMsgStart |
| 34 | 34 |
| 35 IPC_ENUM_TRAITS_VALIDATE(gpu::GpuPreferences::VpxDecodeVendors, | 35 IPC_ENUM_TRAITS_VALIDATE(gpu::GpuPreferences::VpxDecodeVendors, |
| 36 ((value >= gpu::GpuPreferences::VPX_VENDOR_NONE) && | 36 ((value >= gpu::GpuPreferences::VPX_VENDOR_NONE) && |
| 37 (value <= gpu::GpuPreferences::VPX_VENDOR_ALL))) | 37 (value <= gpu::GpuPreferences::VPX_VENDOR_ALL))) |
| 38 | 38 |
| 39 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoMemoryUsageStats) | |
| 40 IPC_STRUCT_TRAITS_MEMBER(process_map) | |
| 41 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) | |
| 42 IPC_STRUCT_TRAITS_END() | |
| 43 | |
| 44 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoMemoryUsageStats::ProcessStats) | |
| 45 IPC_STRUCT_TRAITS_MEMBER(video_memory) | |
| 46 IPC_STRUCT_TRAITS_MEMBER(has_duplicates) | |
| 47 IPC_STRUCT_TRAITS_END() | |
| 48 | |
| 49 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) | 39 IPC_STRUCT_BEGIN(GpuMsg_CreateGpuMemoryBuffer_Params) |
| 50 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) | 40 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferId, id) |
| 51 IPC_STRUCT_MEMBER(gfx::Size, size) | 41 IPC_STRUCT_MEMBER(gfx::Size, size) |
| 52 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | 42 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) |
| 53 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage) | 43 IPC_STRUCT_MEMBER(gfx::BufferUsage, usage) |
| 54 IPC_STRUCT_MEMBER(int32_t, client_id) | 44 IPC_STRUCT_MEMBER(int32_t, client_id) |
| 55 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle) | 45 IPC_STRUCT_MEMBER(gpu::SurfaceHandle, surface_handle) |
| 56 IPC_STRUCT_END() | 46 IPC_STRUCT_END() |
| 57 | 47 |
| 58 IPC_STRUCT_TRAITS_BEGIN(gpu::GpuPreferences) | 48 IPC_STRUCT_TRAITS_BEGIN(gpu::GpuPreferences) |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // Tells the GPU process to destroy buffer. | 103 // Tells the GPU process to destroy buffer. |
| 114 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, | 104 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, |
| 115 gfx::GpuMemoryBufferId, /* id */ | 105 gfx::GpuMemoryBufferId, /* id */ |
| 116 int32_t, /* client_id */ | 106 int32_t, /* client_id */ |
| 117 gpu::SyncToken /* sync_token */) | 107 gpu::SyncToken /* sync_token */) |
| 118 | 108 |
| 119 // Tells the GPU process to create a context for collecting graphics card | 109 // Tells the GPU process to create a context for collecting graphics card |
| 120 // information. | 110 // information. |
| 121 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 111 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
| 122 | 112 |
| 123 // Tells the GPU process to report video_memory information for the task manager | |
| 124 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) | |
| 125 | |
| 126 #if defined(OS_ANDROID) | 113 #if defined(OS_ANDROID) |
| 127 // Tells the GPU process to wake up the GPU because we're about to draw. | 114 // Tells the GPU process to wake up the GPU because we're about to draw. |
| 128 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu) | 115 IPC_MESSAGE_CONTROL0(GpuMsg_WakeUpGpu) |
| 129 | 116 |
| 130 // Tells the GPU process to release the surface because it's being destroyed. | 117 // Tells the GPU process to release the surface because it's being destroyed. |
| 131 IPC_MESSAGE_CONTROL1(GpuMsg_DestroyingVideoSurface, int /* surface_id */) | 118 IPC_MESSAGE_CONTROL1(GpuMsg_DestroyingVideoSurface, int /* surface_id */) |
| 132 #endif | 119 #endif |
| 133 | 120 |
| 134 // Tells the GPU process to remove all contexts. | 121 // Tells the GPU process to remove all contexts. |
| 135 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) | 122 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 162 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) | 149 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, std::string /* encoded shader */) |
| 163 | 150 |
| 164 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | 151 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
| 165 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | 152 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
| 166 gfx::GpuMemoryBufferHandle /* handle */) | 153 gfx::GpuMemoryBufferHandle /* handle */) |
| 167 | 154 |
| 168 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 155 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
| 169 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 156 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
| 170 gpu::GPUInfo /* GPU logging stats */) | 157 gpu::GPUInfo /* GPU logging stats */) |
| 171 | 158 |
| 172 // Response from GPU to a GpuMsg_GetVideoMemory. | |
| 173 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | |
| 174 gpu::VideoMemoryUsageStats /* GPU memory stats */) | |
| 175 | |
| 176 #if defined(OS_ANDROID) | 159 #if defined(OS_ANDROID) |
| 177 // Response to a GpuMsg_DestroyingVideoSurface message. | 160 // Response to a GpuMsg_DestroyingVideoSurface message. |
| 178 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck, | 161 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyingVideoSurfaceAck, |
| 179 int /* surface_id */) | 162 int /* surface_id */) |
| 180 #endif | 163 #endif |
| 181 | 164 |
| 182 // Message from GPU to add a GPU log message to the about:gpu page. | 165 // Message from GPU to add a GPU log message to the about:gpu page. |
| 183 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 166 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
| 184 int /*severity*/, | 167 int /*severity*/, |
| 185 std::string /* header */, | 168 std::string /* header */, |
| 186 std::string /* message */) | 169 std::string /* message */) |
| 187 | 170 |
| 188 // Sent by the GPU process to indicate that a fields trial has been activated. | 171 // Sent by the GPU process to indicate that a fields trial has been activated. |
| 189 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) | 172 IPC_MESSAGE_CONTROL1(GpuHostMsg_FieldTrialActivated, std::string /* name */) |
| OLD | NEW |