Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(624)

Side by Side Diff: content/common/gpu/gpu_messages.h

Issue 15385003: Move GPU device/driver info related code from content to gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/gpu_info_unittest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "cc/debug/latency_info.h" 12 #include "cc/debug/latency_info.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/common/gpu/gpu_memory_allocation.h" 14 #include "content/common/gpu/gpu_memory_allocation.h"
15 #include "content/common/gpu/gpu_memory_uma_stats.h" 15 #include "content/common/gpu/gpu_memory_uma_stats.h"
16 #include "content/common/gpu/gpu_process_launch_causes.h" 16 #include "content/common/gpu/gpu_process_launch_causes.h"
17 #include "content/common/gpu/gpu_rendering_stats.h" 17 #include "content/common/gpu/gpu_rendering_stats.h"
18 #include "content/public/common/common_param_traits.h" 18 #include "content/public/common/common_param_traits.h"
19 #include "content/public/common/gpu_info.h"
20 #include "content/public/common/gpu_memory_stats.h" 19 #include "content/public/common/gpu_memory_stats.h"
21 #include "gpu/command_buffer/common/command_buffer.h" 20 #include "gpu/command_buffer/common/command_buffer.h"
22 #include "gpu/command_buffer/common/constants.h" 21 #include "gpu/command_buffer/common/constants.h"
22 #include "gpu/config/gpu_info.h"
23 #include "gpu/ipc/gpu_command_buffer_traits.h" 23 #include "gpu/ipc/gpu_command_buffer_traits.h"
24 #include "ipc/ipc_channel_handle.h" 24 #include "ipc/ipc_channel_handle.h"
25 #include "ipc/ipc_message_macros.h" 25 #include "ipc/ipc_message_macros.h"
26 #include "media/video/video_decode_accelerator.h" 26 #include "media/video/video_decode_accelerator.h"
27 #include "ui/gfx/native_widget_types.h" 27 #include "ui/gfx/native_widget_types.h"
28 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
29 #include "ui/gl/gpu_preference.h" 29 #include "ui/gl/gpu_preference.h"
30 #include "ui/surface/transport_dib.h" 30 #include "ui/surface/transport_dib.h"
31 31
32 #if defined(OS_ANDROID) 32 #if defined(OS_ANDROID)
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 IPC_STRUCT_MEMBER(float, m21) 101 IPC_STRUCT_MEMBER(float, m21)
102 IPC_STRUCT_MEMBER(float, m22) 102 IPC_STRUCT_MEMBER(float, m22)
103 IPC_STRUCT_MEMBER(float, m23) 103 IPC_STRUCT_MEMBER(float, m23)
104 IPC_STRUCT_MEMBER(float, m30) 104 IPC_STRUCT_MEMBER(float, m30)
105 IPC_STRUCT_MEMBER(float, m31) 105 IPC_STRUCT_MEMBER(float, m31)
106 IPC_STRUCT_MEMBER(float, m32) 106 IPC_STRUCT_MEMBER(float, m32)
107 IPC_STRUCT_MEMBER(float, m33) 107 IPC_STRUCT_MEMBER(float, m33)
108 IPC_STRUCT_END() 108 IPC_STRUCT_END()
109 #endif 109 #endif
110 110
111 IPC_STRUCT_TRAITS_BEGIN(content::DxDiagNode) 111 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode)
112 IPC_STRUCT_TRAITS_MEMBER(values) 112 IPC_STRUCT_TRAITS_MEMBER(values)
113 IPC_STRUCT_TRAITS_MEMBER(children) 113 IPC_STRUCT_TRAITS_MEMBER(children)
114 IPC_STRUCT_TRAITS_END() 114 IPC_STRUCT_TRAITS_END()
115 115
116 IPC_STRUCT_TRAITS_BEGIN(content::GpuPerformanceStats) 116 IPC_STRUCT_TRAITS_BEGIN(gpu::GpuPerformanceStats)
117 IPC_STRUCT_TRAITS_MEMBER(graphics) 117 IPC_STRUCT_TRAITS_MEMBER(graphics)
118 IPC_STRUCT_TRAITS_MEMBER(gaming) 118 IPC_STRUCT_TRAITS_MEMBER(gaming)
119 IPC_STRUCT_TRAITS_MEMBER(overall) 119 IPC_STRUCT_TRAITS_MEMBER(overall)
120 IPC_STRUCT_TRAITS_END() 120 IPC_STRUCT_TRAITS_END()
121 121
122 IPC_STRUCT_TRAITS_BEGIN(content::GPUInfo::GPUDevice) 122 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice)
123 IPC_STRUCT_TRAITS_MEMBER(vendor_id) 123 IPC_STRUCT_TRAITS_MEMBER(vendor_id)
124 IPC_STRUCT_TRAITS_MEMBER(device_id) 124 IPC_STRUCT_TRAITS_MEMBER(device_id)
125 IPC_STRUCT_TRAITS_MEMBER(vendor_string) 125 IPC_STRUCT_TRAITS_MEMBER(vendor_string)
126 IPC_STRUCT_TRAITS_MEMBER(device_string) 126 IPC_STRUCT_TRAITS_MEMBER(device_string)
127 IPC_STRUCT_TRAITS_END() 127 IPC_STRUCT_TRAITS_END()
128 128
129 IPC_STRUCT_TRAITS_BEGIN(content::GPUInfo) 129 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo)
130 IPC_STRUCT_TRAITS_MEMBER(finalized) 130 IPC_STRUCT_TRAITS_MEMBER(finalized)
131 IPC_STRUCT_TRAITS_MEMBER(initialization_time) 131 IPC_STRUCT_TRAITS_MEMBER(initialization_time)
132 IPC_STRUCT_TRAITS_MEMBER(optimus) 132 IPC_STRUCT_TRAITS_MEMBER(optimus)
133 IPC_STRUCT_TRAITS_MEMBER(amd_switchable) 133 IPC_STRUCT_TRAITS_MEMBER(amd_switchable)
134 IPC_STRUCT_TRAITS_MEMBER(lenovo_dcute) 134 IPC_STRUCT_TRAITS_MEMBER(lenovo_dcute)
135 IPC_STRUCT_TRAITS_MEMBER(gpu) 135 IPC_STRUCT_TRAITS_MEMBER(gpu)
136 IPC_STRUCT_TRAITS_MEMBER(secondary_gpus) 136 IPC_STRUCT_TRAITS_MEMBER(secondary_gpus)
137 IPC_STRUCT_TRAITS_MEMBER(driver_vendor) 137 IPC_STRUCT_TRAITS_MEMBER(driver_vendor)
138 IPC_STRUCT_TRAITS_MEMBER(driver_version) 138 IPC_STRUCT_TRAITS_MEMBER(driver_version)
139 IPC_STRUCT_TRAITS_MEMBER(driver_date) 139 IPC_STRUCT_TRAITS_MEMBER(driver_date)
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // GPU Host Messages 292 // GPU Host Messages
293 // These are messages to the browser. 293 // These are messages to the browser.
294 294
295 // A renderer sends this when it wants to create a connection to the GPU 295 // A renderer sends this when it wants to create a connection to the GPU
296 // process. The browser will create the GPU process if necessary, and will 296 // process. The browser will create the GPU process if necessary, and will
297 // return a handle to the channel via a GpuChannelEstablished message. 297 // return a handle to the channel via a GpuChannelEstablished message.
298 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, 298 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel,
299 content::CauseForGpuLaunch, 299 content::CauseForGpuLaunch,
300 int /* client id */, 300 int /* client id */,
301 IPC::ChannelHandle /* handle to channel */, 301 IPC::ChannelHandle /* handle to channel */,
302 content::GPUInfo /* stats about GPU process*/) 302 gpu::GPUInfo /* stats about GPU process*/)
303 303
304 // A renderer sends this to the browser process when it wants to 304 // A renderer sends this to the browser process when it wants to
305 // create a GL context associated with the given view_id. 305 // create a GL context associated with the given view_id.
306 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_CreateViewCommandBuffer, 306 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_CreateViewCommandBuffer,
307 int32, /* surface_id */ 307 int32, /* surface_id */
308 GPUCreateCommandBufferConfig, /* init_params */ 308 GPUCreateCommandBufferConfig, /* init_params */
309 int32 /* route_id */) 309 int32 /* route_id */)
310 310
311 // Response from GPU to a GputMsg_Initialize message. 311 // Response from GPU to a GputMsg_Initialize message.
312 IPC_MESSAGE_CONTROL1(GpuHostMsg_Initialized, 312 IPC_MESSAGE_CONTROL1(GpuHostMsg_Initialized,
(...skipping 25 matching lines...) Expand all
338 // command buffer. 338 // command buffer.
339 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, 339 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer,
340 int32 /* surface_id */) 340 int32 /* surface_id */)
341 341
342 // Response from GPU to a GpuMsg_CreateImage message. 342 // Response from GPU to a GpuMsg_CreateImage message.
343 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, 343 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated,
344 gfx::Size /* size */) 344 gfx::Size /* size */)
345 345
346 // Response from GPU to a GpuMsg_CollectGraphicsInfo. 346 // Response from GPU to a GpuMsg_CollectGraphicsInfo.
347 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, 347 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected,
348 content::GPUInfo /* GPU logging stats */) 348 gpu::GPUInfo /* GPU logging stats */)
349 349
350 // Response from GPU to a GpuMsg_GetVideoMemory. 350 // Response from GPU to a GpuMsg_GetVideoMemory.
351 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, 351 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats,
352 content::GPUVideoMemoryUsageStats /* GPU memory stats */) 352 content::GPUVideoMemoryUsageStats /* GPU memory stats */)
353 353
354 // Message from GPU to add a GPU log message to the about:gpu page. 354 // Message from GPU to add a GPU log message to the about:gpu page.
355 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, 355 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage,
356 int /*severity*/, 356 int /*severity*/,
357 std::string /* header */, 357 std::string /* header */,
358 std::string /* message */) 358 std::string /* message */)
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 667
668 // Confirm decoder has been flushed. 668 // Confirm decoder has been flushed.
669 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 669 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
670 670
671 // Confirm decoder has been reset. 671 // Confirm decoder has been reset.
672 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 672 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
673 673
674 // Video decoder has encountered an error. 674 // Video decoder has encountered an error.
675 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 675 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
676 uint32) /* Error ID */ 676 uint32) /* Error ID */
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_info_unittest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698