Closed Bug 1309116 Opened 8 years ago Closed 8 years ago

Make StateObject::SetState a variadic template

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(4 files)

This will allow us to remove InitiateSeek() and always call SetState() to change states. The function will also handle state transition details like entry/exit actions.
Assignee: nobody → jwwang
Blocks: 1295892
Priority: -- → P3
Attachment #8800967 - Flags: review?(kaku)
Attachment #8800968 - Flags: review?(kaku)
Attachment #8800969 - Flags: review?(kaku)
Attachment #8800970 - Flags: review?(kaku)
Comment on attachment 8800967 [details]
Bug 1309116. Part 1 - move some functions out of class definition because we need to see the complete definition when trying to 'new' an object.

https://reviewboard.mozilla.org/r/85762/#review84432
Attachment #8800967 - Flags: review?(kaku) → review+
Comment on attachment 8800968 [details]
Bug 1309116. Part 2 - rewrite StateObject::SetState using variadic template.

https://reviewboard.mozilla.org/r/85764/#review84434
Attachment #8800968 - Flags: review?(kaku) → review+
Comment on attachment 8800969 [details]
Bug 1309116. Part 3 - replace InitiateSeek() with StateObject::SetState().

https://reviewboard.mozilla.org/r/85766/#review84436
Attachment #8800969 - Flags: review?(kaku) → review+
Comment on attachment 8800970 [details]
Bug 1309116. Part 4 - fix remaining calls to MDSM::SetState() and remove unused functions.

https://reviewboard.mozilla.org/r/85768/#review84438
Attachment #8800970 - Flags: review?(kaku) → review-
(In reply to Tzuhao Kuo [:kaku] from comment #8)
> Comment on attachment 8800970 [details]
> Bug 1309116. Part 4 - fix remaining calls to MDSM::SetState() and remove
> unused functions.
> 
> https://reviewboard.mozilla.org/r/85768/#review84438

Can you give some review comments for r-?
(In reply to JW Wang [:jwwang] [:jw_wang] from comment #9)
> (In reply to Tzuhao Kuo [:kaku] from comment #8)
> > Comment on attachment 8800970 [details]
> > Bug 1309116. Part 4 - fix remaining calls to MDSM::SetState() and remove
> > unused functions.
> > 
> > https://reviewboard.mozilla.org/r/85768/#review84438
> 
> Can you give some review comments for r-?

It is a mistake..., sorry.
Comment on attachment 8800970 [details]
Bug 1309116. Part 4 - fix remaining calls to MDSM::SetState() and remove unused functions.

https://reviewboard.mozilla.org/r/85768/#review84440
Attachment #8800970 - Flags: review- → review+
Thanks for the review!
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5c37bc5153f4
Part 1 - move some functions out of class definition because we need to see the complete definition when trying to 'new' an object. r=kaku
https://hg.mozilla.org/integration/autoland/rev/ac4ed7547bf1
Part 2 - rewrite StateObject::SetState using variadic template. r=kaku
https://hg.mozilla.org/integration/autoland/rev/8f29186034ce
Part 3 - replace InitiateSeek() with StateObject::SetState(). r=kaku
https://hg.mozilla.org/integration/autoland/rev/4d61631a9387
Part 4 - fix remaining calls to MDSM::SetState() and remove unused functions. r=kaku
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: