summaryrefslogtreecommitdiff
path: root/chromium/media/gpu/windows/supported_profile_helpers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/gpu/windows/supported_profile_helpers.cc')
-rw-r--r--chromium/media/gpu/windows/supported_profile_helpers.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/media/gpu/windows/supported_profile_helpers.cc b/chromium/media/gpu/windows/supported_profile_helpers.cc
index 76a557d1825..fb3b532dadd 100644
--- a/chromium/media/gpu/windows/supported_profile_helpers.cc
+++ b/chromium/media/gpu/windows/supported_profile_helpers.cc
@@ -203,7 +203,8 @@ namespace media {
SupportedResolutionRangeMap GetSupportedD3D11VideoDecoderResolutions(
ComD3D11Device device,
- const gpu::GpuDriverBugWorkarounds& workarounds) {
+ const gpu::GpuDriverBugWorkarounds& workarounds,
+ bool provide_av1_resolutions) {
TRACE_EVENT0("gpu,startup", "GetSupportedD3D11VideoDecoderResolutions");
SupportedResolutionRangeMap supported_resolutions;
@@ -245,7 +246,7 @@ SupportedResolutionRangeMap GetSupportedD3D11VideoDecoderResolutions(
const bool should_test_for_av1_support =
base::FeatureList::IsEnabled(kMediaFoundationAV1Decoding) &&
- !workarounds.disable_accelerated_av1_decode;
+ !workarounds.disable_accelerated_av1_decode && provide_av1_resolutions;
// Enumerate supported video profiles and look for the known profile for each
// codec. We first look through the the decoder profiles so we don't run N