зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1064107 - Ensure that gfxPlatform is initialized by the time we create the compositor. r=Bas
This commit is contained in:
Родитель
7922f3f435
Коммит
359a42220e
|
@ -869,6 +869,9 @@ nsBaseWidget::GetPreferredCompositorBackends(nsTArray<LayersBackend>& aHints)
|
|||
|
||||
void nsBaseWidget::CreateCompositor(int aWidth, int aHeight)
|
||||
{
|
||||
// This makes sure that gfxPlatforms gets initialized if it hasn't by now.
|
||||
gfxPlatform::GetPlatform();
|
||||
|
||||
MOZ_ASSERT(gfxPlatform::UsesOffMainThreadCompositing(),
|
||||
"This function assumes OMTC");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче