Граф коммитов

2535 Коммитов

Автор SHA1 Сообщение Дата
Jeff Gilbert 7aa0b18d60 Bug 1127336 - Label HW-decoded frames with correct origin. - r=vlad 2015-04-20 17:49:25 -07:00
Denis Volk 32e981896d Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj 2015-04-15 12:47:03 -04:00
Ryan VanderMeulen 592eb8e32d Backed out changesets f06080c6097f and 03ce639c4f13 (bug 1155939) for frequent Linux GMP gtest deadlocks.
--HG--
extra : rebase_source : ab588d9806e0c515943ebc0a387a58dce0c28a28
2015-04-20 11:39:36 -04:00
Ehsan Akhgari 4ebeb72f7b Bug 1155178 - Part 2: Rename GMPUnique to GMPUniquePtr; r=cpearce 2015-04-20 08:29:51 -04:00
Ehsan Akhgari 623b3ca075 Bug 1155178 - Part 1: Convert GMPUnique into a template alias; r=cpearce 2015-04-20 08:28:44 -04:00
Chris Pearce e0d0ef21b5 Bug 1156131 - Expand list of WMF DLLs that are whitelisted for use by EME plugins. r=bobowen 2015-04-20 20:10:40 +12:00
Chris Pearce 0eafa8396e Bug 1155432 - Don't flush WMF PDM task queues. r=jya 2015-04-20 20:03:41 +12:00
Phil Ringnalda e6cf21241e Backed out changeset 01abd1d12b2c (bug 1155432) for Windows build bustage
CLOSED TREE
2015-04-19 22:42:22 -07:00
Chris Pearce c4b402a786 Bug 1155432 - Don't flush WMF PDM task queues. r=jya 2015-04-20 16:41:41 +12:00
Edwin Flores 0394e1102c Bug 1155939 - Gtest for deletion of GMP plugins on removal - r=cpearce 2015-04-17 16:09:46 +12:00
Edwin Flores 9a59beb0c7 Bug 1155939 - GMPServiceParent fixes for GMP deletion - r=cpearce 2015-04-20 16:21:35 +12:00
JW Wang c9aefca214 Bug 1155533 - use blank-decoder on B2G when pref is on. r=edwin. 2015-04-20 11:24:47 +08:00
Martin Thomson 0e715ecfc0 Bug 1152538 - Removing RTCIdentityAssertion interface code, r=jib
--HG--
extra : rebase_source : 8c3a6c702bb8155e7ea5512d90b1e203ee1d44aa
extra : histedit_source : f02e56e9d1e1a2b9cbbd4c95dce72e88e7e60bba
2015-04-16 09:52:36 -07:00
Bobby Holley 691ea9f0b2 Bug 1154802 - Implement tail dispatch for the main thread. r=jww 2015-04-17 09:26:06 -07:00
Bobby Holley cb6c4a8c8a Bug 1154802 - Tighten up some existing assertions. r=jww
This is a followup from bug 1154805 comment 13.
2015-04-17 09:26:06 -07:00
Bobby Holley 592239bbd9 Bug 1154802 - Assert against potential deadlocks between synchronous MediaTaskQueue operations and tail dispatchers. r=jww 2015-04-17 09:26:05 -07:00
Bobby Holley d02296ec2f Bug 1154802 - Fix racey test_error_in_video_document.html. r=jww
This test assumes that the decoding machinery will have completed its work one
event-loop-round-trip after the document loads (see the executeSoon call), which
is a totally bogus assumption.
2015-04-17 09:26:05 -07:00
Gordon Klaus 37588c7d15 Bug 1155140 - Removed mentions of deleted parameters from test helper documentation. r=mt 2015-04-16 04:56:00 -04:00
Jacek Caban 4a1169deaa Bug 1154738 - Fixed WMFUtils.cpp compilation on mingw. r=mattwoodrow 2015-04-17 12:26:29 +02:00
Matt Woodrow 3d1e42754c Bug 1154536 - Disable 4k H264 video for vista since it performs poorly. r=ajones
--HG--
extra : rebase_source : f1963c747c29acfa76a4a0e57f8df7e7430f06f3
2015-04-17 12:42:09 +12:00
Neil Deakin af1ece91c4 Bug 1153248, re-enable a bunch of tests that now work with e10s, r=billm 2015-04-16 15:38:12 -04:00
Eitan Isaacson 21b7ceb7e9 Bug 1155034 - Let indirect audio speech services send their own events. Make pause/resume IPC safe. r=smaug 2015-04-16 10:36:47 -07:00
Eitan Isaacson 48be9773bd Bug 1154741 - Disable test_speech_cancel.html on b2g. r=me 2015-04-16 10:07:08 -07:00
Bobby Holley f026d499ed Bug 1154805 - Followup bustage fix. r=me CLOSED TREE 2015-04-16 09:54:23 -07:00
Bobby Holley 698e3f4e09 Bug 1154805 - Remove unused AbstractThread::InTailDispatch. r=jww
This is unnecessary now that we pass this explicitly during dispatch.
2015-04-16 09:28:57 -07:00
Bobby Holley b99288ff18 Bug 1154805 - Stop manually passing TaskDispatchers everywhere. r=jww 2015-04-16 09:28:56 -07:00
Bobby Holley 1590c33115 Bug 1154805 - Remove MaybeTailDispatch. r=jww
This is now the default behavior.
2015-04-16 09:28:56 -07:00
Bobby Holley 3c7d850355 Bug 1154805 - Do tail dispatch automatically. r=jww 2015-04-16 09:28:56 -07:00
Bobby Holley 4b2b5d54a0 Bug 1154805 - Rejigger tail dispatching assertions. r=jww 2015-04-16 09:28:55 -07:00
Bobby Holley 49eb65cfec Bug 1154805 - Hoist the GetCurrent TLS logic into AbstractThread. r=jww 2015-04-16 09:28:55 -07:00
Sotaro Ikeda 116aa5b895 Bug 1153344 - Suppress DispatchOnAudioSinkComplete() r=cpearce 2015-04-16 06:46:01 -07:00
Paul Adenot e32b404e54 Bug 1094764 - Implement AudioContext.suspend and friends. r=roc,ehsan
- Relevant spec text:
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-suspend-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-resume-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-close-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-state
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-onstatechange

- In a couple words, the behavior we want:
    - Closed context cannot have new nodes created, but can do decodeAudioData,
    and create buffers, and such.
    - OfflineAudioContexts don't support those methods, transitions happen at
    startRendering and at the end of processing. onstatechange is used to make
    this observable.
    - (regular) AudioContexts support those methods. The promises and
    onstatechange should be resolved/called when the operation has actually
    completed on the rendering thread.  Once a context has been closed, it
    cannot transition back to "running". An AudioContext switches to "running"
    when the audio callback start running, this allow authors to know how long
    the audio stack takes to start running.
    - MediaStreams that feed in/go out of a suspended graph should respectively
    not buffer at the graph input, and output silence
    - suspended context should not be doing much on the CPU, and we should try
    to pause audio streams if we can (this behaviour is the main reason we need
    this in the first place, for saving battery on mobile, and CPU on all
    platforms)

- Now, the implementation:
    - AudioNodeStreams are now tagged with a context id, to be able to operate
    on all the streams of a given AudioContext on the Graph thread without
    having to go and lock everytime to touch the AudioContext. This happens in
    the AudioNodeStream ctor. IDs are of course constant for the lifetime of the
    node.
    - When an AudioContext goes into suspended mode, streams for this
    AudioContext are moved out of the mStreams array to a second array,
    mSuspendedStreams. Streams in mSuspendedStream are not ordered, and are not
    processed.
    - The MSG will automatically switch to a SystemClockDriver when it finds
    that there are no more AudioNodeStream/Stream with an audio track. This is
    how pausing the audio subsystem and saving battery works. Subsequently, when
    the MSG finds that there are only streams in mSuspendedStreams, it will go
    to sleep (block on a monitor), so we save CPU, but it does not shut itself
    down. This is mostly not a new behaviour (this is what the MSG does since
    the refactoring), but is important to note.
    - Promises are gripped (addref-ed) on the main thread, and then shepherd
    down other threads and to the GraphDriver, if needed (sometimes we can
    resolve them right away). They move between threads as void* to prevent
    calling methods on them, as they are not thread safe. Then, the driver
    executes the operation, and when it's done (initializing and closing audio
    streams can take some time), we send the promise back to the main thread,
    and resolve it, casting back to Promise* after asserting we're back on the
    main thread. This way, we can send them back on the main thread once an
    operation has complete (suspending an audio stream, starting it again on
    resume(), etc.), without having to do bookkeeping between suspend calls and
    their result. Promises are not thread safe, so we can't move them around
    AddRef-ed.
    - The stream destruction logic now takes into account that a stream can be
    destroyed while not being in mStreams.
    - A graph can now switch GraphDriver twice or more per iteration, for
    example if an author goes suspend()/resume()/suspend() in the same script.
    - Some operation have to be done on suspended stream, so we now use double
    for-loop around mSuspendedStreams and mStreams in some places in
    MediaStreamGraph.cpp.
    - A tricky part was making sure everything worked at AudioContext
    boundaries.  TrackUnionStream that have one of their input stream suspended
    append null ticks instead.
    - The graph ordering algorithm had to be altered to not include suspended
    streams.
    - There are some edge cases (adding a stream on a suspended graph, calling
    suspend/resume when a graph has just been close()d).
2015-02-27 18:22:05 +01:00
Bobby Holley fdf8f9aa72 Bug 1154782 - Align the failure handling of the TemporaryRef Dispatch overload with its companion. r=jww
Most of the callers ignore the return values. The MOZ_DIAGNOSTIC_ASSERTS will
tell us if any of these actually fail in practice.
2015-04-15 22:30:36 -07:00
Bobby Holley 263da093f8 Bug 1154782 - Change the canonical internal smart pointer type in MediaTaskQueue to the XPCOM style. r=jww
We've been meaning to do this for a while, just haven't gotten around to it.
2015-04-15 22:26:58 -07:00
Bobby Holley b4d1c00c0c Bug 1154782 - Remove the concept of forced dispatch. r=jww
I added this several months ago to make MediaPromise dispatch reliable in the
presence of the god-awful Flush() feature of MediaTaskQueue. That feature has
now been restricted to a special subclass (which we should eventually eliminate),
so we can just assert that MediaPromises are never used on those task queues
and simplify the rest of the code.
2015-04-15 22:26:57 -07:00
Bobby Holley d9894d631d Bug 1154782 - Hoist dispatch failure handling into dispatch itself. r=jww
This is nicer than scattering the failure handling to each callsite. Moreover,
this is a necessary step on the road to automatic tail dispatch.
2015-04-15 22:26:23 -07:00
Bobby Holley 9451263fde Bug 1154782 - Detemplatize nsIThread wrapper and move it into AbstractThread.cpp. r=jww 2015-04-15 22:26:23 -07:00
Martin Thomson a445924956 Bug 1153314 - Test IdP login flow, r=jib 2015-04-15 14:19:21 -07:00
Martin Thomson ce2b7e66f4 Bug 1153314 - Assign load group to IdP load channel, r=jib 2015-04-15 14:19:21 -07:00
Sotaro Ikeda 76f7064cc7 Bug 1139206 - Update AudioOffloadPlayer seek r=bholley,bwu 2015-04-15 14:00:41 -07:00
Nathan Froyd 1e6cdad33c Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1").  Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Ryan VanderMeulen 5615c15366 Bug 1097721 - Skip test_mozaudiochannel.html on OSX 10.6 due to intermittent crashes. 2015-04-15 14:35:59 -04:00
Ryan VanderMeulen 7501681b86 Bug 1021174 - Skip test_bug495145.html on OSX 10.6 due to intermittent crashes. 2015-04-15 14:35:58 -04:00
Ryan VanderMeulen d7aa41835d Bug 847903 - Skip 691096-1.html on OSX 10.6 due to intermittent crashes. 2015-04-15 14:35:58 -04:00
Jean-Yves Avenard 52a7a65989 Bug 1153094: Rename LargeDataBuffer and DataBuffer object. r=cpearce
This causes conflicts with webRTC libraries that use those names already. The
linker appears to get it wrong and calls the destructor of the wrong class.

--HG--
extra : rebase_source : 809221de3e5bde540bd40406f061f3865e4c4f00
2015-04-15 15:27:38 +10:00
JW Wang a3cac582e2 Bug 1154564 - Add the ability to notify timeouts to MediaTestManager and remove flaky timeouts from test_playback.html. r=cpearce. 2015-04-15 11:12:57 +08:00
JW Wang 76f357064d Bug 1154559 - Remove flaky timeouts from manifest.js and register SimpleTest.registerCleanupFunction() to report unfinished tests. r=cpearce. 2015-04-15 11:12:46 +08:00
Gerald Squelart 0e79995cec Bug 1152151 - [EME] Some tests keep working after they should have finished, part 2: Only load that each test actually needs - r=edwin 2015-04-15 10:09:25 +10:00
Gerald Squelart dd2237503f Bug 1152151 - [EME] Some tests keep working after they should have finished - r=edwin 2015-04-15 10:09:25 +10:00
Gerald Squelart d84062c36d Bug 1142379 - Encrypt audio and video tracks using separate encryption settings - r=edwin
--HG--
rename : dom/media/test/bipbop-frag-cenc.xml => dom/media/test/bipbop-frag-cenc-audio.xml
rename : dom/media/test/bipbop-frag-cenc.xml => dom/media/test/bipbop-frag-cenc-video.xml
2015-04-14 17:53:16 +10:00