OLD | NEW |
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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "content/common/content_param_traits.h" | 16 #include "content/common/content_param_traits.h" |
17 #include "content/common/gpu/gpu_memory_uma_stats.h" | 17 #include "content/common/gpu/gpu_memory_uma_stats.h" |
18 #include "content/common/gpu/gpu_process_launch_causes.h" | 18 #include "content/common/gpu/gpu_process_launch_causes.h" |
19 #include "content/common/gpu/gpu_stream_priority.h" | 19 #include "content/common/gpu/gpu_stream_priority.h" |
20 #include "content/public/common/common_param_traits.h" | 20 #include "content/public/common/common_param_traits.h" |
| 21 #include "content/public/common/gpu_memory_stats.h" |
21 #include "gpu/command_buffer/common/capabilities.h" | 22 #include "gpu/command_buffer/common/capabilities.h" |
22 #include "gpu/command_buffer/common/command_buffer.h" | 23 #include "gpu/command_buffer/common/command_buffer.h" |
23 #include "gpu/command_buffer/common/constants.h" | 24 #include "gpu/command_buffer/common/constants.h" |
24 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 25 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
25 #include "gpu/command_buffer/common/mailbox.h" | 26 #include "gpu/command_buffer/common/mailbox.h" |
26 #include "gpu/command_buffer/common/sync_token.h" | 27 #include "gpu/command_buffer/common/sync_token.h" |
27 #include "gpu/command_buffer/common/value_state.h" | 28 #include "gpu/command_buffer/common/value_state.h" |
28 #include "gpu/config/gpu_info.h" | 29 #include "gpu/config/gpu_info.h" |
29 #include "gpu/ipc/common/memory_stats.h" | |
30 #include "gpu/ipc/gpu_command_buffer_traits.h" | 30 #include "gpu/ipc/gpu_command_buffer_traits.h" |
31 #include "ipc/ipc_channel_handle.h" | 31 #include "ipc/ipc_channel_handle.h" |
32 #include "ipc/ipc_message_macros.h" | 32 #include "ipc/ipc_message_macros.h" |
33 #include "media/base/decrypt_config.h" | 33 #include "media/base/decrypt_config.h" |
34 #include "media/base/video_types.h" | 34 #include "media/base/video_types.h" |
35 #include "media/video/jpeg_decode_accelerator.h" | 35 #include "media/video/jpeg_decode_accelerator.h" |
36 #include "media/video/video_decode_accelerator.h" | 36 #include "media/video/video_decode_accelerator.h" |
37 #include "media/video/video_encode_accelerator.h" | 37 #include "media/video/video_encode_accelerator.h" |
38 #include "ui/events/latency_info.h" | 38 #include "ui/events/latency_info.h" |
39 #include "ui/gfx/geometry/size.h" | 39 #include "ui/gfx/geometry/size.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 IPC_STRUCT_TRAITS_MEMBER(context_info_state) | 278 IPC_STRUCT_TRAITS_MEMBER(context_info_state) |
279 #if defined(OS_WIN) | 279 #if defined(OS_WIN) |
280 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics_info_state) | 280 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics_info_state) |
281 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics) | 281 IPC_STRUCT_TRAITS_MEMBER(dx_diagnostics) |
282 #endif | 282 #endif |
283 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_capabilities) | 283 IPC_STRUCT_TRAITS_MEMBER(video_decode_accelerator_capabilities) |
284 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) | 284 IPC_STRUCT_TRAITS_MEMBER(video_encode_accelerator_supported_profiles) |
285 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported) | 285 IPC_STRUCT_TRAITS_MEMBER(jpeg_decode_accelerator_supported) |
286 IPC_STRUCT_TRAITS_END() | 286 IPC_STRUCT_TRAITS_END() |
287 | 287 |
288 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoMemoryUsageStats::ProcessStats) | 288 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats::ProcessStats) |
289 IPC_STRUCT_TRAITS_MEMBER(video_memory) | 289 IPC_STRUCT_TRAITS_MEMBER(video_memory) |
290 IPC_STRUCT_TRAITS_MEMBER(has_duplicates) | 290 IPC_STRUCT_TRAITS_MEMBER(has_duplicates) |
291 IPC_STRUCT_TRAITS_END() | 291 IPC_STRUCT_TRAITS_END() |
292 | 292 |
293 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoMemoryUsageStats) | 293 IPC_STRUCT_TRAITS_BEGIN(content::GPUVideoMemoryUsageStats) |
294 IPC_STRUCT_TRAITS_MEMBER(process_map) | 294 IPC_STRUCT_TRAITS_MEMBER(process_map) |
295 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) | 295 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) |
296 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_historical_max) | 296 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_historical_max) |
297 IPC_STRUCT_TRAITS_END() | 297 IPC_STRUCT_TRAITS_END() |
298 | 298 |
299 IPC_STRUCT_TRAITS_BEGIN(content::GPUMemoryUmaStats) | 299 IPC_STRUCT_TRAITS_BEGIN(content::GPUMemoryUmaStats) |
300 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_current) | 300 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_current) |
301 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_max) | 301 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated_max) |
302 IPC_STRUCT_TRAITS_END() | 302 IPC_STRUCT_TRAITS_END() |
303 | 303 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | 440 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
441 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | 441 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
442 gfx::GpuMemoryBufferHandle /* handle */) | 442 gfx::GpuMemoryBufferHandle /* handle */) |
443 | 443 |
444 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 444 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
445 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 445 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
446 gpu::GPUInfo /* GPU logging stats */) | 446 gpu::GPUInfo /* GPU logging stats */) |
447 | 447 |
448 // Response from GPU to a GpuMsg_GetVideoMemory. | 448 // Response from GPU to a GpuMsg_GetVideoMemory. |
449 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | 449 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, |
450 gpu::VideoMemoryUsageStats /* GPU memory stats */) | 450 content::GPUVideoMemoryUsageStats /* GPU memory stats */) |
451 | 451 |
452 // Message from GPU to add a GPU log message to the about:gpu page. | 452 // Message from GPU to add a GPU log message to the about:gpu page. |
453 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 453 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
454 int /*severity*/, | 454 int /*severity*/, |
455 std::string /* header */, | 455 std::string /* header */, |
456 std::string /* message */) | 456 std::string /* message */) |
457 | 457 |
458 | 458 |
459 #if defined(OS_MACOSX) | 459 #if defined(OS_MACOSX) |
460 // Tells the browser that an accelerated surface has swapped. | 460 // Tells the browser that an accelerated surface has swapped. |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 823 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
824 | 824 |
825 //------------------------------------------------------------------------------ | 825 //------------------------------------------------------------------------------ |
826 // Accelerated JPEG Decoder Host Messages | 826 // Accelerated JPEG Decoder Host Messages |
827 // These messages are sent from the GPU process to Browser process. | 827 // These messages are sent from the GPU process to Browser process. |
828 // | 828 // |
829 // Report decode status. | 829 // Report decode status. |
830 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 830 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
831 int32_t, /* bitstream_buffer_id */ | 831 int32_t, /* bitstream_buffer_id */ |
832 media::JpegDecodeAccelerator::Error /* error */) | 832 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |