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