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

Unified Diff: components/cdm/renderer/android_key_systems.cc

Issue 1737213002: EME: Remove WidevineCdmType. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@parent
Patch Set: Fix Cast build. Created 4 years, 10 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 | « chromecast/renderer/key_systems_cast.cc ('k') | components/cdm/renderer/widevine_key_systems.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cdm/renderer/android_key_systems.cc
diff --git a/components/cdm/renderer/android_key_systems.cc b/components/cdm/renderer/android_key_systems.cc
index b9521d3ad9e7a3fbb16085c514b9c20c0fe471d5..56d2aec617265331d7181e11a3a9b903e5409374 100644
--- a/components/cdm/renderer/android_key_systems.cc
+++ b/components/cdm/renderer/android_key_systems.cc
@@ -51,7 +51,6 @@ void AddAndroidWidevine(std::vector<KeySystemInfo>* concrete_key_systems) {
if (response.compositing_codecs != media::EME_CODEC_NONE) {
AddWidevineWithCodecs(
- WIDEVINE,
response.compositing_codecs, // Regular codecs.
response.non_compositing_codecs, // Hardware-secure codecs.
EmeRobustness::HW_SECURE_CRYPTO, // Max audio robustness.
@@ -65,28 +64,6 @@ void AddAndroidWidevine(std::vector<KeySystemInfo>* concrete_key_systems) {
// It doesn't make sense to support secure codecs but not regular codecs.
DCHECK(response.non_compositing_codecs == media::EME_CODEC_NONE);
}
-
- // For compatibility with the prefixed API, register a separate L1 key system.
- // This key systems acts as though only hardware-secure codecs are available.
- // We only register support for codecs with both regular and hardware-secure
- // variants so that we can be sure they will work regardless of the renderer
- // preference.
- SupportedCodecs secure_codecs =
- response.compositing_codecs & response.non_compositing_codecs;
- if (secure_codecs != media::EME_CODEC_NONE) {
- // Note: The prefixed API only consults the regular codecs field.
- AddWidevineWithCodecs(
- WIDEVINE_HR_NON_COMPOSITING,
- secure_codecs, // Regular codecs.
- media::EME_CODEC_NONE, // Hardware-secure codecs.
- EmeRobustness::HW_SECURE_CRYPTO, // Max audio robustness.
- EmeRobustness::HW_SECURE_ALL, // Max video robustness.
- EmeSessionTypeSupport::NOT_SUPPORTED, // persistent-license.
- EmeSessionTypeSupport::NOT_SUPPORTED, // persistent-release-message.
- EmeFeatureSupport::ALWAYS_ENABLED, // Persistent state.
- EmeFeatureSupport::ALWAYS_ENABLED, // Distinctive identifier.
- concrete_key_systems);
- }
}
void AddAndroidPlatformKeySystems(
« no previous file with comments | « chromecast/renderer/key_systems_cast.cc ('k') | components/cdm/renderer/widevine_key_systems.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698