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::SwapResult::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::Error, gpu::error::kErrorLast) | 59 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::Error, gpu::error::kErrorLast) |
58 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, | 60 IPC_ENUM_TRAITS_MAX_VALUE(gpu::error::ContextLostReason, |
59 gpu::error::kContextLostReasonLast) | 61 gpu::error::kContextLostReasonLast) |
60 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoEncodeAccelerator::Error, | 62 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoEncodeAccelerator::Error, |
61 media::VideoEncodeAccelerator::kErrorMax) | 63 media::VideoEncodeAccelerator::kErrorMax) |
62 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoFrame::Format, | 64 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoFrame::Format, |
63 media::VideoFrame::FORMAT_MAX) | 65 media::VideoFrame::FORMAT_MAX) |
64 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile, | 66 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile, |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 int32, /* route_id */ | 553 int32, /* route_id */ |
552 bool /* succeeded */) | 554 bool /* succeeded */) |
553 | 555 |
554 // Tells the proxy that there was an error and the command buffer had to be | 556 // Tells the proxy that there was an error and the command buffer had to be |
555 // destroyed for some reason. | 557 // destroyed for some reason. |
556 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_Destroyed, | 558 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_Destroyed, |
557 gpu::error::ContextLostReason, /* reason */ | 559 gpu::error::ContextLostReason, /* reason */ |
558 gpu::error::Error /* error */) | 560 gpu::error::Error /* error */) |
559 | 561 |
560 // Tells the browser that SwapBuffers returned and passes latency info | 562 // Tells the browser that SwapBuffers returned and passes latency info |
561 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SwapBuffersCompleted, | 563 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SwapBuffersCompleted, |
562 std::vector<ui::LatencyInfo> /* latency_info */) | 564 std::vector<ui::LatencyInfo> /* latency_info */, |
| 565 gfx::SwapResult /* result */) |
563 | 566 |
564 // Tells the browser about updated parameters for vsync alignment. | 567 // Tells the browser about updated parameters for vsync alignment. |
565 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, | 568 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_UpdateVSyncParameters, |
566 base::TimeTicks /* timebase */, | 569 base::TimeTicks /* timebase */, |
567 base::TimeDelta /* interval */) | 570 base::TimeDelta /* interval */) |
568 | 571 |
569 // Send to stub on surface visibility change. | 572 // Send to stub on surface visibility change. |
570 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) | 573 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) |
571 | 574 |
572 // Sent to proxy when the gpu memory manager changes its memory allocation. | 575 // 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... |
744 int32 /* bitstream_buffer_id */, | 747 int32 /* bitstream_buffer_id */, |
745 uint32 /* payload_size */, | 748 uint32 /* payload_size */, |
746 bool /* key_frame */) | 749 bool /* key_frame */) |
747 | 750 |
748 // Report error condition. | 751 // Report error condition. |
749 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 752 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
750 media::VideoEncodeAccelerator::Error /* error */) | 753 media::VideoEncodeAccelerator::Error /* error */) |
751 | 754 |
752 // Send destroy request to the encoder. | 755 // Send destroy request to the encoder. |
753 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 756 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |