gecko-dev/gfx
alwu 68dd7e07df Bug 1759033 - no longer start or shutdown MediaFoundation explictly, and ensure the media foundation's life cycle long enough. r=bryce
According to [1], `MFShutdown` will shutdown the media foundation for every other call of `MFStartup`, which means it's possible to shutdown the media foundation even if other components are still using that.

Therefore, we should consider make the media foundation alive when the first time any component wants to use it, and shutdown it when the whole process destroys.

We already did similar thing on the RDD process [2] so it makes sense to do it as well on other places. Especially considering we will move the MFT decoder into the RDD process in the future, we definitely don't want an encoder incorrectly shutdown the media foundation the decoder is using.

Also, it saves time to call `MFStartup` if the media foundation is already started.

[1] https://docs.microsoft.com/en-us/windows/win32/api/mfapi/nf-mfapi-mfshutdown
[2] https://searchfox.org/mozilla-central/rev/eeeba8183d3268e0d563c2becf9f4adc21a37368/dom/media/ipc/RDDParent.cpp#111,303,315

Differential Revision: https://phabricator.services.mozilla.com/D140757
2022-03-24 18:56:16 +00:00
..
2d Backed out changeset f26f836c1575 (bug 1756468) for causing leakes. CLOSED TREE 2022-03-24 03:28:12 +02:00
angle Bug 1737313: Document what is needed to generate a preloaded depot_tools zip r=firefox-build-system-reviewers,glandium 2022-01-05 19:52:45 +00:00
cairo Bug 1322756 - Remove PostScript printing code. r=emilio 2021-12-30 11:41:28 +00:00
config Bug 1760887 - Expose FEATURE_VP8_HW_DECODE and FEATURE_VP9_HW_DECODE to the downloadable blocklist. r=gfx-reviewers,jnicol,media-playback-reviewers,alwu 2022-03-23 19:28:57 +00:00
docs Bug 1757011 - Unify some Moz2D documentation. r=gfx-reviewers,mstange 2022-02-26 18:54:49 +00:00
gl Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
graphite2
harfbuzz Bug 1757738 - Update HarfBuzz to 4.1.0. r=jfkthame 2022-03-23 20:13:18 +00:00
ipc Bug 1759033 - no longer start or shutdown MediaFoundation explictly, and ensure the media foundation's life cycle long enough. r=bryce 2022-03-24 18:56:16 +00:00
layers Backed out 4 changesets (bug 1760222) for causing reftest failures on disable-apz-for-sle-pages.html CLOSED TREE 2022-03-24 02:36:42 -04:00
ots Bug 1748352 - Update OTS to 8.2.1. r=jfkthame 2022-01-03 23:11:47 +00:00
qcms Bug 1758021 - Get is_{arm,aarch64}_feature_detected from std::arch on rustc >= 1.60. r=gfx-reviewers,jrmuizel 2022-03-04 00:39:40 +00:00
skia Bug 1747272 - Apply current color when rasterizing glyphs from color fonts in Skia using Core Text. r=lsalzman 2022-02-01 21:41:17 +00:00
src Bug 1751217 Part 2: Change nsDeviceContext::GetDepth to eliminate the outparam. r=emilio 2022-03-24 18:19:49 +00:00
tests Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
thebes Bug 1759988 - Ensure InitializeCodepointsWithNoFonts() is always called during font-list initialization. r=gfx-reviewers,jrmuizel 2022-03-24 14:23:34 +00:00
vr Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
webrender_bindings Bug 1667303 - video scaling at VideoProcessor for overlay video if possible r=gfx-reviewers,jrmuizel 2022-03-18 14:46:05 +00:00
wgpu_bindings Bug 1758169 - Clean up WebGPU lifetime handling a bit. r=nical 2022-03-08 15:00:39 +00:00
wr Bug 1759891 - Ensure shared font keys have a unique namespace per WebRender instance. r=gw,gfx-reviewers 2022-03-24 03:14:35 +00:00
ycbcr Bug 1757067 - Explicitly specify chroma subsampling scheme for YCbCr data. r=jgilbert,jrmuizel 2022-03-10 09:24:15 +00:00
metrics.yaml Bug 1746941 - Add tags to all Firefox-on-Glean metrics r=janerik 2022-01-14 18:11:08 +00:00
moz.build