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

Side by Side Diff: media/base/ipc/media_param_traits_macros.h

Issue 2386443002: media: Use native BufferingState in media mojo interfaces (Closed)
Patch Set: media: Use native media enums in media mojo interfaces Created 4 years, 2 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 | « media/base/buffering_state.h ('k') | media/mojo/clients/mojo_renderer.h » ('j') | 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 #ifndef MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_ 5 #ifndef MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
6 #define MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_ 6 #define MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "media/base/audio_parameters.h" 9 #include "media/base/audio_parameters.h"
10 #include "media/base/buffering_state.h"
10 #include "media/base/subsample_entry.h" 11 #include "media/base/subsample_entry.h"
11 #include "media/base/video_capture_types.h" 12 #include "media/base/video_capture_types.h"
12 #include "media/base/video_types.h" 13 #include "media/base/video_types.h"
13 14
15 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioLatency::LatencyType,
16 media::AudioLatency::LATENCY_COUNT)
17
14 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioParameters::Format, 18 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioParameters::Format,
15 media::AudioParameters::AUDIO_FORMAT_LAST) 19 media::AudioParameters::AUDIO_FORMAT_LAST)
20
21 IPC_ENUM_TRAITS_MAX_VALUE(media::BufferingState,
22 media::BufferingState::BUFFERING_STATE_MAX)
23
16 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX) 24 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX)
17 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioLatency::LatencyType, 25
18 media::AudioLatency::LATENCY_COUNT)
19 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelFormat, media::PIXEL_FORMAT_MAX) 26 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelFormat, media::PIXEL_FORMAT_MAX)
27
20 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelStorage, media::PIXEL_STORAGE_MAX) 28 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelStorage, media::PIXEL_STORAGE_MAX)
21 29
22 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) 30 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry)
23 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) 31 IPC_STRUCT_TRAITS_MEMBER(clear_bytes)
24 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) 32 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes)
25 IPC_STRUCT_TRAITS_END() 33 IPC_STRUCT_TRAITS_END()
26 34
27 #endif // MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_ 35 #endif // MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « media/base/buffering_state.h ('k') | media/mojo/clients/mojo_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698