gecko-dev/gfx
Jamie Nicol ffb15c5a6b Bug 1757766 - Avoid using NS_DISPATCH_SYNC in UiCompositorController::Destroy. r=gfx-reviewers,aosmond
On Android, we must dispatch UiCompositorController::Destroy to run on
the UI thread synchronously. We were using NS_DISPATCH_SYNC to do so,
but that works by starting a nested event loop that continues to
execute tasks on the thread we have dispatched from. This means that
we can start to execute a task which calls
nsBaseWidget::CreateCompositor whilst we are midway through
nsBaseWidget::DestroyCompositor. As well as generally seeming like a
terrible idea, this also causes an assertion failure in some tests.

To avoid this use SynchronousTask rather than NS_DISPATCH_SYNC, as it
actually blocks synchronously. Additionally, do the same thing for
APZInputBridgeChild::Destroy, as it is called from the same location
and poses the same risk.

Ideally we wouldn't have to call UiCompositorControllerChild::Destroy
synchronously at all, but it was added in bug 1392705 to fix severe
crashes. It might be a good idea to re-evaluate whether it is still
required at some point in the future.

Differential Revision: https://phabricator.services.mozilla.com/D140084
2022-03-02 18:52:08 +00:00
..
2d Bug 1752457 - Don't normalize zero halfway-vector in SpecularLightingSoftware. r=aosmond 2022-03-02 18:24:28 +00: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 1751987 [Linux] Add VA-API feature r=aosmond 2022-02-23 11:47:07 +00:00
docs Bug 1757011 - Unify some Moz2D documentation. r=gfx-reviewers,mstange 2022-02-26 18:54:49 +00:00
gl Bug 1755780 - Support CopyToSwapChain on WebGLContext. r=jgilbert 2022-02-21 17:33:09 +00:00
graphite2 Bug 1722127 - Modify rlbox graphite struct defs for windows compat r=tjr 2021-07-27 13:09:44 +00:00
harfbuzz Bug 1756664 - Update HarfBuzz to 3.4.0. r=jfkthame 2022-03-01 17:37:04 +00:00
ipc Bug 1756700 - Delay compositor creation on Android to allow time for GPU process to launch. r=gfx-reviewers,geckoview-reviewers,aosmond,calu 2022-03-02 16:56:28 +00:00
layers Bug 1757766 - Avoid using NS_DISPATCH_SYNC in UiCompositorController::Destroy. r=gfx-reviewers,aosmond 2022-03-02 18:52:08 +00:00
ots Bug 1748352 - Update OTS to 8.2.1. r=jfkthame 2022-01-03 23:11:47 +00:00
qcms Bug 1729539 - Hit MOZ_CRASH(assertion failed: y2 > 1. / 12. && y2 <= 1.) at gfx/qcms/src/iccread.rs:1392. r=jrmuizel 2021-09-17 17:41:26 +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 1755737 - Make layout.css.dpi a static pref. r=jfkthame,layout-reviewers 2022-02-16 21:13:58 +00:00
tests Bug 1676760 - Rename Add/RemoveChildRefreshTimer. r=smaug 2022-03-01 22:48:19 +00:00
thebes Bug 1756720 - When using legacy MS Symbol fonts, map character codes from the U+00xx range to the PUA range U+F0xx found in the cmap subtables. r=emilio 2022-03-01 15:22:56 +00:00
vr Bug 1751948 - Part 4: Correctly initialize OtherPid() for in-process actors, r=ipc-reviewers,mccr8 2022-02-28 21:01:48 +00:00
webrender_bindings Bug 1757574 - Reduce the maximum number of high priority WrWorker threads. r=nical 2022-03-02 15:27:31 +00:00
wgpu_bindings Bug 1755503 - Support recording wgpu traces for multiple instances. r=kvark" 2022-02-16 19:04:20 +00:00
wr Bug 1757449 - Make WR NativeFontHandle use String instead of CGFont on macOS. r=jrmuizel 2022-03-02 10:11:05 +00:00
ycbcr Bug 1750858 - Respect mPicSize in WebRender. r=sotaro 2022-02-22 17:56:30 +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 Bug 1722653 - Remove --enable-system-cairo. r=firefox-build-system-reviewers,jrmuizel,andi 2021-07-29 23:38:30 +00:00