зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1385748. P3 - MediaDecoder::mNextState doesn't need to be a canonical for it has no mirrors. r=kaku
MozReview-Commit-ID: HiiPcKK08az --HG-- extra : rebase_source : 12db8d11fda2c07401d5ba4b7d4f6f946cc9fb5b
This commit is contained in:
Родитель
2bd8e28bd6
Коммит
ca1f6bc7b4
|
@ -392,7 +392,6 @@ MediaDecoder::MediaDecoder(MediaDecoderInit& aInit)
|
|||
, INIT_CANONICAL(mLooping, aInit.mLooping)
|
||||
, INIT_CANONICAL(mExplicitDuration, Maybe<double>())
|
||||
, INIT_CANONICAL(mPlayState, PLAY_STATE_LOADING)
|
||||
, INIT_CANONICAL(mNextState, PLAY_STATE_PAUSED)
|
||||
, INIT_CANONICAL(mLogicallySeeking, false)
|
||||
, INIT_CANONICAL(mSameOriginMedia, false)
|
||||
, INIT_CANONICAL(mMediaPrincipalHandle, PRINCIPAL_HANDLE_NONE)
|
||||
|
|
|
@ -735,10 +735,8 @@ protected:
|
|||
// OR on the main thread.
|
||||
Canonical<PlayState> mPlayState;
|
||||
|
||||
// This can only be changed on the main thread while holding the decoder
|
||||
// monitor. Thus, it can be safely read while holding the decoder monitor
|
||||
// OR on the main thread.
|
||||
Canonical<PlayState> mNextState;
|
||||
// This can only be changed on the main thread.
|
||||
PlayState mNextState = PLAY_STATE_PAUSED;
|
||||
|
||||
// True if the decoder is seeking.
|
||||
Canonical<bool> mLogicallySeeking;
|
||||
|
@ -788,7 +786,6 @@ public:
|
|||
return &mExplicitDuration;
|
||||
}
|
||||
AbstractCanonical<PlayState>* CanonicalPlayState() { return &mPlayState; }
|
||||
AbstractCanonical<PlayState>* CanonicalNextPlayState() { return &mNextState; }
|
||||
AbstractCanonical<bool>* CanonicalLogicallySeeking()
|
||||
{
|
||||
return &mLogicallySeeking;
|
||||
|
|
Загрузка…
Ссылка в новой задаче