зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1178437 - Make mRealTime const and allow it to be accessed on any thread. r=jww
This commit is contained in:
Родитель
c1640b0839
Коммит
f3eac770a7
|
@ -1389,11 +1389,6 @@ void MediaDecoderStateMachine::VolumeChanged()
|
|||
}
|
||||
}
|
||||
|
||||
bool MediaDecoderStateMachine::IsRealTime() const
|
||||
{
|
||||
return mRealTime;
|
||||
}
|
||||
|
||||
void MediaDecoderStateMachine::RecomputeDuration()
|
||||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
|
|
|
@ -179,7 +179,8 @@ public:
|
|||
|
||||
void FinishShutdown();
|
||||
|
||||
bool IsRealTime() const;
|
||||
// Immutable after construction - may be called on any thread.
|
||||
bool IsRealTime() const { return mRealTime; }
|
||||
|
||||
// Functions used by assertions to ensure we're calling things
|
||||
// on the appropriate threads.
|
||||
|
@ -725,7 +726,7 @@ private:
|
|||
WatchManager<MediaDecoderStateMachine> mWatchManager;
|
||||
|
||||
// True is we are decoding a realtime stream, like a camera stream.
|
||||
bool mRealTime;
|
||||
const bool mRealTime;
|
||||
|
||||
// True if we've dispatched a task to run the state machine but the task has
|
||||
// yet to run.
|
||||
|
|
Загрузка…
Ссылка в новой задаче