зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1818637 - Backout Bug 1817709 r=gfx-reviewers,bradwerth
The problem of Bug 1817269 happens also on Win 11. Then we do not have enough reason to block video overlay on Win10. Differential Revision: https://phabricator.services.mozilla.com/D170835
This commit is contained in:
Родитель
65ad197431
Коммит
f0340b38bf
|
@ -2688,22 +2688,9 @@ void gfxPlatform::InitWebRenderConfig() {
|
|||
gfxVars::SetAllowSoftwareWebRenderD3D11(true);
|
||||
}
|
||||
|
||||
auto IsOverlaySupportedWindowsVersion = [&]() -> bool {
|
||||
const nsCOMPtr<nsIGfxInfo> gfxInfo = components::GfxInfo::Service();
|
||||
nsString vendorID;
|
||||
gfxInfo->GetAdapterVendorID(vendorID);
|
||||
const bool isIntel = vendorID.EqualsLiteral("0x8086");
|
||||
if (isIntel) {
|
||||
return IsWin10AnniversaryUpdateOrLater();
|
||||
}
|
||||
// Video overlay does not work well with non-intel GPUs on Windows 10. See
|
||||
// Bug 1817269, Bug 1817617
|
||||
return IsWin11OrLater();
|
||||
};
|
||||
|
||||
bool useVideoOverlay = false;
|
||||
if (StaticPrefs::gfx_webrender_dcomp_video_overlay_win_AtStartup()) {
|
||||
if (IsOverlaySupportedWindowsVersion() &&
|
||||
if (IsWin10AnniversaryUpdateOrLater() &&
|
||||
gfxConfig::IsEnabled(Feature::WEBRENDER_COMPOSITOR)) {
|
||||
MOZ_ASSERT(gfxConfig::IsEnabled(Feature::WEBRENDER_DCOMP_PRESENT));
|
||||
useVideoOverlay = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче