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

Unified Diff: chrome/browser/media/encrypted_media_message_filter_android.cc

Issue 246033002: Store SupportedCodecs in KeySystemInfo and KeySystems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
Index: chrome/browser/media/encrypted_media_message_filter_android.cc
diff --git a/chrome/browser/media/encrypted_media_message_filter_android.cc b/chrome/browser/media/encrypted_media_message_filter_android.cc
index c935fde54c6928dbecf022e5a54b07a33795be00..cf2b47ca064ad18d466fa5c84c35e3fa86f93d9a 100644
--- a/chrome/browser/media/encrypted_media_message_filter_android.cc
+++ b/chrome/browser/media/encrypted_media_message_filter_android.cc
@@ -25,26 +25,26 @@ enum CodecType {
};
struct CodecInfo {
- android::SupportedCodecs codec;
+ media::SupportedCodecs codec;
CodecType codec_type;
const char* codec_name;
const char* container_mime_type;
};
const CodecInfo kCodecsToQuery[] = {
- {android::WEBM_VORBIS, CODEC_AUDIO, "vorbis", "video/webm"},
- {android::WEBM_VP8, CODEC_VIDEO, "vp8", "video/webm"},
+ {media::WEBM_VORBIS, CODEC_AUDIO, "vorbis", "video/webm"},
+ {media::WEBM_VP8, CODEC_VIDEO, "vp8", "video/webm"},
#if defined(USE_PROPRIETARY_CODECS)
- {android::MP4_AAC, CODEC_AUDIO, "mp4a", "video/mp4"},
- {android::MP4_AVC1, CODEC_VIDEO, "avc1", "video/mp4"}
+ {media::MP4_AAC, CODEC_AUDIO, "mp4a", "video/mp4"},
+ {media::MP4_AVC1, CODEC_VIDEO, "avc1", "video/mp4"}
#endif // defined(USE_PROPRIETARY_CODECS)
};
-static android::SupportedCodecs GetSupportedCodecs(
+static media::SupportedCodecs GetSupportedCodecs(
const SupportedKeySystemRequest& request,
bool video_must_be_compositable) {
const std::string& key_system = request.key_system;
- android::SupportedCodecs supported_codecs = android::NO_CODECS;
+ media::SupportedCodecs supported_codecs = media::NO_CODECS;
for (size_t i = 0; i < arraysize(kCodecsToQuery); ++i) {
const CodecInfo& info = kCodecsToQuery[i];
@@ -56,8 +56,7 @@ static android::SupportedCodecs GetSupportedCodecs(
MediaDrmBridge::IsKeySystemSupportedWithType(
key_system, info.container_mime_type) &&
MediaCodecBridge::CanDecode(info.codec_name, is_secure)) {
- supported_codecs = static_cast<android::SupportedCodecs>(
- supported_codecs | info.codec);
+ supported_codecs |= info.codec;
}
}
@@ -104,7 +103,7 @@ void EncryptedMediaMessageFilterAndroid::OnGetSupportedKeySystems(
if (!MediaDrmBridge::IsKeySystemSupported(request.key_system))
return;
- DCHECK_EQ(request.codecs & android::INVALID_CODECS, android::NO_CODECS)
+ DCHECK_EQ(request.codecs & media::INVALID_CODECS, media::NO_CODECS)
<< "unrecognized codec";
response->key_system = request.key_system;
// TODO(qinmin): check composition is supported or not.

Powered by Google App Engine
This is Rietveld 408576698