tor-browser

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

commit 359dba6e15351c33f600b6d7ff519473482d283f
parent 809081a019a63735d96c3b0b4e8c6b310013bf76
Author: Gregory Pappas <gp3033@protonmail.com>
Date:   Thu, 27 Nov 2025 04:32:52 +0000

Bug 2002684 - Expose webgl.dxgl.* prefs to Windows only r=gfx-reviewers,lsalzman

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

Diffstat:
Mgfx/thebes/gfxPlatform.cpp | 7++++++-
Mmodules/libpref/init/StaticPrefList.yaml | 6++----
2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp @@ -880,7 +880,12 @@ void gfxPlatform::Init() { forcedPrefs.AppendPrintf( "-W%d%d%d%d%d%d%d", StaticPrefs::webgl_angle_force_d3d11(), StaticPrefs::webgl_angle_force_warp(), StaticPrefs::webgl_disabled(), - StaticPrefs::webgl_disable_angle(), StaticPrefs::webgl_dxgl_enabled(), + StaticPrefs::webgl_disable_angle(), +#ifdef XP_WIN + StaticPrefs::webgl_dxgl_enabled(), +#else + false, +#endif StaticPrefs::webgl_force_enabled(), StaticPrefs::webgl_msaa_force()); // Prefs that don't fit into any of the other sections forcedPrefs.AppendPrintf("-T%d) ", StaticPrefs::gfx_canvas_accelerated()); diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml @@ -18667,19 +18667,17 @@ value: false mirror: always +#ifdef XP_WIN - name: webgl.dxgl.enabled type: RelaxedAtomicBool -#ifdef XP_WIN value: true -#else - value: false -#endif mirror: always - name: webgl.dxgl.needs-finish type: RelaxedAtomicBool value: false mirror: always +#endif - name: webgl.disable-fail-if-major-performance-caveat type: RelaxedAtomicBool