Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: content/common/gpu/media/media_messages.h

Issue 1807263002: gpu_param_traits_macros: Remove Media Dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/gpu/gpu_param_traits_macros.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/gpu/media/create_video_encoder_params.h" 9 #include "content/common/gpu/media/create_video_encoder_params.h"
10 #include "gpu/config/gpu_info.h" 10 #include "gpu/config/gpu_info.h"
(...skipping 22 matching lines...) Expand all
33 static bool Read(const base::Pickle* m, 33 static bool Read(const base::Pickle* m,
34 base::PickleIterator* iter, 34 base::PickleIterator* iter,
35 param_type* r); 35 param_type* r);
36 static void Log(const param_type& p, std::string* l); 36 static void Log(const param_type& p, std::string* l);
37 }; 37 };
38 38
39 } // namespace IPC 39 } // namespace IPC
40 40
41 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_MESSAGES_H_ 41 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_MESSAGES_H_
42 42
43 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile,
44 media::VIDEO_CODEC_PROFILE_MIN,
45 media::VIDEO_CODEC_PROFILE_MAX)
43 IPC_ENUM_TRAITS_MAX_VALUE(media::JpegDecodeAccelerator::Error, 46 IPC_ENUM_TRAITS_MAX_VALUE(media::JpegDecodeAccelerator::Error,
44 media::JpegDecodeAccelerator::LARGEST_ERROR_ENUM) 47 media::JpegDecodeAccelerator::LARGEST_ERROR_ENUM)
45 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoEncodeAccelerator::Error, 48 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoEncodeAccelerator::Error,
46 media::VideoEncodeAccelerator::kErrorMax) 49 media::VideoEncodeAccelerator::kErrorMax)
50
47 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params) 51 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params)
48 IPC_STRUCT_MEMBER(media::BitstreamBuffer, input_buffer) 52 IPC_STRUCT_MEMBER(media::BitstreamBuffer, input_buffer)
49 IPC_STRUCT_MEMBER(gfx::Size, coded_size) 53 IPC_STRUCT_MEMBER(gfx::Size, coded_size)
50 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle) 54 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle)
51 IPC_STRUCT_MEMBER(uint32_t, output_buffer_size) 55 IPC_STRUCT_MEMBER(uint32_t, output_buffer_size)
52 IPC_STRUCT_END() 56 IPC_STRUCT_END()
53 57
54 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params) 58 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params)
55 IPC_STRUCT_MEMBER(int32_t, frame_id) 59 IPC_STRUCT_MEMBER(int32_t, frame_id)
56 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp) 60 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp)
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 259 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
256 260
257 //------------------------------------------------------------------------------ 261 //------------------------------------------------------------------------------
258 // Accelerated JPEG Decoder Host Messages 262 // Accelerated JPEG Decoder Host Messages
259 // These messages are sent from the GPU process to Browser process. 263 // These messages are sent from the GPU process to Browser process.
260 // 264 //
261 // Report decode status. 265 // Report decode status.
262 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 266 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
263 int32_t, /* bitstream_buffer_id */ 267 int32_t, /* bitstream_buffer_id */
264 media::JpegDecodeAccelerator::Error /* error */) 268 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_param_traits_macros.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698