Closed Bug 1322801 Opened 9 years ago Closed 9 years ago

Create AccurateSeekingState and NextFrameSeekingState

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: kaku, Assigned: kaku)

References

Details

Attachments

(7 files)

The preparation for bug 1322799 and bug 1322800.
QA Contact: kaku
Assignee: nobody → kaku
QA Contact: kaku
Comment on attachment 8817757 [details] Bug 1322801 part 1 - create AccurateSeekingState and NextFrameSeekingState; https://reviewboard.mozilla.org/r/98004/#review98460 ::: dom/media/MediaDecoderStateMachine.cpp:1355 (Diff revision 1) > +RefPtr<MediaDecoder::SeekPromise> > +MediaDecoderStateMachine:: > +StateObject::SetSeekingState(SeekJob&& aSeekJob, EventVisibility aVisibility) > +{ > + if (aSeekJob.mTarget.IsAccurate() || aSeekJob.mTarget.IsFast()) { > + return SetState<AccurateSeekingState>(Forward<SeekJob>(aSeekJob), EventVisibility::Observable); Move(aSeekJob) ::: dom/media/MediaDecoderStateMachine.cpp:1359 (Diff revision 1) > + if (aSeekJob.mTarget.IsAccurate() || aSeekJob.mTarget.IsFast()) { > + return SetState<AccurateSeekingState>(Forward<SeekJob>(aSeekJob), EventVisibility::Observable); > + } > + > + if (aSeekJob.mTarget.IsNextFrame()) { > + return SetState<NextFrameSeekingState>(Forward<SeekJob>(aSeekJob), EventVisibility::Observable); Ditto.
Attachment #8817757 - Flags: review?(jwwang) → review+
Attachment #8817756 - Flags: review?(jwwang) → review+
Comment on attachment 8817758 [details] Bug 1322801 part 2 - defer the creation of SeekTask into SeekingState's subclasses; https://reviewboard.mozilla.org/r/98006/#review98466
Attachment #8817758 - Flags: review?(jwwang) → review+
Comment on attachment 8817760 [details] Bug 1322801 part 4 - defer the logic of invoking seek operation to SeekingObject's subclasses; https://reviewboard.mozilla.org/r/98010/#review98470
Attachment #8817760 - Flags: review?(jwwang) → review+
Comment on attachment 8817759 [details] Bug 1322801 part 3 - defer the logic of resetting MDSM to SeekingObject's subclasses; https://reviewboard.mozilla.org/r/98008/#review98468
Attachment #8817759 - Flags: review?(jwwang) → review+
Comment on attachment 8817761 [details] Bug 1322801 part 5 - let AccurateSeekingState and NextFrameSeekingState have their own implementation of OnSeekTask{Resolved,Rejected}(); https://reviewboard.mozilla.org/r/98012/#review98472
Attachment #8817761 - Flags: review?(jwwang) → review+
Comment on attachment 8817762 [details] Bug 1322801 part 6 - defer the logic of CalculateNewCurrentTime to SeekingObject's subclasses; https://reviewboard.mozilla.org/r/98014/#review98474
Attachment #8817762 - Flags: review?(jwwang) → review+
Comment on attachment 8817757 [details] Bug 1322801 part 1 - create AccurateSeekingState and NextFrameSeekingState; https://reviewboard.mozilla.org/r/98004/#review98460 > Move(aSeekJob) And I did not pass the aVisibility to SetState<>()...
Try looks good. (Bug 1322799 comment 50)
Keywords: checkin-needed
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3bc62f25e096 part 0 - correct build error; r=jwwang https://hg.mozilla.org/integration/autoland/rev/c472dabfb7ee part 1 - create AccurateSeekingState and NextFrameSeekingState; r=jwwang https://hg.mozilla.org/integration/autoland/rev/2b067a79aa8c part 2 - defer the creation of SeekTask into SeekingState's subclasses; r=jwwang https://hg.mozilla.org/integration/autoland/rev/6d1798f04e32 part 3 - defer the logic of resetting MDSM to SeekingObject's subclasses; r=jwwang https://hg.mozilla.org/integration/autoland/rev/232eee4da141 part 4 - defer the logic of invoking seek operation to SeekingObject's subclasses; r=jwwang https://hg.mozilla.org/integration/autoland/rev/4bbd6058ed53 part 5 - let AccurateSeekingState and NextFrameSeekingState have their own implementation of OnSeekTask{Resolved,Rejected}(); r=jwwang https://hg.mozilla.org/integration/autoland/rev/0f7a82a599b2 part 6 - defer the logic of CalculateNewCurrentTime to SeekingObject's subclasses; r=jwwang
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: