зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1356452 - Part 1: Remove assertion for checking VRManager::Get(); r=kip
MozReview-Commit-ID: CMCX9Fq55tS --HG-- extra : rebase_source : 10342128d91fea22b66dfd99379764ac6cccccc4
This commit is contained in:
Родитель
8a220bcecd
Коммит
065b13fe52
|
@ -71,7 +71,6 @@ VRSystemManager::AddGamepad(const VRControllerInfo& controllerInfo)
|
|||
controllerInfo.GetNumHaptics());
|
||||
|
||||
VRManager* vm = VRManager::Get();
|
||||
MOZ_ASSERT(vm);
|
||||
vm->NotifyGamepadChange<dom::GamepadAdded>(a);
|
||||
}
|
||||
|
||||
|
@ -81,7 +80,6 @@ VRSystemManager::RemoveGamepad(uint32_t aIndex)
|
|||
dom::GamepadRemoved a(aIndex, dom::GamepadServiceType::VR);
|
||||
|
||||
VRManager* vm = VRManager::Get();
|
||||
MOZ_ASSERT(vm);
|
||||
vm->NotifyGamepadChange<dom::GamepadRemoved>(a);
|
||||
}
|
||||
|
||||
|
@ -93,7 +91,6 @@ VRSystemManager::NewButtonEvent(uint32_t aIndex, uint32_t aButton,
|
|||
aButton, aValue, aPressed, aTouched);
|
||||
|
||||
VRManager* vm = VRManager::Get();
|
||||
MOZ_ASSERT(vm);
|
||||
vm->NotifyGamepadChange<dom::GamepadButtonInformation>(a);
|
||||
}
|
||||
|
||||
|
@ -105,7 +102,6 @@ VRSystemManager::NewAxisMove(uint32_t aIndex, uint32_t aAxis,
|
|||
aAxis, aValue);
|
||||
|
||||
VRManager* vm = VRManager::Get();
|
||||
MOZ_ASSERT(vm);
|
||||
vm->NotifyGamepadChange<dom::GamepadAxisInformation>(a);
|
||||
}
|
||||
|
||||
|
@ -117,6 +113,5 @@ VRSystemManager::NewPoseState(uint32_t aIndex,
|
|||
aPose);
|
||||
|
||||
VRManager* vm = VRManager::Get();
|
||||
MOZ_ASSERT(vm);
|
||||
vm->NotifyGamepadChange<dom::GamepadPoseInformation>(a);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче