tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 4a6bd983d4de64c745e2afba4b74c28847403bdf
parent 9c34d818ade0ce5c879a858133c1a3ca9246f7cd
Author: Gregory Pappas <gp3033@protonmail.com>
Date:   Fri, 21 Nov 2025 20:55:48 +0000

Bug 2001256 - Expose gfx.direct3d11.* prefs to Windows only r=gfx-reviewers,lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D273372

Diffstat:
Mgfx/gl/GLLibraryEGL.cpp | 2++
Mmodules/libpref/init/StaticPrefList.yaml | 3++-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/gfx/gl/GLLibraryEGL.cpp b/gfx/gl/GLLibraryEGL.cpp @@ -265,9 +265,11 @@ static std::shared_ptr<EglDisplay> GetAndInitSurfacelessDisplay( static auto EglDebugLayersEnabled() { EGLAttrib ret = LOCAL_EGL_FALSE; +#ifdef XP_WIN if (StaticPrefs::gfx_direct3d11_enable_debug_layer_AtStartup()) { ret = LOCAL_EGL_TRUE; } +#endif return ret; } diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml @@ -7027,7 +7027,7 @@ value: -1 mirror: once - +#ifdef XP_WIN - name: gfx.direct3d11.reuse-decoder-device type: bool value: true @@ -7062,6 +7062,7 @@ type: int32_t value: 0 mirror: once +#endif # Rate by which the frame rate is divided. I.e. at a number higher than 1 we # will only refresh every <x> frames.