Closed Bug 911059 Opened 11 years ago Closed 11 years ago

Move WebAudio's BufferDecoder to its own file so it can be shared with MSE

Categories

(Core :: Web Audio, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26
Tracking Status
firefox25 --- fixed
firefox26 --- fixed

People

(Reporter: kinetik, Assigned: kinetik)

References

Details

(Whiteboard: [qa-])

Attachments

(2 files)

MSE uses something almost identical, so sharing this code avoids duplicating a bunch of boilerplate.
Attached patch v0Splinter Review
Attachment #797718 - Flags: review?(cpearce)
Blocks: 881512
Please land this patch on Aurora as well, with a=webaudio.  Thanks!
Component: Video/Audio → Web Audio
Comment on attachment 797718 [details] [diff] [review]
v0

Review of attachment 797718 [details] [diff] [review]:
-----------------------------------------------------------------

::: content/media/BufferDecoder.h
@@ +29,5 @@
> +
> +  // This has to be called before decoding begins
> +  void BeginDecoding(nsIThread* aDecodeThread);
> +
> +  virtual ReentrantMonitor& GetReentrantMonitor() MOZ_OVERRIDE;

We can remove "virtual" on these methods, in particular since they have MOZ_OVERRIDE to make it clear they're overrides.
Attachment #797718 - Flags: review?(cpearce) → review+
With "virtual" removed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d5b67c93e1a0

(In reply to :Ehsan Akhgari (needinfo? me!) from comment #2)
> Please land this patch on Aurora as well, with a=webaudio.  Thanks!

Will do!
(In reply to Chris Pearce (:cpearce) from comment #3)
> We can remove "virtual" on these methods, in particular since they have
> MOZ_OVERRIDE to make it clear they're overrides.

Nooo, please make them virtual so it's obvious they're virtual!
https://hg.mozilla.org/mozilla-central/rev/d5b67c93e1a0
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Whiteboard: [checkin-needed-aurora]
Attachment #799854 - Flags: review+
Is there anything needed from QA here to verify this is fixed?
Flags: needinfo?(kinetik)
I don't think so.  There's no logical change, just code moving to a new file.
Flags: needinfo?(kinetik)
Thank you Matthew, [qa-].
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: