Commit Graph
50 Commits
Author SHA1 Message Date
Andrew McCreight 84ee98de3c Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1
2017-08-29 16:02:48 -07:00
Bill McCloskey ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 238bf154d5 Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
Bill McCloskey 67e8af4720 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book bbe9441993 Backed out changeset 9846de3bd954 (bug 1372405) 2017-06-20 08:27:02 +02:00
Bill McCloskey f69608368b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Bevis Tseng d028a1f078 Bug 1314833 - Part 2.2: Use AbstractThread::CreateDirectTaskDrainer() to Drain Direct Tasks Dispatched to MediaStreamGraph. f=rjesup,r=padenot,jwwang
MozReview-Commit-ID: 1KgE3uKu4CG
2016-12-07 22:00:12 -10:00
Paul Adenot 8342c3e8e5 Bug 1325066 - Use correct exception for connect calls between AudioNodes and AudioParams of different contexts. r=baku
MozReview-Commit-ID: KrG4ZAya088
2016-12-21 14:45:51 +01:00
Andrea Marchesini 654168335e Bug 1322883 - AudioNode constructors - part 0 - AnalyserNode, r=padenot 2016-12-15 19:24:41 +01:00
Paul Adenot 28819b2b98 Bug 1291702 - Remove the aDestination parameter in DisconnectFromOutputIfConnected and IterateOnDestinationInputs. r=karlt
We do this by abstracting away getting the input for AudioNodes and AudioParams
with templates. This prevents removing the wrong connection when disconnecting
nodes with multiple inputs.

MozReview-Commit-ID: 3fzUKthRM1f
2016-10-20 14:34:27 +02:00
Paul Adenot 35c780ed64 Bug 1291702 - Rename the argument of the predicate lambda to aInputNode. r=karlt
`aInput` clashes with outer scope variables, and we can't rename captured
variables just yet, as it is a C++14 feature that we can't use in
mozilla-central.

MozReview-Commit-ID: JL4ChEpusM4
2016-10-20 14:34:03 +02:00
Paul Adenot fcbd048ba2 Bug 1291702 - Wrap AudioNode.cpp to 80 character lines. r=karlt
This patch only contains indentation changes, line breaks, and whitespace
changes.

MozReview-Commit-ID: 1lhRIecxZ4J
2016-10-20 14:33:59 +02:00
Paul Adenot af0a6119c0 Bug 1291702 - Refactor the input node iteration loop on destination node when disconnecting nodes. r=karlt
MozReview-Commit-ID: FE19hEVhA7R
2016-09-09 13:41:01 +02:00
Dan Minor 407b0d1eef Bug 1291702 - Avoid removing same output node repeatedly during AudioNode disconnect; r=karlt
MozReview-Commit-ID: 5w5972qjwV8
2016-08-11 12:13:33 -04:00
Paul Adenot b047321cea Bug 1130010: Implement the new AudioNode.disconnect methods. r=dminor,ehsan
Initial patch by Thomas Escalon <[email protected]>.

MozReview-Commit-ID: KDnmKIGWYL
2015-06-05 11:17:14 +02:00
Dan Minor d2d03668a4 Bug 11130010 - Backout new AudioNode.disconnect methods; r=mreavy,karlt,smaug
MozReview-Commit-ID: AgHScRbICYU
2016-08-16 15:26:35 -04:00
Nicholas Nethercote 0550795f93 Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
This patch makes the following changes on many in-class methods.

- NS_IMETHODIMP F() override;      --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final;         --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...}    --> NS_IMETHOD F() final {...}

Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.
2016-08-08 10:54:47 +10:00
Paul Adenot bfb3ae6403 Bug 1130010: Implement the new AudioNode.disconnect methods. r=dminor,ehsan
Initial patch by Thomas Escalon <[email protected]>.

MozReview-Commit-ID: KDnmKIGWYL
2015-06-05 11:17:14 +02:00
Sebastian Hengst a74e4b131e Backed out changeset ac56ced6aba2 (bug 1130010) for bustage. r=backout 2016-07-18 19:45:12 +02:00
Paul Adenot fb665e1c76 Bug 1130010: Implement the new AudioNode.disconnect methods. r=dminor,ehsan
Initial patch by Thomas Escalon <[email protected]>.

MozReview-Commit-ID: KDnmKIGWYL
2015-06-05 11:17:14 +02:00
Kyle Huey a9cf047227 Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Andreas Pehrson a9efa69c8a Bug 1208371 - Allow MediaInputPorts mapped to a destination TrackID. r=roc
This lets us know the track's TrackID in the destination stream before
the input port has been processed.
For sanity we only allow mapping to a destination TrackID if the
destination stream does not have any TRACK_ANY input ports already
assigned to it as that can cause intermittent TrackID collisions.

MozReview-Commit-ID: ClFyQl0nYFC
2016-01-05 10:16:22 +08:00
Karl Tomlinson e6f3aa09ec bug 1223670 replace public constructors with fallible factory methods r=baku 2015-12-10 11:25:54 -05:00
Karl Tomlinson af8c91ef39 bug 1227411 add some initial logging of AudioNode API use r=padenot 2015-11-24 15:55:10 +13:00
Paul Adenot 440c180e19 Bug 1218694 - Return the AudioNode connected to when calling AudioNode.connect(). r=smaug 2015-10-28 13:54:35 +09:00
Nathan Froyd 4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Karl Tomlinson f4262971d7 bug 1210267 use DOMEventTargetHelper::LastRelease instead of custom Release r=baku
AudioNode already has NS_IMPL_CYCLE_COLLECTING_RELEASE_WITH_LAST_RELEASE,
which performs mRefCnt.incr/decr for LastRelease(), so the kungFuDeathGrip
virtual AddRef/Release in DisconnectFromGraph() is additional noise when
debugging/tracing ownership.

Unlink() already assumes that the caller holds a reference (and it does).
2015-10-01 00:14:26 +13:00
Karl Tomlinson 3c550c812c bug 1210266 use parameter index instead of node callback for sending timeline events r=padenot 2015-10-01 15:48:20 +13:00
Andreas Pehrson f183ed6c8d Bug 1170958 - Allow MediaInputPort to lock to a specific input track. r=roc
Locking to specific tracks lets us dynamically remove and add single
tracks to a ProcessedMediaStream.
2015-09-30 09:31:53 +08:00
Wes Kocher 954ce67cb5 Backed out 9 changesets (bug 1170958) for frequent test_getUserMedia_addTrackRemoveTrack.html failures
Backed out changeset 277c1f8098d1 (bug 1170958)
Backed out changeset aa86bb9eea95 (bug 1170958)
Backed out changeset 8af8b85a4b26 (bug 1170958)
Backed out changeset ec1bf225e9cb (bug 1170958)
Backed out changeset 4a04ddca2b6b (bug 1170958)
Backed out changeset e85c9977a311 (bug 1170958)
Backed out changeset 16b40ff04e8f (bug 1170958)
Backed out changeset ad206925c84a (bug 1170958)
Backed out changeset 2106eccec79b (bug 1170958)
2015-09-25 13:08:55 -07:00
Paul Adenot adb4daccbb Bug 1200579 - Stop copying AudioParam timelines. r=karlt 2015-09-25 15:57:55 +02:00
Andreas Pehrson aa0d330301 Bug 1170958 - Allow MediaInputPort to lock to a specific input track. r=roc
Locking to specific tracks lets us dynamically remove and add single
tracks to a ProcessedMediaStream.
2015-09-25 23:23:18 +08:00
Robert O'Callahan d530476f73 Bug 1189506. Remove aFlags parameter from AllocateInputPort. r=karlt 2015-09-04 16:42:42 +12:00
Robert O'Callahan d197fb35d2 Bug 1189506. Give AudioContext non-owning pointers to all its AudioNodes. r=karl 2015-09-03 17:12:25 +12:00
Robert O'Callahan b3b3d8c8ab Bug 1201393. Remove usage of FLAG_BLOCK_INPUT from AudioParam/AudioNode. r=padenot
We don't need AudioNodes to block each other anymore.
2015-08-31 16:58:10 +12:00
Karl Tomlinson b4c0c41ec5 bug 916387 add a notification of garbage collected input node r=padenot
The effects of garbage collection must not be observable.  We can collect an
AudioNode if it is not going to cause any further changes, but we must keep
any current effects.
2015-08-06 14:15:40 +12:00
Karl Tomlinson c249e4003e bug 1191649 add notification of input node changes r=padenot 2015-08-06 19:25:53 +12:00
Nicholas Nethercote 37d91ed8fe Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.

And do likewise for nsTObserverArray.
2015-07-28 23:24:24 -07:00
Paul Adenot 4a67f7faba Bug 1185176 - Account for the fact that it is possible for nodes to not have streams. r=karlt
We can now destroy a stream earlier than the node for performance reasons.
2015-07-24 15:09:19 +02:00
Karl Tomlinson c613bfc40b bug 914392 don't check engine's Node existence in ProcessBlock r=padenot
If DestroyMediaStream() has cleared the node on the engine, then it will call
MediaStream::Destroy().  I doubt the additional code and cost of repeatedly
checking this is worth the savings in no-op events dispatched to main thread
between MediaStream::Destroy() on the main thread and destruction on the graph
thread.

Also ScriptProcessorNode should not be potentially ignoring its output buffer
immediately when the ScriptProcessor loses its last reference.  At least the
block currently being processed should output the output buffer.
(Deterministically playing the remainder of the output buffer would be best.)
2015-07-14 23:11:59 +12:00
Birunthan Mohanathas a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Karl Tomlinson d734a0eb80 bug 1179662 handle null AudioNodeStream stream r=padenot 2015-07-02 17:45:11 +12:00
Karl Tomlinson 5ae5ba128e bug 1179662 specify AudioNode::mStream as AudioNodeStream r=padenot 2015-07-02 17:36:07 +12:00
Karl Tomlinson 36e5bd65dd Bug 974089 - Destroy WebAudio MediaStream when a source finishes. r=padenot 2015-06-10 13:31:29 +02:00
Ryan VanderMeulen 699f04a85f Backed out 3 changesets (bug 974089) for causing OSX/Windows test_bug867104.html permafail.
Backed out changeset 1dcfd15bb387 (bug 974089)
Backed out changeset 8c6a7d5efe3a (bug 974089)
Backed out changeset e511c79f2211 (bug 974089)

CLOSED TREE
2015-06-11 15:10:06 -04:00
Karl Tomlinson 8fbf331625 Bug 974089 - Destroy WebAudio MediaStream when a source finishes. r=padenot 2015-06-10 13:31:29 +02:00
Andrea Marchesini a497f8b747 Bug 1159290 - "Add final/override to WebAudio classes". r=padenot 2015-04-28 08:42:00 +02:00
Ehsan Akhgari ea41d8de48 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Daniel Holbert ddb04a0443 Bug 1142841: Convert all nsRefPtr<nsIRunnable> to nsCOMPtr<nsIRunnable>. r=ehsan
This patch was generated by a script.  Here's the source of the script for
future reference:

find . \( -iname "*.cpp" -o -iname "*.h" \) | \
  xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"
2015-03-17 09:29:17 -07:00
Birunthan Mohanathas 417b400d55 Bug 946065 - Part 10: Move content/media/ to dom/. r=peterv 2014-10-25 20:24:36 +03:00