Backed out changeset d0d0f847d043 (bug 1295352)

--HG--
extra : source : be887787de62889d8761e4402b320f351d571d23
This commit is contained in:
Sebastian Hengst 2016-10-20 20:03:16 +02:00
Родитель fa35a48d74
Коммит d3910409f1
2 изменённых файлов: 0 добавлений и 20 удалений

Просмотреть файл

@ -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() {}