Bug 1189506. Put AudioContext::State inline. r=karl
authorRobert O'Callahan <robert@ocallahan.org>
Thu, 03 Sep 2015 17:35:19 +1200
changeset 295486 d01a693feb4ba6ce7dfa6bb3cce0eded743795d7
parent 295485 3353f2d77d21d6317f9eb3c233a7014b8bc141ae
child 295487 49306680e27b517a4f3cf500a22b884abc1deaf3
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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 1189506. Put AudioContext::State inline. r=karl
--- a/dom/media/webaudio/AudioContext.cpp
+++ b/dom/media/webaudio/AudioContext.cpp
@@ -688,21 +688,16 @@ AudioContext::Shutdown()
   // For offline contexts, we can destroy the MediaStreamGraph at this point.
   if (mIsOffline && mDestination) {
-AudioContextState AudioContext::State() const
-  return mAudioContextState;
 StateChangeTask::StateChangeTask(AudioContext* aAudioContext,
                                  void* aPromise,
                                  AudioContextState aNewState)
   : mAudioContext(aAudioContext)
   , mPromise(aPromise)
   , mAudioNodeStream(nullptr)
   , mNewState(aNewState)
--- a/dom/media/webaudio/AudioContext.h
+++ b/dom/media/webaudio/AudioContext.h
@@ -179,17 +179,18 @@ public:
     return mId;
   double CurrentTime() const;
   AudioListener* Listener();
-  AudioContextState State() const;
+  AudioContextState State() const { return mAudioContextState; }
   // Those three methods return a promise to content, that is resolved when an
   // (possibly long) operation is completed on the MSG (and possibly other)
   // thread(s). To avoid having to match the calls and asychronous result when
   // the operation is completed, we keep a reference to the promises on the main
   // thread, and then send the promises pointers down the MSG thread, as a void*
   // (to make it very clear that the pointer is to merely be treated as an ID).
   // When back on the main thread, we can resolve or reject the promise, by
   // casting it back to a `Promise*` while asserting we're back on the main