mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Bug 1385748. P3 - MediaDecoder::mNextState doesn't need to be a canonical for it has no mirrors. r=kaku
MozReview-Commit-ID: HiiPcKK08az
This commit is contained in:
1 parent
02b5cba0ef
commit
188632754d
2 files changed
+2
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user