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

This commit is contained in:
Alex Gaynor 2018-09-04 12:58:34 -04:00
Родитель 1f0a42def4
Коммит b6cdb4cf71
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -275,7 +275,9 @@ CompositorBridgeChild::InitForWidget(uint64_t aProcessToken,
/*static*/ CompositorBridgeChild* /*static*/ CompositorBridgeChild*
CompositorBridgeChild::Get() 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()); MOZ_ASSERT(!XRE_IsParentProcess());
return sCompositorBridge; return sCompositorBridge;
} }