Commit Graph
368 Commits
Author SHA1 Message Date
Kagami Sascha Rosylight ab1cd52a6f Bug 1907663 - Add scale factors to environment data r=emilio
Combining with screenWidth/Height, we'll be able to get the max width/height in CSS pixel to make informed UI decisions and also get a rough idea for display density. (Rough because neither dpi or css scale factor are for physical display density but follow the system setting, although it's rare enough to change those from the default system value.)

Differential Revision: https://phabricator.services.mozilla.com/D216457
2024-07-21 08:43:07 +00:00
Sandor Molnar 38fc34df5c Backed out changeset d217b9116332 (bug 1907663) for causing xpc failures @ test_TelemetryEnvironment_search.js CLOSED TREE 2024-07-19 20:21:45 +03:00
Kagami Sascha Rosylight 0fdf8c3763 Bug 1907663 - Add scale factors to environment data r=emilio
Combining with screenWidth/Height, we'll be able to get the max width/height in CSS pixel to make informed UI decisions and also get a rough idea for display density. (Rough because neither dpi or css scale factor are for physical display density but follow the system setting, although it's rare enough to change those from the default system value.)

Differential Revision: https://phabricator.services.mozilla.com/D216457
2024-07-19 12:03:27 +00:00
Tamas Szentpeteri 845062fc96 Backed out changeset 4a98b429e477 (bug 1907663) for causing bustages related to MockGfxInfo. CLOSED TREE 2024-07-19 01:01:50 +03:00
Kagami Sascha Rosylight 356c74fb25 Bug 1907663 - Add scale factors to environment data r=emilio
Combining with screenWidth/Height, we'll be able to get the max width/height in CSS pixel to make informed UI decisions and also get a rough idea for display density. (Rough because neither dpi or css scale factor are for physical display density but follow the system setting, although it's rare enough to change those from the default system value.)

Differential Revision: https://phabricator.services.mozilla.com/D216457
2024-07-18 21:22:03 +00:00
Andrew Osmond 4b2eb5885c Bug 1887729 - Implement context lost/restored support for CanvasRenderingContext2D. r=webidl,gfx-reviewers,smaug,lsalzman
Remote canvas can run in the GPU process, and if the GPU process
crashes, we need to notify the application using canvas. Historically we
just failed, and the application may have been able to continue drawing
but with the contents prior to the crash lost. Later we regressed to
prevent the canvas from being used at all.

This patch makes it so that we can restore functionality to any
application that supports the contextlost/contextrestored events. This
will allow for a theoretical complete graceful recovery for the user
with minimal disruption.

Differential Revision: https://phabricator.services.mozilla.com/D205608
2024-03-28 14:50:20 +00:00
Butkovits Atila 1e3d704450 Backed out changeset 40fa8e4b06c8 (bug 1887729) for causing failures at test_accelerated_canvas_context_loss.html. CLOSED TREE 2024-03-28 05:09:32 +02:00
Andrew Osmond 7e75ca180a Bug 1887729 - Implement context lost/restored support for CanvasRenderingContext2D. r=webidl,gfx-reviewers,smaug,lsalzman
Remote canvas can run in the GPU process, and if the GPU process
crashes, we need to notify the application using canvas. Historically we
just failed, and the application may have been able to continue drawing
but with the contents prior to the crash lost. Later we regressed to
prevent the canvas from being used at all.

This patch makes it so that we can restore functionality to any
application that supports the contextlost/contextrestored events. This
will allow for a theoretical complete graceful recovery for the user
with minimal disruption.

Differential Revision: https://phabricator.services.mozilla.com/D205608
2024-03-28 01:51:23 +00:00
sotaro 1bd5563a45 Bug 1884600 - Block NVIDIA RTX Video Super Resolution depends on driver version r=gfx-reviewers,jrmuizel
chromium requests NVIDIA super resolution needs 530+ driver.

Differential Revision: https://phabricator.services.mozilla.com/D204453
2024-03-13 01:34:05 +00:00
sotaro ff74db7bc7 Bug 1882005 - Block VideoProcessor-HDR on SDR content depends on driver version r=gfx-reviewers,jrmuizel
chromium blocks it when driver is not 550.00+.

pref gfx.webrender.video-true-hdr.nvidia is changed to a generic name gfx.webrender.overlay-vp-auto-hdr

Differential Revision: https://phabricator.services.mozilla.com/D203568
2024-03-08 01:38:56 +00:00
sotaro 1548ae1a7f Bug 1851630 - Re-enable hardware decoded video overlay without ZeroCopyNV12Texture with all GPUs to release on Windows r=jrmuizel,gfx-reviewers
Hardware decoded video overlay is already enabled with Intel GPUs and NVIDIA GPUs. The change allows hardware decoded video overlay on all GPUs, including AMD GPUs.

Differential Revision: https://phabricator.services.mozilla.com/D202691
2024-02-27 02:49:04 +00:00
Tom Ritter b12daf085d Bug 1826412: Move the Linux Distro stuff to nsIGfxInfo also r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D200390
2024-02-05 21:19:16 +00:00
Tom Ritter a8c70ba823 Bug 1826412: Rip out all the ugly and move it to nsIGfxInfo r=jfkthame,fluent-reviewers,flod
This also adds debug information to about:support

Differential Revision: https://phabricator.services.mozilla.com/D200388
2024-02-05 21:19:16 +00:00
Sandor Molnar bb35a71c8d Backed out 4 changesets (bug 1826412) for causing leakcheck failures. CLOSED TREE
Backed out changeset c11b5221fac4 (bug 1826412)
Backed out changeset af653a9af72d (bug 1826412)
Backed out changeset 889c2c0ffd50 (bug 1826412)
Backed out changeset fc0f90aef845 (bug 1826412)
2024-02-05 22:13:09 +02:00
Tom Ritter dc8543bbe2 Bug 1826412: Move the Linux Distro stuff to nsIGfxInfo also r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D200390
2024-02-05 19:30:41 +00:00
Tom Ritter 1273d58fe7 Bug 1826412: Rip out all the ugly and move it to nsIGfxInfo r=jfkthame,fluent-reviewers,flod
This also adds debug information to about:support

Differential Revision: https://phabricator.services.mozilla.com/D200388
2024-02-05 19:30:40 +00:00
Andrew Osmond b357db8923 Bug 1873996 - Block optional features by default for wildcard/unspecified gfx blocklist entries. r=jrmuizel
Downloadable blocklist entries did not have an explicit way to declare a
rule to affect all features prior to this patch. Instead they would
leave the "feature" attribute unset, which defaults us to
GfxDriverInfo::allFeatures. Now if it is unset, it defaults to
GfxDriverInfo::optionalFeatures. There are also explicit wildcard
feature strings, ALL and OPTIONAL respectively.

Differential Revision: https://phabricator.services.mozilla.com/D198193
2024-01-11 00:34:57 +00:00
Andrew Osmond 6f48560a16 Bug 1873541 - Convert gfx blocklist entries for all features to subset excluding likely safe set. r=jrmuizel
This patch makes it so that we avoid blocking all features with the
blocklist, and instead continue to allow the safe subset proscribed by
GfxInfoBase::OnlyAllowFeatureOnKnownConfig. Any feature allowed in an
unknown configuration should be allowed in a blanket blocklist entry,
unless we know for a fact that we need to also block them.

Differential Revision: https://phabricator.services.mozilla.com/D197963
2024-01-08 21:30:06 +00:00
Andrew Osmond 8f554dd944 Bug 1868737 - Allow minimal gfx features by default for uncertain configurations. r=jrmuizel,perftest-reviewers,kshampur
Some features such as the GPU process (except on Android), backdrop
filter (because it always works with Software WebRender), ANGLE (because
it is generally good) and out of process WebGL (we generally want to
remote WebGL for sandboxing purposes) are special, and should not be
disabled simply because we are uncertain about our configuration. In
these situations, disable most features, but keep these enabled by
default.

Differential Revision: https://phabricator.services.mozilla.com/D197595
2024-01-05 22:23:25 +00:00
Stanca Serban a663c66bc3 Backed out changeset 03a4fbacc768 (bug 1868737) for causing talos performance tests related failures. CLOSED TREE 2024-01-05 02:17:01 +02:00
Andrew Osmond 44804dd627 Bug 1868737 - Allow minimal gfx features by default for uncertain configurations. r=jrmuizel
Some features such as the GPU process (except on Android), backdrop
filter (because it always works with Software WebRender), ANGLE (because
it is generally good) and out of process WebGL (we generally want to
remote WebGL for sandboxing purposes) are special, and should not be
disabled simply because we are uncertain about our configuration. In
these situations, disable most features, but keep these enabled by
default.

Differential Revision: https://phabricator.services.mozilla.com/D197595
2024-01-04 19:08:42 +00:00
Ashley Hale 9e0955cdfa Bug 1843782 - WebGL software rendering when mesa/vmwgfx driver detected r=gfx-reviewers,bradwerth,jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D192039
2023-11-29 21:45:27 +00:00
Butkovits Atila 60a6f3cd8b Backed out changeset 8d11a3a0d707 (bug 1843782) for causing failures complaining about RemoteProcessMonitor . CLOSED TREE 2023-11-29 05:51:34 +02:00
Ashley Hale afe5961013 Bug 1843782 - WebGL software rendering when mesa/vmwgfx driver detected r=gfx-reviewers,bradwerth,jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D192039
2023-11-29 02:15:17 +00:00
Sandor Molnar 1bfe45beef Backed out changeset c1e95a42b8d7 (bug 1843782) for causing gv-junit-fis failures. CLOSED TREE 2023-11-28 02:31:02 +02:00
Ashley Hale 8b1b8d27f8 Bug 1843782 - WebGL software rendering when mesa/vmwgfx driver detected r=gfx-reviewers,bradwerth,jrmuizel,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D192039
2023-11-27 23:25:14 +00:00
sotaro a9993df199 Bug 1829063 - Split video overlay feature of software decoded video from nsIGfxInfo::FEATURE_VIDEO_OVERLAY r=gfx-reviewers,lsalzman
Current gecko enables "software decoded video overlay" only when "hardware decoded video overlay" is enabled. On current release, "hardware decoded video overlay" is not enabled yet with non-Intel GPU, then "software decoded video overlay" is not yet enabled on release. It is not good. We want to enable "software decoded video overlay" independently from "hardware decoded video overlay". Then settings of video overlay is split between "hardware decoded video overlay" and "software decoded video overlay". Then "software decoded video overlay" could be enabled/disabled independently from status of "hardware decoded video overlay".

* settings of hardware decoded video overlay
- nsIGfxInfo::FEATURE_VIDEO_OVERLAY:
- gfx.webrender.dcomp-video-hw-overlay-win
- gfx.webrender.dcomp-video-hw-overlay-win-force-enabled
- gfxVars::UseWebRenderDCompVideoHwOverlayWin()

* settings of software decoded video overlay
- nsIGfxInfo::FEATURE_VIDEO_SOFTWARE_OVERLAY
- gfx.webrender.dcomp-video-sw-overlay-win
- gfx.webrender.dcomp-video-sw-overlay-win-force-enabled
- gfxVars::UseWebRenderDCompVideoSwOverlayWin()

Differential Revision: https://phabricator.services.mozilla.com/D175993
2023-06-22 00:21:07 +00:00
stransky 71fdbf457c Bug 1831038 Add FEATURE_H264_HW_DECODE / FEATURE_AV1_HW_DECODE to track HW decode state on Linux r=alwu
- Add H264_HW_DECODE / AV1_HW_DECODE features to track H264/AV1 decoding state on Linux.
- Add UseH264HwDecode / UseAV1HwDecode gfx variables to route decode state to RDD process.
- Init H264_HW_DECODE / AV1_HW_DECODE features on Linux only and skip all HW decoding features init if VA-API is not supported.

Differential Revision: https://phabricator.services.mozilla.com/D177021
2023-05-11 09:58:21 +00:00
Andrew Osmond 5de9747bc0 Bug 1827222 - GPUProcessManager should not allow (re)initialization during shutdown. r=jnicol
We already avoid launching the GPU process during shutdown, but shutdown
could happen after we initiated the launch and before it completes. Top
level IPDL protocols assert that we don't create them during shutdown,
so we need to be more diligent about checking for that.

Differential Revision: https://phabricator.services.mozilla.com/D175054
2023-05-02 14:56:26 +00:00
serge-sans-paille 71d5bc785e Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173969
2023-04-01 08:31:12 +00:00
Cristian Tuns 29ebb2f54e Backed out 12 changesets (bug 1825325, bug 1825336, bug 1825333, bug 1825332, bug 1825324, bug 1824557, bug 1825328, bug 1825335, bug 1825330, bug 1825329, bug 1825327, bug 1825331) for causing build bustages in nsClipboard.cpp CLOSED TREE
Backed out changeset 9de3ed24d3a0 (bug 1825336)
Backed out changeset aef787728f19 (bug 1825335)
Backed out changeset a04c341244c1 (bug 1825333)
Backed out changeset e3ad15f762ba (bug 1825332)
Backed out changeset eed23da92a27 (bug 1825331)
Backed out changeset 8213bb54376e (bug 1825330)
Backed out changeset 747ec5ac4994 (bug 1825329)
Backed out changeset e91ff431f92d (bug 1825328)
Backed out changeset 59c18d13768b (bug 1825327)
Backed out changeset 538096d99e49 (bug 1825325)
Backed out changeset c76eb9d9b095 (bug 1825324)
Backed out changeset 8b81410eb686 (bug 1824557)
2023-03-31 12:58:53 -04:00
serge-sans-paille 1bf9d22652 Bug 1825324 - Make widget/* buildable outside of a unified build environment r=andi,geckoview-reviewers,m_kato
Depends on D173637

Differential Revision: https://phabricator.services.mozilla.com/D173969
2023-03-31 13:29:44 +00:00
Andi-Bogdan Postelnicu 18e90b4312 Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-27 07:20:25 +00:00
Sandor Molnar a21465caf7 Backed out 2 changesets (bug 1276351) for causing build bustage in image/ClippedImage.cp CLOSED TREE
Backed out changeset e84598eb82c1 (bug 1276351)
Backed out changeset e940b0554484 (bug 1276351)
2023-03-25 14:16:43 +02:00
Andi-Bogdan Postelnicu a53c65154f Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-25 06:58:52 +00:00
Iulian Moraru 55a9a03f95 Backed out 2 changesets (bug 1276351) for causing multiple failures.
Backed out changeset eeaf4f1e06af (bug 1276351)
Backed out changeset d44cb5704342 (bug 1276351)
2023-03-25 00:08:24 +02:00
Andi-Bogdan Postelnicu 75ea04501c Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-24 18:55:39 +00:00
Lee Salzman 760059b9aa Bug 1819133 - Don't error on unrecognized blocklist features. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D171272
2023-02-28 22:02:32 +00:00
sotaro 5cdd181477 Bug 1817269 - Backout Bug 1798245 r=jrmuizel,gfx-reviewers
Bug 1798245 causes Bug 1817269 on Fx 110.

Differential Revision: https://phabricator.services.mozilla.com/D170151
2023-02-17 01:47:02 +00:00
Emilio Cobos Álvarez 1fd4ace1cd Bug 1812698 - Expose desktopEnvironment via nsIXULRuntime rather than nsIGfxInfo. r=stransky
This is:

 * An easier way for browser code to access it.
 * Avoids having a bunch of per-platform implementations.
 * We don't need to actually get graphics info for it to work.

So it should be a bit nicer over all.

Differential Revision: https://phabricator.services.mozilla.com/D168373
2023-02-01 13:14:50 +00:00
Emilio Cobos Álvarez e43ca4b09d Bug 1805939 - Have a central source of truth for desktop environment detection. r=stransky,jld
Gfx blocklist doesn't actually use the desktop environment filter so
remove that functionality. We can reintroduce it in the future if we
need it.

Differential Revision: https://phabricator.services.mozilla.com/D166090
2023-01-20 11:26:11 +00:00
Lee Salzman 53ada74867 Bug 1806058 - Add blocklist for Accelerated Canvas2D. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D164881
2022-12-16 20:15:49 +00:00
sotaro 10c750b0ee Bug 1798245 - Enable video overlay without ZeroCopyNV12Texture with non-intel GPUs to release r=jrmuizel,gfx-reviewers
Bug 1798242 did not cause a regression. Then it seems OK to try to enable video overlay without ZeroCopyNV12Texture with non-intel GPUs to release.

Differential Revision: https://phabricator.services.mozilla.com/D164634
2022-12-16 00:54:14 +00:00
Andrew Osmond 7cb9bef9cc Bug 1801780 - Include more information about blocklist in about:support. r=jrmuizel
We used to provide links to the bug numbers but this was broken
somewhere along the way. Now it is provided the failure IDs from which
it can attempt to extract a bug number, as well as always display any
failure ID and message whenever possible.

Differential Revision: https://phabricator.services.mozilla.com/D162734
2022-11-22 16:00:15 +00:00
Andrew Osmond abcef544cf Bug 1794722 - Part 3. Remove all uses of GfxInfo::GetWebRenderEnabled. r=jrmuizel,webcompat-reviewers,twisniewski
This is always true.

Differential Revision: https://phabricator.services.mozilla.com/D160122
2022-10-28 12:36:06 +00:00
Andrew Osmond f8f1c8a774 Bug 1794722 - Part 2. Remove all uses of gfxVars::UseWebRender(). r=jrmuizel,media-playback-reviewers,alwu
This is always true.

Differential Revision: https://phabricator.services.mozilla.com/D160121
2022-10-28 12:36:06 +00:00
Andrew Osmond 495a0cc878 Bug 1794722 - Part 1. Remove WebRender from the GfxInfo allowlist. r=jrmuizel
WebRender is a mature feature. We should start blocking it on known bad
devices over allowlisting known good devices. This may enable WebRender
in a few more obscure places than we shipped before.

Differential Revision: https://phabricator.services.mozilla.com/D160120
2022-10-28 12:36:05 +00:00
Cristian Tuns 7e753f9368 Backed out 3 changesets (bug 1794722) for causing multiple failures on RemoteProcessMonitor CLOSED TREE
Backed out changeset 0217af5b1aa6 (bug 1794722)
Backed out changeset d7805be9dfb3 (bug 1794722)
Backed out changeset 0093f071f1a5 (bug 1794722)
2022-10-27 20:52:36 -04:00
Andrew Osmond 30537addf0 Bug 1794722 - Part 3. Remove all uses of GfxInfo::GetWebRenderEnabled. r=jrmuizel,webcompat-reviewers,twisniewski
This is always true.

Differential Revision: https://phabricator.services.mozilla.com/D160122
2022-10-28 00:08:04 +00:00
Andrew Osmond e2f7d11017 Bug 1794722 - Part 2. Remove all uses of gfxVars::UseWebRender(). r=jrmuizel,media-playback-reviewers,alwu
This is always true.

Differential Revision: https://phabricator.services.mozilla.com/D160121
2022-10-28 00:08:03 +00:00