Bug 1554156 - Update browser_startup_syncIPC.js for WebRender on Windows. r=florian

PLayerTransaction doesn't get used with WebRender. Instead there are
some equivalent messages over PWebRenderBridge. Currently this test is
only enabled with WebRender on Windows, but as Linux and Mac are added
additonal entries might be needed.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2019-05-27 16:07:22 +00:00
parent 760dbbdc88
commit bbca3abb12
2 changed files with 49 additions and 4 deletions

View File

@ -9,6 +9,7 @@
const LINUX = AppConstants.platform == "linux";
const WIN = AppConstants.platform == "win";
const MAC = AppConstants.platform == "macosx";
const WEBRENDER = window.windowUtils.layerManagerType == "WebRender";
/*
* Specifying 'ignoreIfUnused: true' will make the test ignore unused entries;
@ -38,9 +39,14 @@ const startupPhases = {
},
{
name: "PLayerTransaction::Msg_GetTextureFactoryIdentifier",
condition: WIN,
condition: WIN && !WEBRENDER,
maxCount: 3,
},
{
name: "PWebRenderBridge::Msg_EnsureConnected",
condition: WIN && WEBRENDER,
maxCount: 2,
},
{ // bug 1373773
name: "PCompositorBridge::Msg_NotifyChildCreated",
condition: !WIN,
@ -83,7 +89,7 @@ const startupPhases = {
},
{
name: "PCompositorBridge::Msg_MakeSnapshot",
condition: WIN,
condition: WIN && !WEBRENDER,
ignoreIfUnused: true, // Only on Win10 64
maxCount: 1,
},
@ -99,6 +105,11 @@ const startupPhases = {
ignoreIfUnused: true, // Only on Win10 64
maxCount: 1,
},
{
name: "PGPU::Msg_GetDeviceStatus",
condition: WIN && WEBRENDER, // bug 1553740 might want to drop the WEBRENDER clause here
maxCount: 1,
},
],
// We are at this phase once we are ready to handle user events.
@ -113,7 +124,7 @@ const startupPhases = {
},
{
name: "PLayerTransaction::Msg_GetTextureFactoryIdentifier",
condition: !MAC,
condition: !MAC && !WEBRENDER,
maxCount: 1,
},
{
@ -134,6 +145,29 @@ const startupPhases = {
ignoreIfUnused: true, // Only on Win7 32
maxCount: 1,
},
{
name: "PWebRenderBridge::Msg_GetSnapshot",
condition: WIN && WEBRENDER,
maxCount: 1,
},
{
name: "PAPZInputBridge::Msg_ProcessUnhandledEvent",
condition: WIN && WEBRENDER,
ignoreIfUnused: true, // intermittently occurs in "before becoming idle"
maxCount: 1,
},
{
name: "PAPZInputBridge::Msg_ReceiveMouseInputEvent",
condition: WIN && WEBRENDER,
ignoreIfUnused: true, // intermittently occurs in "before becoming idle"
maxCount: 1,
},
{ // bug 1554234
name: "PLayerTransaction::Msg_GetTextureFactoryIdentifier",
condition: WIN && WEBRENDER,
ignoreIfUnused: true, // intermittently occurs in "before becoming idle"
maxCount: 1,
},
],
// Things that are expected to be completely out of the startup path
@ -157,6 +191,18 @@ const startupPhases = {
ignoreIfUnused: true, // Only on Win10 64
maxCount: 1,
},
{ // bug 1554234
name: "PLayerTransaction::Msg_GetTextureFactoryIdentifier",
condition: WIN && WEBRENDER,
ignoreIfUnused: true, // intermittently occurs in "before handling user events"
maxCount: 1,
},
{
name: "PCompositorBridge::Msg_Initialize",
condition: WIN && WEBRENDER,
ignoreIfUnused: true, // Intermittently occurs in "before handling user events"
maxCount: 1,
},
],
};

View File

@ -21,4 +21,3 @@ environment =
[../browser_startup_mainthreadio.js]
[../browser_startup_content_mainthreadio.js]
[../browser_startup_syncIPC.js]
skip-if = webrender # bug 1554156