remove-main-main10-profile-limit.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. diff --git a/media/base/supported_types.cc b/media/base/supported_types.cc
  2. index c47d83f..ebbbce5 100644
  3. --- a/media/base/supported_types.cc
  4. +++ b/media/base/supported_types.cc
  5. @@ -205,28 +205,7 @@ bool IsHevcProfileSupported(const VideoType& type) {
  6. return false;
  7. #if BUILDFLAG(ENABLE_PLATFORM_HEVC)
  8. -#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || \
  9. - BUILDFLAG(IS_MAC)
  10. -#if BUILDFLAG(IS_CHROMEOS_LACROS)
  11. - // TODO(b/171813538): For Lacros, the supplemental profile cache will be
  12. - // asking lacros-gpu, but we will be doing decoding in ash-gpu. Until the
  13. - // codec detection is plumbed through to ash-gpu we can do this extra check
  14. - // for HEVC support.
  15. - if (base::CommandLine::ForCurrentProcess()->HasSwitch(
  16. - switches::kLacrosEnablePlatformHevc)) {
  17. - return true;
  18. - }
  19. -#endif // BUILDFLAG(IS_CHROMEOS_LACROS)
  20. - return GetSupplementalProfileCache()->IsProfileSupported(type.profile);
  21. -#elif BUILDFLAG(IS_ANDROID)
  22. - // Technically android 5.0 mandates support for only HEVC main profile,
  23. - // however some platforms (like chromecast) have had more profiles supported
  24. - // so we'll see what happens if we just enable them all.
  25. - return base::FeatureList::IsEnabled(kPlatformHEVCDecoderSupport);
  26. -#else
  27. return true;
  28. -#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) ||
  29. - // BUILDFLAG(IS_MAC)
  30. #else
  31. return false;
  32. #endif // BUILDFLAG(ENABLE_PLATFORM_HEVC)