gecko-dev/gfx/tests/gtest
Jamie Nicol a01c2107a2 Bug 1754159 - Correctly wait for GPU process to be restarted in test. r=tnikkel
Bug 1742985 added the test helper_zoom_after_gpu_process_restart.html,
but it doesn't actually get run on any platform with the GPU process
enabled. (Due to bug 1495580 on windows, and because the GPU process
isn't yet enabled on android.)

The test kills the GPU process, then tries to wait for it to be
restarted before proceeding. However, the function
ensureGPUProcessReadyForTests doesn't always work as intended, as the
GPUProcessManager may not have yet noticed that the process has been
killed, and therefore may return immediately from EnsureGPUReady.

This patch removes the buggy ensureGPUProcessReadyForTests function,
and instead makes the test wait for the "compositor-reinitialized"
topic to be observed.

Differential Revision: https://phabricator.services.mozilla.com/D138125
2022-02-08 12:06:15 +00:00
..
gfxSurfaceRefCountTest.cpp
MockWidget.cpp
MockWidget.h Bug 1736441 - Remove a bunch of dead plugins code from widget/. r=stransky 2021-10-19 11:19:13 +00:00
moz.build Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium 2021-12-01 06:40:04 +00:00
PolygonTestUtils.cpp
PolygonTestUtils.h
TestArena.cpp
TestArrayView.cpp
TestBSPTree.cpp
TestBufferRotation.cpp
TestColorNames.cpp
TestConfigManager.cpp Bug 1754159 - Correctly wait for GPU process to be restarted in test. r=tnikkel 2022-02-08 12:06:15 +00:00
TestCoord.cpp Bug 1726620 Part 2 - Add structs representing strong-type app units coordinates. r=botond 2021-08-24 17:19:21 +00:00
TestGfxWidgets.cpp
TestLayers.h Bug 1736236 - Remove obsolete LayerManager.h. r=gfx-reviewers,lsalzman 2021-10-17 23:00:47 +00:00
TestMatrix.cpp
TestMoz2D.cpp
TestPolygon.cpp
TestQcms.cpp
TestRect.cpp Bug 1742006 - Fix documents of rect types' Union and SaturatingUnion, and add a test. r=gfx-reviewers,mstange 2021-11-22 03:26:19 +00:00
TestRegion.cpp Bug 1734511 - Remove unused TiledRegion. r=mstange 2021-10-07 15:40:22 +00:00
TestSkipChars.cpp
TestSwizzle.cpp Bug 1751205 - Part 1. Add Swizzle/PremultiplyYFlipData helper methods. r=gfx-reviewers,lsalzman,jgilbert 2022-02-01 13:20:49 +00:00
TestTextures.cpp Bug 1742052 - Remove unused code around TextureHost r=gfx-reviewers,nical 2021-11-22 09:49:59 +00:00
TestTreeTraversal.cpp Bug 1732481 - Fix non-unified build errors in gfx. r=gfx-reviewers,jrmuizel 2021-09-24 19:14:46 +00:00
TestVsync.cpp Bug 1738971 - Part 3. Rework VsyncChild to allow multiple implementations. r=gfx-reviewers,jgilbert 2021-12-10 02:57:50 +00:00
TextureHelper.h Bug 1741123 - Remove LayersBackend::LAYERS_D3D11 r=gfx-reviewers,bradwerth,nical 2021-11-18 21:27:48 +00:00