| 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 10 matching lines...) Expand all Loading... |
| 21 #include "gpu/command_buffer/common/command_buffer.h" | 21 #include "gpu/command_buffer/common/command_buffer.h" |
| 22 #include "gpu/command_buffer/common/constants.h" | 22 #include "gpu/command_buffer/common/constants.h" |
| 23 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 23 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
| 24 #include "gpu/command_buffer/common/mailbox.h" | 24 #include "gpu/command_buffer/common/mailbox.h" |
| 25 #include "gpu/command_buffer/common/sync_token.h" | 25 #include "gpu/command_buffer/common/sync_token.h" |
| 26 #include "gpu/command_buffer/common/value_state.h" | 26 #include "gpu/command_buffer/common/value_state.h" |
| 27 #include "gpu/config/gpu_info.h" | 27 #include "gpu/config/gpu_info.h" |
| 28 #include "gpu/ipc/gpu_command_buffer_traits.h" | 28 #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 29 #include "ipc/ipc_channel_handle.h" | 29 #include "ipc/ipc_channel_handle.h" |
| 30 #include "ipc/ipc_message_macros.h" | 30 #include "ipc/ipc_message_macros.h" |
| 31 #include "media/base/decrypt_config.h" |
| 31 #include "media/base/video_types.h" | 32 #include "media/base/video_types.h" |
| 32 #include "media/video/jpeg_decode_accelerator.h" | 33 #include "media/video/jpeg_decode_accelerator.h" |
| 33 #include "media/video/video_decode_accelerator.h" | 34 #include "media/video/video_decode_accelerator.h" |
| 34 #include "media/video/video_encode_accelerator.h" | 35 #include "media/video/video_encode_accelerator.h" |
| 35 #include "ui/events/latency_info.h" | 36 #include "ui/events/latency_info.h" |
| 36 #include "ui/gfx/geometry/size.h" | 37 #include "ui/gfx/geometry/size.h" |
| 37 #include "ui/gfx/gpu_memory_buffer.h" | 38 #include "ui/gfx/gpu_memory_buffer.h" |
| 38 #include "ui/gfx/ipc/gfx_param_traits.h" | 39 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 39 #include "ui/gfx/native_widget_types.h" | 40 #include "ui/gfx/native_widget_types.h" |
| 40 #include "ui/gfx/swap_result.h" | 41 #include "ui/gfx/swap_result.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 142 |
| 142 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params) | 143 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params) |
| 143 IPC_STRUCT_MEMBER(int32, input_buffer_id) | 144 IPC_STRUCT_MEMBER(int32, input_buffer_id) |
| 144 IPC_STRUCT_MEMBER(gfx::Size, coded_size) | 145 IPC_STRUCT_MEMBER(gfx::Size, coded_size) |
| 145 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, input_buffer_handle) | 146 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, input_buffer_handle) |
| 146 IPC_STRUCT_MEMBER(uint32, input_buffer_size) | 147 IPC_STRUCT_MEMBER(uint32, input_buffer_size) |
| 147 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle) | 148 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle) |
| 148 IPC_STRUCT_MEMBER(uint32, output_buffer_size) | 149 IPC_STRUCT_MEMBER(uint32, output_buffer_size) |
| 149 IPC_STRUCT_END() | 150 IPC_STRUCT_END() |
| 150 | 151 |
| 152 IPC_STRUCT_BEGIN(AcceleratedVideoDecoderMsg_Decode_Params) |
| 153 IPC_STRUCT_MEMBER(int32, bitstream_buffer_id) |
| 154 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle) |
| 155 IPC_STRUCT_MEMBER(uint32, size) |
| 156 IPC_STRUCT_MEMBER(base::TimeDelta, presentation_timestamp) |
| 157 IPC_STRUCT_MEMBER(std::string, key_id) |
| 158 IPC_STRUCT_MEMBER(std::string, iv) |
| 159 IPC_STRUCT_MEMBER(std::vector<media::SubsampleEntry>, subsamples) |
| 160 IPC_STRUCT_END() |
| 161 |
| 151 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params) | 162 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params) |
| 152 IPC_STRUCT_MEMBER(int32_t, frame_id) | 163 IPC_STRUCT_MEMBER(int32_t, frame_id) |
| 153 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle) | 164 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, buffer_handle) |
| 154 IPC_STRUCT_MEMBER(uint32_t, buffer_offset) | 165 IPC_STRUCT_MEMBER(uint32_t, buffer_offset) |
| 155 IPC_STRUCT_MEMBER(uint32_t, buffer_size) | 166 IPC_STRUCT_MEMBER(uint32_t, buffer_size) |
| 156 IPC_STRUCT_MEMBER(bool, force_keyframe) | 167 IPC_STRUCT_MEMBER(bool, force_keyframe) |
| 157 IPC_STRUCT_END() | 168 IPC_STRUCT_END() |
| 158 | 169 |
| 159 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) | 170 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) |
| 160 IPC_STRUCT_MEMBER(int32, id) | 171 IPC_STRUCT_MEMBER(int32, id) |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) | 280 IPC_STRUCT_TRAITS_BEGIN(gpu::MemoryAllocation) |
| 270 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) | 281 IPC_STRUCT_TRAITS_MEMBER(bytes_limit_when_visible) |
| 271 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) | 282 IPC_STRUCT_TRAITS_MEMBER(priority_cutoff_when_visible) |
| 272 IPC_STRUCT_TRAITS_END() | 283 IPC_STRUCT_TRAITS_END() |
| 273 | 284 |
| 274 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) | 285 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) |
| 275 IPC_STRUCT_TRAITS_MEMBER(handle) | 286 IPC_STRUCT_TRAITS_MEMBER(handle) |
| 276 IPC_STRUCT_TRAITS_MEMBER(transport_type) | 287 IPC_STRUCT_TRAITS_MEMBER(transport_type) |
| 277 IPC_STRUCT_TRAITS_END() | 288 IPC_STRUCT_TRAITS_END() |
| 278 | 289 |
| 290 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) |
| 291 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) |
| 292 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) |
| 293 IPC_STRUCT_TRAITS_END() |
| 294 |
| 279 //------------------------------------------------------------------------------ | 295 //------------------------------------------------------------------------------ |
| 280 // GPU Messages | 296 // GPU Messages |
| 281 // These are messages from the browser to the GPU process. | 297 // These are messages from the browser to the GPU process. |
| 282 | 298 |
| 283 // Tells the GPU process to initialize itself. The browser explicitly | 299 // Tells the GPU process to initialize itself. The browser explicitly |
| 284 // requests this be done so that we are guaranteed that the channel is set | 300 // requests this be done so that we are guaranteed that the channel is set |
| 285 // up between the browser and GPU process before doing any work that might | 301 // up between the browser and GPU process before doing any work that might |
| 286 // potentially crash the GPU process. Detection of the child process | 302 // potentially crash the GPU process. Detection of the child process |
| 287 // exiting abruptly is predicated on having the IPC channel set up. | 303 // exiting abruptly is predicated on having the IPC channel set up. |
| 288 IPC_MESSAGE_CONTROL0(GpuMsg_Initialize) | 304 IPC_MESSAGE_CONTROL0(GpuMsg_Initialize) |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 676 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
| 661 uint32, /* client_texture_id */ | 677 uint32, /* client_texture_id */ |
| 662 int32, /* stream_id */ | 678 int32, /* stream_id */ |
| 663 bool /* succeeded */) | 679 bool /* succeeded */) |
| 664 | 680 |
| 665 //------------------------------------------------------------------------------ | 681 //------------------------------------------------------------------------------ |
| 666 // Accelerated Video Decoder Messages | 682 // Accelerated Video Decoder Messages |
| 667 // These messages are sent from Renderer process to GPU process. | 683 // These messages are sent from Renderer process to GPU process. |
| 668 | 684 |
| 669 // Send input buffer for decoding. | 685 // Send input buffer for decoding. |
| 670 IPC_MESSAGE_ROUTED4(AcceleratedVideoDecoderMsg_Decode, | 686 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_Decode, |
| 671 base::SharedMemoryHandle, /* input_buffer_handle */ | 687 AcceleratedVideoDecoderMsg_Decode_Params) |
| 672 int32, /* bitstream_buffer_id */ | |
| 673 uint32, /* size */ | |
| 674 base::TimeDelta) /* presentation_timestamp */ | |
| 675 | 688 |
| 676 // Sent from Renderer process to the GPU process to give the texture IDs for | 689 // Sent from Renderer process to the GPU process to give the texture IDs for |
| 677 // the textures the decoder will use for output. | 690 // the textures the decoder will use for output. |
| 678 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderMsg_AssignPictureBuffers, | 691 IPC_MESSAGE_ROUTED2(AcceleratedVideoDecoderMsg_AssignPictureBuffers, |
| 679 std::vector<int32>, /* Picture buffer ID */ | 692 std::vector<int32>, /* Picture buffer ID */ |
| 680 std::vector<uint32>) /* Texture ID */ | 693 std::vector<uint32>) /* Texture ID */ |
| 681 | 694 |
| 682 // Send from Renderer process to the GPU process to recycle the given picture | 695 // Send from Renderer process to the GPU process to recycle the given picture |
| 683 // buffer for further decoding. | 696 // buffer for further decoding. |
| 684 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_ReusePictureBuffer, | 697 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderMsg_ReusePictureBuffer, |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 812 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
| 800 | 813 |
| 801 //------------------------------------------------------------------------------ | 814 //------------------------------------------------------------------------------ |
| 802 // Accelerated JPEG Decoder Host Messages | 815 // Accelerated JPEG Decoder Host Messages |
| 803 // These messages are sent from the GPU process to Browser process. | 816 // These messages are sent from the GPU process to Browser process. |
| 804 // | 817 // |
| 805 // Report decode status. | 818 // Report decode status. |
| 806 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 819 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
| 807 int32, /* bitstream_buffer_id */ | 820 int32, /* bitstream_buffer_id */ |
| 808 media::JpegDecodeAccelerator::Error /* error */) | 821 media::JpegDecodeAccelerator::Error /* error */) |
| OLD | NEW |