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

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