Bug 1488498 - expand comment in CompositorBridgeChild::Get(); r=nical

This commit is contained in:
Alex Gaynor 2018-09-04 12:58:34 -04:00
parent 1f0a42def4
commit b6cdb4cf71

View File

@ -275,7 +275,9 @@ CompositorBridgeChild::InitForWidget(uint64_t aProcessToken,
/*static*/ CompositorBridgeChild*
CompositorBridgeChild::Get()
{
// This is only expected to be used in child processes.
// This is only expected to be used in child processes. While the parent
// process does have CompositorBridgeChild instances, it has _multiple_ (one
// per window), and therefore there is no global singleton available.
MOZ_ASSERT(!XRE_IsParentProcess());
return sCompositorBridge;
}