commit b6b226f9e94f8349ffb57ad1f9d299bac5248abc
parent 722cff78eb72f0c40dbd013c198b98465fed9abe
Author: Andrew Osmond <aosmond@gmail.com>
Date: Tue, 23 Dec 2025 23:03:04 +0000
Bug 2005011 - Part 4. Remove redundant gfxVars for VP8 HW decoding status. r=media-playback-reviewers,padenot
We should prefer using the one that we use with ffmpeg, which is also
hooked up to the downloadable blocklist.
Differential Revision: https://phabricator.services.mozilla.com/D275722
Diffstat:
3 files changed, 4 insertions(+), 14 deletions(-)
diff --git a/dom/media/mediasource/MediaSource.cpp b/dom/media/mediasource/MediaSource.cpp
@@ -62,20 +62,16 @@ namespace mozilla {
// Returns true if we should enable MSE webm regardless of preferences.
// 1. If MP4/H264 isn't supported:
-// * Windows XP
-// * Windows Vista and Server 2008 without the optional "Platform Update
-// Supplement"
-// * N/KN editions (Europe and Korea) of Windows 7/8/8.1/10 without the
-// optional "Windows Media Feature Pack"
+// * N/KN editions (Europe and Korea) of Windows 10/11 without the optional
+// "Windows Media Feature Pack"
+// * Some Linux Desktop.
// 2. If H264 hardware acceleration is not available.
-// 3. The CPU is considered to be fast enough
static bool IsVP9Forced(DecoderDoctorDiagnostics* aDiagnostics) {
bool mp4supported = MP4Decoder::IsSupportedType(
MediaContainerType(MEDIAMIMETYPE(VIDEO_MP4)), aDiagnostics);
bool hwsupported = gfx::gfxVars::CanUseHardwareVideoDecoding();
#ifdef MOZ_WIDGET_ANDROID
- return !mp4supported || !hwsupported ||
- gfx::gfxVars::VP9HwDecodeIsAccelerated();
+ return !mp4supported || !hwsupported || gfx::gfxVars::UseVP9HwDecode();
#else
return !mp4supported || !hwsupported;
#endif
diff --git a/gfx/config/gfxVars.h b/gfx/config/gfxVars.h
@@ -101,7 +101,6 @@ class MOZ_STACK_CLASS gfxVarsCollectUpdates;
_(UseH264HwEncode, bool, false) \
_(UseHEVCHwDecode, bool, false) \
_(UseHEVCHwEncode, bool, false) \
- _(VP9HwDecodeIsAccelerated, bool, false) \
_(HwDecodedVideoZeroCopy, bool, false) \
_(UseWMFHWDWM, bool, false) \
_(UseDMABufSurfaceExport, bool, true) \
diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp
@@ -3101,11 +3101,6 @@ void gfxPlatform::InitHardwareVideoConfig() {
CODEC_HW_FEATURE_SETUP(HEVC)
#endif
-#ifdef MOZ_WIDGET_ANDROID
- gfxVars::SetVP9HwDecodeIsAccelerated(
- java::HardwareCodecCapabilityUtils::HasHWVP9(false /* aIsEncoder */));
-#endif
-
#undef CODEC_HW_FEATURE_SETUP_PLATFORM
#undef CODEC_HW_FEATURE_SETUP
}