зеркало из https://github.com/mozilla/gecko-dev.git
Ensure gfxPlatform is created before creating a compositor on Android. (bug 1254899 part 3.1, r=snorp)
This commit is contained in:
Родитель
b7528e9778
Коммит
df32b2f2cb
|
@ -1783,6 +1783,9 @@ nsWindow::CreateLayerManager(int aCompositorWidth, int aCompositorHeight)
|
|||
return;
|
||||
}
|
||||
|
||||
// Ensure that gfxPlatform is initialized first.
|
||||
gfxPlatform::GetPlatform();
|
||||
|
||||
if (ShouldUseOffMainThreadCompositing()) {
|
||||
CreateCompositor(aCompositorWidth, aCompositorHeight);
|
||||
if (mLayerManager) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче