зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset d0d0f847d043 (bug 1295352)
--HG-- extra : source : be887787de62889d8761e4402b320f351d571d23
This commit is contained in:
Родитель
fa35a48d74
Коммит
d3910409f1
|
@ -119,17 +119,6 @@ MediaEngineTabVideoSource::InitRunnable::Run()
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
MediaEngineTabVideoSource::DestroyRunnable::Run()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
mVideoSource->mWindow = nullptr;
|
||||
mVideoSource->mTabSource = nullptr;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
MediaEngineTabVideoSource::GetName(nsAString_internal& aName) const
|
||||
{
|
||||
|
@ -204,8 +193,6 @@ nsresult
|
|||
MediaEngineTabVideoSource::Deallocate(AllocationHandle* aHandle)
|
||||
{
|
||||
MOZ_ASSERT(!aHandle);
|
||||
NS_DispatchToMainThread(do_AddRef(new DestroyRunnable(this)));
|
||||
|
||||
{
|
||||
MonitorAutoLock mon(mMonitor);
|
||||
mState = kReleased;
|
||||
|
|
|
@ -81,13 +81,6 @@ class MediaEngineTabVideoSource : public MediaEngineVideoSource, nsIDOMEventList
|
|||
RefPtr<MediaEngineTabVideoSource> mVideoSource;
|
||||
};
|
||||
|
||||
class DestroyRunnable : public Runnable {
|
||||
public:
|
||||
explicit DestroyRunnable(MediaEngineTabVideoSource* videoSource) : mVideoSource(videoSource) {}
|
||||
NS_IMETHOD Run();
|
||||
RefPtr<MediaEngineTabVideoSource> mVideoSource;
|
||||
};
|
||||
|
||||
protected:
|
||||
~MediaEngineTabVideoSource() {}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче