File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -2692,11 +2692,15 @@ void gfxPlatform::InitWebRenderConfig() {
2692
2692
gfxVars::SetAllowSoftwareWebRenderD3D11 (true );
2693
2693
}
2694
2694
2695
+ const bool overlaySupported =
2696
+ IsWin10AnniversaryUpdateOrLater () &&
2697
+ gfxConfig::IsEnabled (Feature::WEBRENDER_COMPOSITOR);
2698
+ MOZ_ASSERT_IF (overlaySupported,
2699
+ gfxConfig::IsEnabled (Feature::WEBRENDER_DCOMP_PRESENT));
2700
+
2695
2701
bool useVideoOverlay = false ;
2696
2702
if (StaticPrefs::gfx_webrender_dcomp_video_overlay_win_AtStartup ()) {
2697
- if (IsWin10AnniversaryUpdateOrLater () &&
2698
- gfxConfig::IsEnabled (Feature::WEBRENDER_COMPOSITOR)) {
2699
- MOZ_ASSERT (gfxConfig::IsEnabled (Feature::WEBRENDER_DCOMP_PRESENT));
2703
+ if (overlaySupported) {
2700
2704
useVideoOverlay = true ;
2701
2705
}
2702
2706
@@ -2722,6 +2726,10 @@ void gfxPlatform::InitWebRenderConfig() {
2722
2726
}
2723
2727
}
2724
2728
}
2729
+ } else if (overlaySupported) {
2730
+ FeatureState& feature = gfxConfig::GetFeature (Feature::VIDEO_OVERLAY);
2731
+ feature.DisableByDefault (FeatureStatus::Blocked, " Disabled by pref" ,
2732
+ " FEATURE_FAILURE_DISABLED_BY_PREF" _ns);
2725
2733
}
2726
2734
2727
2735
if (useVideoOverlay) {
You can’t perform that action at this time.
0 commit comments