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

Unified Diff: media/base/ipc/media_param_traits_macros.h

Issue 2421633003: media: Use native audio enum types in media mojo interfaces (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/mojo/common/media_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/ipc/media_param_traits_macros.h
diff --git a/media/base/ipc/media_param_traits_macros.h b/media/base/ipc/media_param_traits_macros.h
index 31362e2cc9bfa0486e93cf26d3ca8118690edcb2..a3c5a7e6e7bb1c074312316f8b17f94dca883a55 100644
--- a/media/base/ipc/media_param_traits_macros.h
+++ b/media/base/ipc/media_param_traits_macros.h
@@ -6,13 +6,18 @@
#define MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
#include "ipc/ipc_message_macros.h"
+#include "media/base/audio_codecs.h"
#include "media/base/audio_parameters.h"
#include "media/base/buffering_state.h"
+#include "media/base/channel_layout.h"
#include "media/base/decode_status.h"
+#include "media/base/sample_format.h"
#include "media/base/subsample_entry.h"
#include "media/base/video_capture_types.h"
#include "media/base/video_types.h"
+IPC_ENUM_TRAITS_MAX_VALUE(media::AudioCodec, media::AudioCodec::kAudioCodecMax)
+
IPC_ENUM_TRAITS_MAX_VALUE(media::AudioLatency::LatencyType,
media::AudioLatency::LATENCY_COUNT)
@@ -22,10 +27,12 @@ IPC_ENUM_TRAITS_MAX_VALUE(media::AudioParameters::Format,
IPC_ENUM_TRAITS_MAX_VALUE(media::BufferingState,
media::BufferingState::BUFFERING_STATE_MAX)
+IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX)
+
IPC_ENUM_TRAITS_MAX_VALUE(media::DecodeStatus,
media::DecodeStatus::DECODE_STATUS_MAX)
-IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX)
+IPC_ENUM_TRAITS_MAX_VALUE(media::SampleFormat, media::kSampleFormatMax)
IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelFormat, media::PIXEL_FORMAT_MAX)
« no previous file with comments | « no previous file | media/mojo/common/media_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698