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

415825 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen 20e9c864e8 Bug 1152425: Fix unicode string lookup in Marionette client
r=jgraham

--HG--
extra : rebase_source : 56560133ebe51e82d47923dd69a993644da09528
extra : source : 2981a890a0365f7ff519362400c893dd2c0ba51d
2015-04-08 18:39:53 +01:00
Carsten "Tomcat" Book 2d13b44c69 Backed out changeset 35e6bbc2136b (bug 1134596) for Android Crashtest failures 2015-04-09 12:33:41 +02:00
Carsten "Tomcat" Book 550bcb19ad Backed out changeset 82d6b5523a2b (bug 1134596) 2015-04-09 12:31:51 +02:00
Carsten "Tomcat" Book 63274e410d Backed out changeset fb48ee62bab4 (bug 1134596) 2015-04-09 12:31:49 +02:00
Makoto Kato 125a6e2f73 Bug 1128365 - MOZ_TOOLS is unnecessary. r=glandium 2015-04-09 19:24:02 +09:00
Boris Egorov 7947703867 Bug 1152359 - Fix doppler shift calculation formula. r=padenot 2015-04-08 21:18:54 +06:00
Paul Adenot 70b6a9e143 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
Alfredo Yang 747b227596 Bug 1152236: OMX codec should use AnnexB as input format. r=jya 2015-04-09 01:18:00 +10:00
Hannes Verschore be1717c62e Bug 1138881: IonMonkey - Part 4: Fold redudant OR compare away, r=bhackett 2015-04-09 09:45:09 +02:00
Lars T Hansen 797d1f085f Bug 1142593 - factor atomics into the platform layer. r=waldo 2015-04-09 08:09:58 +02:00
Eric Faust 66f5123027 Bug 1141862 - Followup: Remove erronously landed debug spew. r=me 2015-04-08 22:40:51 -07:00
Mason Chang bc50990690 Bug 1151489. Enable software vsync on all b2g versions. r=kats 2015-04-08 22:02:01 -07:00
Eric Faust 2571dab641 Bug 1141862 - Part 6: Implement ES6 SuperProperty and SuperMember. (r=jorendorff) 2015-04-08 17:41:01 -07:00
Bobby Holley 72ad334118 Bug 1151656 - Use TailDispatch for the MDSM's task queue. r=mattwoodrow 2015-04-08 21:33:21 -07:00
Bobby Holley 018e5fc24d Bug 1151656 - Make MediaPromises operate with TaskDispatchers. r=mattwoodrow 2015-04-08 21:33:21 -07:00
Bobby Holley 07fc0fdd03 Bug 1151656 - Implement the ability to assert tail dispatch. r=mattwoodrow
In order to make sure that the MDSM properly dispatches everything via tail
dispatch, we want verification that is more robust than simple inspection.
2015-04-08 21:33:20 -07:00
Bobby Holley 0cf99d6b30 Bug 1151656 - Implement a post-run TaskDispatcher for MediaTaskQueue. r=mattwoodrow 2015-04-08 21:33:20 -07:00
Bobby Holley a413743712 Bug 1151656 - Implement TaskDispatcher.h. r=mattwoodrow 2015-04-08 21:33:19 -07:00
Bobby Holley 9839891059 Bug 1151656 - Implement the ability to get the currently running task queue. r=mattwoodrow
I think this will generally be useful for asserting things. If we're concerned
about the TLS overhead we could make it debug-only, but my sense is that it's
negligible.
2015-04-08 21:33:19 -07:00
Bobby Holley 1571be1aab Bug 1151656 - Do static initialization explicitly. r=mattwoodrow 2015-04-08 21:33:18 -07:00
Bobby Holley c71babaf43 Bug 1151656 - Stop doing sync dispatch of PlaybackEnded. r=mattwoodrow 2015-04-08 21:33:18 -07:00
Bobby Holley 1748d9ab1f Bug 1151656 - Add some more assertions. r=mattwoodrow 2015-04-08 21:33:17 -07:00
Kartikaya Gupta 1691ae220e Bug 1149613 - Remove unneded field. r=botond 2015-04-08 23:39:28 -04:00
Shu-yu Guo 3808d7b321 Bug 1148388 - Handle lost accesses in missing Debugger scopes for block objects. (r=jimb) 2015-04-08 20:36:20 -07:00
Shu-yu Guo 2b4333d54b Bug 1151679 - Display the property name in the JIT Optimizations side pane. (r=jsantell) 2015-04-08 20:36:20 -07:00
Shu-yu Guo 0ec63812df Bug 1151679 - Stream the property name of getprop and setprop optimization sites. (r=djvj) 2015-04-08 20:36:20 -07:00
Shu-yu Guo 54c57c920d Bug 1150654 - Add CantInlineNoSpecialization to distinguish natives for which there is no Ion specialization. (r=jandem) 2015-04-08 20:36:20 -07:00
Shu-yu Guo 2df8d68f0d Bug 1151606 - Stream atoms instead of raw pointers for native functions in tracked optimizations. (r=djvj) 2015-04-08 20:36:20 -07:00
Shu-yu Guo d2d1d675ec Bug 1151634 - Patch a valid return address for debug mode OSR from exception handler when profiling is enabled. (r=jandem) 2015-04-08 20:36:20 -07:00
Valentin Gosu d1e3086f18 Bug 1134596 - SetOffline(false) in nsIOService::Init r=honzab 2015-04-09 06:33:08 +03:00
Valentin Gosu 49e6a369d1 Bug 1134596 - Add network.offline-mirrors-connectivity pref to preserve previous behaviour r=honzab 2015-04-09 06:33:03 +03:00
Valentin Gosu 375387ec80 Bug 1134596 - Separate nsIOService's network detection from offlineMode r=honzab 2015-04-09 06:32:53 +03:00
Andreas Pehrson 0efa763940 Bug 1149494 - Part 2. Add mochitest. r=jesup
--HG--
extra : rebase_source : 95a1de85dfe6c3036a16f9cdd09df43e70fa0888
2015-04-08 17:59:30 +12:00
Robert O'Callahan 1524dbeb74 Bug 1149494 - Part 1. Add a listener directly to the unblocked input stream that reports the size of the first non-empty frame seen. r=pehrsons
--HG--
extra : rebase_source : 79b92a9726670125cd028355e298e43a200785ab
2015-04-08 17:51:21 +12:00
Masayuki Nakano f415610fd8 Bug 1152229 Define FnLock as a KeyboardEvent.code value r=smaug 2015-04-09 12:03:31 +09:00
Boris Zbarsky f6342f9c1f Bug 1149235 part 3. Store async requests in the scriptloader in two lists, so we don't have to grovel about looking for loaded ones. r=sicking 2015-04-08 22:50:46 -04:00
Boris Zbarsky c932d1e3d9 Bug 1149235 part 2. Switch to using linked lists for nsScriptLoadRequest. r=sicking 2015-04-08 22:50:45 -04:00
Boris Zbarsky 10ff4f3739 Bug 1149235 part 1. Move nsScriptLoadRequest into nsScriptLoader.h. r=sicking 2015-04-08 22:50:45 -04:00
Boris Zbarsky 3dbe43d96c Bug 1151940 part 3. Make some writable cssom-view attributes that we only allow setting from chrome act the way readonly replaceables would when called from content. r=smaug 2015-04-08 22:50:45 -04:00
Boris Zbarsky a00fe72fd2 Bug 1151940 part 2. Add a convenience function in nsGlobalWindow for replacing a property on the window with a new value. r=smaug 2015-04-08 22:50:45 -04:00
Boris Zbarsky 6498cd7e42 Bug 1151940 part 1. Make some readonly properties defined on Window by CSSOM-view replaceable. r=smaug 2015-04-08 22:50:45 -04:00
Ehsan Akhgari af406fe8b6 Bug 1149987 - Part 3: Give ErrorResult a move constructor and a move assignment operator; r=bzbarsky 2015-04-08 22:44:50 -04:00
Ehsan Akhgari b7c3a57056 Bug 1149987 - Part 2: Make ErrorResult unassignable; r=bzbarsky
This object is not copyable, so it should probably not be
assignable either, especially since the compiler generated
copy constructor can potentially cause UAF issues on the
mMessage member, for example.
2015-04-08 22:44:47 -04:00
Ehsan Akhgari f061a90e54 Bug 1149987 - Part 1: Make it possible to send an ErrorResult that doesn't encode a JS exception through the IPDL layer; r=bzbarsky 2015-04-08 22:44:44 -04:00
Wes Kocher 89ea761a32 Backed out changeset 876c8ee6b132 (bug 1141862) for spidermonkey bustage 2015-04-08 19:05:41 -07:00
Ehsan Akhgari 2a9cba85f6 Bug 1151884 - Enable the uint32_t overload of ToJSValue; r=smaug 2015-04-08 21:58:07 -04:00
Ehsan Akhgari b06db58c73 Bug 1152329 - Only compile _Android_GetAddrInfoForNetInterface on Android>=19; r=mcmanus
This fixes the compiler warnings about the unused static function
on other platforms.
2015-04-08 21:57:01 -04:00
Jeff Gilbert 3c498e4de8 Bug 1151930 - Check against updated length while appending. - r=kamidphish 2015-04-08 18:55:16 -07:00
Ben Turner 94a12266fb Bug 1151646 - Fix static analysis bustage. 2015-04-08 18:49:38 -07:00
Ben Turner 8f3a68440b Bug 1151646 - Cleanup, r=khuey. 2015-04-08 15:21:26 -07:00