Nathan Froyd
54dfa729a9
Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
...
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Karl Tomlinson
8835da18a7
bug 930257 finish Oscillator on processing last non-null block r=padenot
2015-10-23 09:23:52 +13:00
Julian Seward
c26ba284fc
Bug 1216081 - OscillatorNodeEngine::mFinalFrequency is used uninitialised. r=padenot.
2015-10-20 12:59:37 +02: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
3c550c812c
bug 1210266 use parameter index instead of node callback for sending timeline events r=padenot
2015-10-01 15:48:20 +13:00
Paul Adenot
755e656205
Bug 1209904 - Optimize OscillatorNode when its frequency is not changin and it's using ::ComputeCustom. r=karlt
2015-10-01 10:52:28 +02:00
Karl Tomlinson
05321954cb
bug 1205558 remove unused AudioNodeStream* aSource parameter r=padenot
2015-09-22 17:11:52 +12:00
Karl Tomlinson
ca1a77e3ec
bug 1205558 use destination stream for audio node engine time r=padenot
2015-09-22 16:34:45 +12:00
Paul Adenot
adb4daccbb
Bug 1200579 - Stop copying AudioParam timelines. r=karlt
2015-09-25 15:57:55 +02:00
Karl Tomlinson
2d17d20fc0
bug 1207003 add GraphTime parameter to ProcessBlock() and remove GetCurrentPosition() r=padenot
...
This is immediately useful for making the track unnecessary, but will also be
required when switching to the destination node stream for tracking time (bug
1205558) because using GetCurrentPosition() on the destination node stream
would give different results depending on the stream processing order (when
called during processing of streams not strictly upstream from the destination
node).
2015-09-18 17:05:25 +12:00
Karl Tomlinson
e6d36626d2
bug 1205540 account for active inputs and skip processing when streams are inactive r=padenot
2015-09-18 00:03:00 +12:00
Karl Tomlinson
619dca8331
bug 1205540 provide querying whether engines need to continue processing even without input r=padenot
2015-09-09 08:54:03 +12:00
Carsten "Tomcat" Book
8bbb957053
Backed out 5 changesets (bug 1205540) for Assertion Failurs in m2-e10s tests on a CLOSED TREE
...
Backed out changeset e89d8182d588 (bug 1205540)
Backed out changeset abace4cdec06 (bug 1205540)
Backed out changeset b3f6e1db7233 (bug 1205540)
Backed out changeset 0d122cb34921 (bug 1205540)
Backed out changeset 4de5f87180fb (bug 1205540)
2015-09-18 16:36:33 +02:00
Karl Tomlinson
d8ada6b010
bug 1205540 account for active inputs and skip processing when streams are inactive r=padenot
2015-09-18 00:03:00 +12:00
Karl Tomlinson
df684cb0f1
bug 1205540 provide querying whether engines need to continue processing even without input r=padenot
2015-09-09 08:54:03 +12:00
Robert O'Callahan
4b795940b9
Bug 1189506. Pass AudioContext to AudioNodeStream::Create. r=karlt
2015-09-09 01:22:16 +12:00
Karl Tomlinson
0380c42799
bug 1197028 use AudioBlock for web audio processing to reuse buffers shared downstream r=padenot
2015-09-03 19:01:50 +12:00
Karl Tomlinson
e2a143bb32
bug 1197043 use flags to distinguish between external streams and events r=padenot
...
MediaStreamAudioDestinationNode does not need any main thread events because
mDOMStream provides GetCurrentTime to consumers.
MediaRecoder also does not use main thread current time.
2015-08-13 16:13:34 +12:00
Karl Tomlinson
2da94f3fb7
bug 1197043 move AudioNodeStream creation to stream class r=padenot
2015-08-12 11:26:24 +12:00
Karl Tomlinson
08237e3eec
bug 1186779 use ChannelFloatsForWrite() instead of const_cast r=padenot
2015-07-22 17:59:21 +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
Paul Adenot
1dbdce6eb6
Bug 1173016 - Cache the basic waveform PeriodicWaves. r=karlt
2015-06-15 18:16:16 +02:00
Karl Tomlinson
5ae5ba128e
bug 1179662 specify AudioNode::mStream as AudioNodeStream r=padenot
2015-07-02 17:36:07 +12:00
Karl Tomlinson
9288c88f3a
bug 1179662 uninline DestroyMediaStream overrides so that mStream type need not be complete r=padenot
2015-07-02 16:44:31 +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
Paul Adenot
a3a6783a82
Bug 974089 - Destroy the streams from the main thread.
2015-06-11 18:46:44 +02:00
Karl Tomlinson
8fbf331625
Bug 974089 - Destroy WebAudio MediaStream when a source finishes. r=padenot
2015-06-10 13:31:29 +02:00
Paul Adenot
ff47ce11f0
Bug 1122218 - Fix off-by-one error when computing oscillator rendering range. r=karlt
2015-05-13 11:02:27 +02:00
Andrea Marchesini
f96c8545be
Bug 1161946 - MainThreadMediaStreamListener should be notified just when the stream is finished - patch 1, r=padenot
2015-05-11 15:07:24 +01:00
Andrea Marchesini
a497f8b747
Bug 1159290 - "Add final/override to WebAudio classes". r=padenot
2015-04-28 08:42:00 +02:00
Paul Adenot
da981a89cb
Bug 1134034 - Add a chrome-only parentId and name on AudioParam for devtools. r=ehsan
2015-04-14 17:03:52 +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
Boris Zbarsky
3a822d99b4
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Paul Adenot
a3df86c74b
Bug 1119266 - Properly wrap the table index in ComputeCustom on ARM. r=karlt
...
On ARM, casting a negative float to an unsigned integer yields zero, whereas on
x86, it wraps. When the OscillatorNode had a negative frequency, the code would
just interpolate between the first and second value of the wave table, instead
of interpolating backward.
2015-01-12 13:32:11 +01:00
Chris Peterson
ad426f785b
Bug 1118076 - Remove MOZ_THIS_IN_INITIALIZER_LIST. r=Waldo
2015-01-06 21:39:46 -08:00
Paul Adenot
7e624918c9
Bug 916285 - Fix bustage on windows.
2015-01-05 15:30:53 +01:00
Paul Adenot
db172718d1
Bug 916285 - Make OscillatorNode handle negative frequencies. r=karlt
2014-12-01 16:10:54 -08:00
Paul Adenot
3fc579779d
Bug 997870 - Optimize OscillatorNodeEngine::ComputeCustom a little. r=karlt
2014-12-10 15:34:14 +01:00
Paul Adenot
cd5010f196
Bug 1106649 - Use band-limited wave tables to implement basic waveforms. r=karlt
2014-12-01 16:09:56 -08:00
Ryan VanderMeulen
c56bed265d
Backed out 4 changesets (bug 1106649, bug 916285, bug 997870) for test_periodicWave.html failures.
...
Backed out changeset 43e2d930ba6f (bug 916285)
Backed out changeset 011c2f2f5899 (bug 916285)
Backed out changeset b7303f56216b (bug 997870)
Backed out changeset a2b0a16b8898 (bug 1106649)
CLOSED TREE
2015-01-05 14:22:29 -05:00
Paul Adenot
b84ca741a6
Bug 916285 - Fix bustage on windows, on a CLOSED TREE.
2015-01-05 15:30:53 +01:00
Paul Adenot
b09a03cbc0
Bug 916285 - Make OscillatorNode handle negative frequencies. r=karlt
2014-12-01 16:10:54 -08:00
Paul Adenot
c655d4af93
Bug 997870 - Optimize OscillatorNodeEngine::ComputeCustom a little. r=karlt
2014-12-10 15:34:14 +01:00
Paul Adenot
a29f3e2b8f
Bug 1106649 - Use band-limited wave tables to implement basic waveforms. r=karlt
2014-12-01 16:09:56 -08:00
Ehsan Akhgari
a51ec0ffb2
Bug 1117038 - Mark virtual overridden functions as MOZ_OVERRIDE in Web Audio; r=padenot
2015-01-05 11:22:44 -05:00
Paul Adenot
a7fae09b57
Backed out changeset 3ae2161027a6 (bug 1106649) on a CLOSED TREE
2015-01-05 16:04:36 +01:00
Paul Adenot
9278285ec3
Backed out changeset 187fa323cec6 (bug 997870)
2015-01-05 16:04:34 +01:00
Paul Adenot
1ac8ed86d2
Backed out changeset 99d7aacbdd3b (bug 916285)
2015-01-05 16:04:33 +01:00
Paul Adenot
b412cd6562
Backed out changeset f33f5ff9d956 (bug 916285)
2015-01-05 16:04:23 +01:00