Bug 1221587: Rename MediaStreamGraphShutdownThreadRunnable2 r=padenot
authorAndreas Pehrson <pehrsons@gmail.com>
Thu, 21 Jan 2016 11:51:35 -0500
changeset 281165 93f83978cac6cc0368b80861c436f57337cbfd00
parent 281164 c4db43c72f53a94a31bedc5040770eebf6a6b7ef
child 281166 2d18cbea1800c23f06d78fc7c9c64503d2ab1ce3
push id29930
push usercbook@mozilla.com
push dateFri, 22 Jan 2016 11:05:50 +0000
treeherdermozilla-central@7104d650a97d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspadenot
bugs1221587
milestone46.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1221587: Rename MediaStreamGraphShutdownThreadRunnable2 r=padenot
dom/media/GraphDriver.cpp
--- a/dom/media/GraphDriver.cpp
+++ b/dom/media/GraphDriver.cpp
@@ -416,19 +416,19 @@ void SystemClockDriver::WakeUp()
 
 OfflineClockDriver::OfflineClockDriver(MediaStreamGraphImpl* aGraphImpl, GraphTime aSlice)
   : ThreadedDriver(aGraphImpl),
     mSlice(aSlice)
 {
 
 }
 
-class MediaStreamGraphShutdownThreadRunnable2 : public nsRunnable {
+class MediaStreamGraphShutdownThreadRunnable : public nsRunnable {
 public:
-  explicit MediaStreamGraphShutdownThreadRunnable2(nsIThread* aThread)
+  explicit MediaStreamGraphShutdownThreadRunnable(nsIThread* aThread)
     : mThread(aThread)
   {
   }
   NS_IMETHOD Run()
   {
     MOZ_ASSERT(NS_IsMainThread());
     MOZ_ASSERT(mThread);
 
@@ -440,17 +440,17 @@ private:
   nsCOMPtr<nsIThread> mThread;
 };
 
 OfflineClockDriver::~OfflineClockDriver()
 {
   // transfer the ownership of mThread to the event
   // XXX should use .forget()/etc
   if (mThread) {
-    nsCOMPtr<nsIRunnable> event = new MediaStreamGraphShutdownThreadRunnable2(mThread);
+    nsCOMPtr<nsIRunnable> event = new MediaStreamGraphShutdownThreadRunnable(mThread);
     mThread = nullptr;
     NS_DispatchToMainThread(event);
   }
 }
 
 MediaTime
 OfflineClockDriver::GetIntervalForIteration()
 {