зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1515873 - Remove aWindowId arg from MediaManager::GetBackend. r=jib
It is unused. Differential Revision: https://phabricator.services.mozilla.com/D15630 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
dcb4011f3a
Коммит
e72c999524
|
@ -1845,7 +1845,7 @@ RefPtr<MediaManager::MgrPromise> MediaManager::EnumerateRawDevices(
|
|||
if (realDeviceRequested) {
|
||||
MediaManager* manager = MediaManager::GetIfExists();
|
||||
MOZ_RELEASE_ASSERT(manager); // Must exist while media thread is alive
|
||||
realBackend = manager->GetBackend(aWindowId);
|
||||
realBackend = manager->GetBackend();
|
||||
}
|
||||
|
||||
if (hasVideo) {
|
||||
|
@ -2173,9 +2173,9 @@ int MediaManager::AddDeviceChangeCallback(DeviceChangeCallback* aCallback) {
|
|||
MOZ_RELEASE_ASSERT(manager); // Must exist while media thread is alive
|
||||
// this is needed in case persistent permission is given but no gUM()
|
||||
// or enumeration() has created the real backend yet
|
||||
manager->GetBackend(0);
|
||||
manager->GetBackend();
|
||||
if (fakeDeviceChangeEventOn)
|
||||
manager->GetBackend(0)->SetFakeDeviceChangeEvents();
|
||||
manager->GetBackend()->SetFakeDeviceChangeEvents();
|
||||
}));
|
||||
|
||||
return DeviceChangeCallback::AddDeviceChangeCallback(aCallback);
|
||||
|
@ -3345,7 +3345,7 @@ nsresult MediaManager::GetUserMediaDevices(
|
|||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
|
||||
MediaEngine* MediaManager::GetBackend(uint64_t aWindowId) {
|
||||
MediaEngine* MediaManager::GetBackend() {
|
||||
MOZ_ASSERT(MediaManager::IsInMediaThread());
|
||||
// Plugin backends as appropriate. The default engine also currently
|
||||
// includes picture support for Android.
|
||||
|
|
|
@ -177,7 +177,7 @@ class MediaManager final : public nsIMediaManagerService,
|
|||
NS_DECL_NSIMEDIAMANAGERSERVICE
|
||||
|
||||
media::Parent<media::NonE10s>* GetNonE10sParent();
|
||||
MediaEngine* GetBackend(uint64_t aWindowId = 0);
|
||||
MediaEngine* GetBackend();
|
||||
|
||||
WindowTable* GetActiveWindows() {
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
|
Загрузка…
Ссылка в новой задаче