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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "gpu/ipc/gpu_command_buffer_traits.h" | 26 #include "gpu/ipc/gpu_command_buffer_traits.h" |
27 #include "ipc/ipc_channel_handle.h" | 27 #include "ipc/ipc_channel_handle.h" |
28 #include "ipc/ipc_message_macros.h" | 28 #include "ipc/ipc_message_macros.h" |
29 #include "media/base/video_frame.h" | 29 #include "media/base/video_frame.h" |
30 #include "media/video/video_decode_accelerator.h" | 30 #include "media/video/video_decode_accelerator.h" |
31 #include "media/video/video_encode_accelerator.h" | 31 #include "media/video/video_encode_accelerator.h" |
32 #include "ui/events/latency_info.h" | 32 #include "ui/events/latency_info.h" |
33 #include "ui/gfx/geometry/size.h" | 33 #include "ui/gfx/geometry/size.h" |
34 #include "ui/gfx/gpu_memory_buffer.h" | 34 #include "ui/gfx/gpu_memory_buffer.h" |
35 #include "ui/gfx/native_widget_types.h" | 35 #include "ui/gfx/native_widget_types.h" |
| 36 #include "ui/gfx/swap_result.h" |
36 #include "ui/gl/gpu_preference.h" | 37 #include "ui/gl/gpu_preference.h" |
37 | 38 |
38 #if defined(OS_ANDROID) | 39 #if defined(OS_ANDROID) |
39 #include "content/common/android/surface_texture_peer.h" | 40 #include "content/common/android/surface_texture_peer.h" |
40 #endif | 41 #endif |
41 | 42 |
42 #undef IPC_MESSAGE_EXPORT | 43 #undef IPC_MESSAGE_EXPORT |
43 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 44 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
44 | 45 |
45 #define IPC_MESSAGE_START GpuMsgStart | 46 #define IPC_MESSAGE_START GpuMsgStart |
46 | 47 |
47 IPC_ENUM_TRAITS_MAX_VALUE(content::CauseForGpuLaunch, | 48 IPC_ENUM_TRAITS_MAX_VALUE(content::CauseForGpuLaunch, |
48 content::CAUSE_FOR_GPU_LAUNCH_MAX_ENUM - 1) | 49 content::CAUSE_FOR_GPU_LAUNCH_MAX_ENUM - 1) |
49 IPC_ENUM_TRAITS_MAX_VALUE(content::CreateCommandBufferResult, | 50 IPC_ENUM_TRAITS_MAX_VALUE(content::CreateCommandBufferResult, |
50 content::CREATE_COMMAND_BUFFER_RESULT_LAST) | 51 content::CREATE_COMMAND_BUFFER_RESULT_LAST) |
51 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference, | 52 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuPreference, |
52 gfx::GpuPreferenceLast) | 53 gfx::GpuPreferenceLast) |
53 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SurfaceType, | 54 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SurfaceType, |
54 gfx::SURFACE_TYPE_LAST) | 55 gfx::SURFACE_TYPE_LAST) |
| 56 IPC_ENUM_TRAITS_MAX_VALUE(gfx::SwapResult, gfx::SWAP_RESULT_LAST) |
55 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, | 57 IPC_ENUM_TRAITS_MAX_VALUE(gpu::MemoryAllocation::PriorityCutoff, |
56 gpu::MemoryAllocation::CUTOFF_LAST) | 58 gpu::MemoryAllocation::CUTOFF_LAST) |
57 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, | 59 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, |
58 gpu::error::kContextLostReasonLast) | 60 gpu::error::kContextLostReasonLast) |
59 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoEncodeAccelerator::Error, | 61 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoEncodeAccelerator::Error, |
60 media::VideoEncodeAccelerator::kErrorMax) | 62 media::VideoEncodeAccelerator::kErrorMax) |
61 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoFrame::Format, | 63 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoFrame::Format, |
62 media::VideoFrame::FORMAT_MAX) | 64 media::VideoFrame::FORMAT_MAX) |
63 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile, | 65 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile, |
64 media::VIDEO_CODEC_PROFILE_MIN, | 66 media::VIDEO_CODEC_PROFILE_MIN, |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 uint32 /* initial_bitrate */, | 551 uint32 /* initial_bitrate */, |
550 int32, /* route_id */ | 552 int32, /* route_id */ |
551 bool /* succeeded */) | 553 bool /* succeeded */) |
552 | 554 |
553 // Tells the proxy that there was an error and the command buffer had to be | 555 // Tells the proxy that there was an error and the command buffer had to be |
554 // destroyed for some reason. | 556 // destroyed for some reason. |
555 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, | 557 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, |
556 gpu::error::ContextLostReason /* reason */) | 558 gpu::error::ContextLostReason /* reason */) |
557 | 559 |
558 // Tells the browser that SwapBuffers returned and passes latency info | 560 // Tells the browser that SwapBuffers returned and passes latency info |
559 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SwapBuffersCompleted, | 561 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SwapBuffersCompleted, |
560 std::vector<ui::LatencyInfo> /* latency_info */) | 562 std::vector<ui::LatencyInfo> /* latency_info */, |
| 563 gfx::SwapResult /* result */) |
561 | 564 |
562 // Tells the browser about updated parameters for vsync alignment. | 565 // Tells the browser about updated parameters for vsync alignment. |
563 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, | 566 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, |
564 base::TimeTicks /* timebase */, | 567 base::TimeTicks /* timebase */, |
565 base::TimeDelta /* interval */) | 568 base::TimeDelta /* interval */) |
566 | 569 |
567 // Send to stub on surface visibility change. | 570 // Send to stub on surface visibility change. |
568 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) | 571 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) |
569 | 572 |
570 // Sent to proxy when the gpu memory manager changes its memory allocation. | 573 // Sent to proxy when the gpu memory manager changes its memory allocation. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 int32 /* bitstream_buffer_id */, | 745 int32 /* bitstream_buffer_id */, |
743 uint32 /* payload_size */, | 746 uint32 /* payload_size */, |
744 bool /* key_frame */) | 747 bool /* key_frame */) |
745 | 748 |
746 // Report error condition. | 749 // Report error condition. |
747 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 750 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
748 media::VideoEncodeAccelerator::Error /* error */) | 751 media::VideoEncodeAccelerator::Error /* error */) |
749 | 752 |
750 // Send destroy request to the encoder. | 753 // Send destroy request to the encoder. |
751 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 754 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |