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

Unified Diff: media/mojo/common/media_type_converters.cc

Issue 2408063009: media: Use native DecodeStatus in media mojo interfaces (Closed)
Patch Set: comments addressed 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 | « media/mojo/clients/mojo_video_decoder.cc ('k') | media/mojo/interfaces/media_types.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/common/media_type_converters.cc
diff --git a/media/mojo/common/media_type_converters.cc b/media/mojo/common/media_type_converters.cc
index 41cc5f4065b87904a14a6d0a9aa81e07943a7c1e..5ac4b4be10f430fd5c3908d2e56d596f316551df 100644
--- a/media/mojo/common/media_type_converters.cc
+++ b/media/mojo/common/media_type_converters.cc
@@ -41,17 +41,6 @@ namespace mojo {
media::mojom::mojo_enum_value), \
"Mismatched enum: " #media_enum_value " != " #mojo_enum_value)
-#define ASSERT_ENUM_CLASS_EQ(media_enum, value) \
- static_assert( \
- media::media_enum::value == \
- static_cast<media::media_enum>(media::mojom::media_enum::value), \
- "Mismatched enum: " #media_enum #value)
-
-// DecodeStatus.
-ASSERT_ENUM_CLASS_EQ(DecodeStatus, OK);
-ASSERT_ENUM_CLASS_EQ(DecodeStatus, ABORTED);
-ASSERT_ENUM_CLASS_EQ(DecodeStatus, DECODE_ERROR);
-
// AudioCodec.
ASSERT_ENUM_EQ_RAW(AudioCodec, kUnknownAudioCodec, AudioCodec::UNKNOWN);
ASSERT_ENUM_EQ(AudioCodec, kCodec, , AAC);
« no previous file with comments | « media/mojo/clients/mojo_video_decoder.cc ('k') | media/mojo/interfaces/media_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698