Bug 1314552. Part 2 - remove unused canonical. r=jya

MozReview-Commit-ID: FW6Wj1iiadS

--HG--
extra : rebase_source : cec5bf88a93732a83d358694d8fc91edb2c1dfb7
extra : intermediate-source : cbca4d33e07b848a83ead858c0299bcafdd5de71
extra : source : 183a602e6fd20c9bbdee3f27c0845b7f9aa00954
This commit is contained in:
JW Wang 2016-11-02 17:23:37 +08:00
Родитель 5f8412ccde
Коммит 62729fbd51
2 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

@ -397,7 +397,6 @@ MediaDecoder::MediaDecoder(MediaDecoderOwner* aOwner)
, INIT_CANONICAL(mPlaybackBytesPerSecond, 0.0)
, INIT_CANONICAL(mPlaybackRateReliable, true)
, INIT_CANONICAL(mDecoderPosition, 0)
, INIT_CANONICAL(mMediaSeekableOnlyInBufferedRanges, false)
, INIT_CANONICAL(mIsVisible, !aOwner->IsHidden())
, mTelemetryReported(false)
{

Просмотреть файл

@ -663,6 +663,10 @@ protected:
// True if the media is seekable (i.e. supports random access).
bool mMediaSeekable = true;
// True if the media is only seekable within its buffered ranges
// like WebMs with no cues.
bool mMediaSeekableOnlyInBufferedRanges = false;
// Stores media info, including info of audio tracks and video tracks, should
// only be accessed from main thread.
nsAutoPtr<MediaInfo> mInfo;
@ -762,10 +766,6 @@ protected:
// back again.
Canonical<int64_t> mDecoderPosition;
// True if the media is only seekable within its buffered ranges
// like WebMs with no cues.
Canonical<bool> mMediaSeekableOnlyInBufferedRanges;
// True if the decoder is visible.
Canonical<bool> mIsVisible;
@ -807,9 +807,6 @@ public:
AbstractCanonical<int64_t>* CanonicalDecoderPosition() {
return &mDecoderPosition;
}
AbstractCanonical<bool>* CanonicalMediaSeekableOnlyInBufferedRanges() {
return &mMediaSeekableOnlyInBufferedRanges;
}
AbstractCanonical<bool>* CanonicalIsVisible() {
return &mIsVisible;
}