зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1488498
- expand comment in CompositorBridgeChild::Get(); r=nical
This commit is contained in:
Родитель
1f0a42def4
Коммит
b6cdb4cf71
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче