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

Side by Side Diff: chrome/renderer/media/chrome_key_systems.cc

Issue 1899423002: Revert of Implement support for vp9 in ISO-BMFF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « chrome/renderer/media/DEPS ('k') | content/browser/media/media_canplaytype_browsertest.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/renderer/media/chrome_key_systems.h" 5 #include "chrome/renderer/media/chrome_key_systems.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "chrome/common/render_messages.h" 17 #include "chrome/common/render_messages.h"
18 #include "components/cdm/renderer/widevine_key_systems.h" 18 #include "components/cdm/renderer/widevine_key_systems.h"
19 #include "content/public/renderer/render_thread.h" 19 #include "content/public/renderer/render_thread.h"
20 #include "media/base/eme_constants.h" 20 #include "media/base/eme_constants.h"
21 #include "media/media_features.h"
22 21
23 #if defined(OS_ANDROID) 22 #if defined(OS_ANDROID)
24 #include "components/cdm/renderer/android_key_systems.h" 23 #include "components/cdm/renderer/android_key_systems.h"
25 #endif 24 #endif
26 25
27 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. 26 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
28 27
29 // The following must be after widevine_cdm_version.h. 28 // The following must be after widevine_cdm_version.h.
30 29
31 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_MIN_GLIBC_VERSION) 30 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_MIN_GLIBC_VERSION)
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 #endif // defined(USE_PROPRIETARY_CODECS) 183 #endif // defined(USE_PROPRIETARY_CODECS)
185 184
186 for (size_t i = 0; i < codecs.size(); ++i) { 185 for (size_t i = 0; i < codecs.size(); ++i) {
187 if (codecs[i] == kCdmSupportedCodecVp8) 186 if (codecs[i] == kCdmSupportedCodecVp8)
188 supported_codecs |= media::EME_CODEC_WEBM_VP8; 187 supported_codecs |= media::EME_CODEC_WEBM_VP8;
189 if (codecs[i] == kCdmSupportedCodecVp9) 188 if (codecs[i] == kCdmSupportedCodecVp9)
190 supported_codecs |= media::EME_CODEC_WEBM_VP9; 189 supported_codecs |= media::EME_CODEC_WEBM_VP9;
191 #if defined(USE_PROPRIETARY_CODECS) 190 #if defined(USE_PROPRIETARY_CODECS)
192 if (codecs[i] == kCdmSupportedCodecAvc1) 191 if (codecs[i] == kCdmSupportedCodecAvc1)
193 supported_codecs |= media::EME_CODEC_MP4_AVC1; 192 supported_codecs |= media::EME_CODEC_MP4_AVC1;
194 #if BUILDFLAG(ENABLE_MP4_VP9_DEMUXING)
195 if (codecs[i] == kCdmSupportedCodecVp9)
196 supported_codecs |= media::EME_CODEC_MP4_VP9;
197 #endif
198 #endif // defined(USE_PROPRIETARY_CODECS) 193 #endif // defined(USE_PROPRIETARY_CODECS)
199 } 194 }
200 195
201 cdm::AddWidevineWithCodecs( 196 cdm::AddWidevineWithCodecs(
202 supported_codecs, 197 supported_codecs,
203 #if defined(OS_CHROMEOS) 198 #if defined(OS_CHROMEOS)
204 media::EmeRobustness::HW_SECURE_ALL, // Maximum audio robustness. 199 media::EmeRobustness::HW_SECURE_ALL, // Maximum audio robustness.
205 media::EmeRobustness::HW_SECURE_ALL, // Maximim video robustness. 200 media::EmeRobustness::HW_SECURE_ALL, // Maximim video robustness.
206 media::EmeSessionTypeSupport:: 201 media::EmeSessionTypeSupport::
207 SUPPORTED_WITH_IDENTIFIER, // Persistent-license. 202 SUPPORTED_WITH_IDENTIFIER, // Persistent-license.
(...skipping 21 matching lines...) Expand all
229 224
230 #if defined(WIDEVINE_CDM_AVAILABLE) 225 #if defined(WIDEVINE_CDM_AVAILABLE)
231 AddPepperBasedWidevine(key_systems_info); 226 AddPepperBasedWidevine(key_systems_info);
232 #endif // defined(WIDEVINE_CDM_AVAILABLE) 227 #endif // defined(WIDEVINE_CDM_AVAILABLE)
233 #endif // defined(ENABLE_PEPPER_CDMS) 228 #endif // defined(ENABLE_PEPPER_CDMS)
234 229
235 #if defined(OS_ANDROID) 230 #if defined(OS_ANDROID)
236 cdm::AddAndroidWidevine(key_systems_info); 231 cdm::AddAndroidWidevine(key_systems_info);
237 #endif // defined(OS_ANDROID) 232 #endif // defined(OS_ANDROID)
238 } 233 }
OLDNEW
« no previous file with comments | « chrome/renderer/media/DEPS ('k') | content/browser/media/media_canplaytype_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698