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

10 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru 804b8b8883 Bug 1204606 - Reformat of dom/media r=jya
# skip-blame

Differential Revision: https://phabricator.services.mozilla.com/D12251

--HG--
extra : moz-landing-system : lando
2018-11-19 13:25:37 +00:00
Karl Tomlinson 53de4f8c06 bug 1474222 consider allocation size instead of used channel count for re-using AudioBlockBuffer r=padenot
MozReview-Commit-ID: CgA051giSTU

--HG--
extra : rebase_source : 22d06a101a1c08d399de99bcd3477f1ff9ba3880
2018-08-03 18:32:28 +12:00
Karl Tomlinson 39d02c6b7c bug 1394341 replace xmalloc with operator new(size_t) to match AudioBlock deallocation in delete r=padenot
MozReview-Commit-ID: EqDe41PBf3C

--HG--
extra : rebase_source : e88f0ae221e1d5985e292f891ab033d5a048ea72
2017-08-30 12:17:07 +12:00
Dan Minor 8c7cbbbf79 Bug 877662 - Align audio buffer allocations to 16 byte boundaries r=padenot
To be able to use SSE2 routines, we need to audio buffers to be allocated
on 16 byte boundaries.

MozReview-Commit-ID: 2mjxMWqysFd

--HG--
extra : rebase_source : 8bd7d48b767b7bcfa5874061586b9b41c26a18ae
2016-04-13 15:31:50 -04:00
Nathan Froyd 01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Karl Tomlinson 99d66c32cb bug 1203380 tighten not-sharing assertion in ChannelFloatsForWrite() r=padenot
--HG--
extra : rebase_source : 5206ae1ae59bade7f2b40400e0f851bf26df5d9c
2015-09-10 09:01:55 +12:00
Karl Tomlinson e74d20e2da bug 1197028 use AudioBlock for web audio processing to reuse buffers shared downstream r=padenot
--HG--
extra : rebase_source : d2e403ae64a314177cba4d596ea235eb351ad3bc
2015-09-03 19:01:50 +12:00
Karl Tomlinson c5c6b3c71f bug 1197028 introduce AudioBlock to keep track of downstream references to AudioBlockBuffer r=padenot
--HG--
extra : rebase_source : 18b55c10869e58cda0b3c9e99e4c97bd76f26359
2015-09-08 12:04:16 +12:00
Karl Tomlinson 0219374858 bug 1197028 introduce AudioBlockBuffer r=padenot
At this point AudioBlockBuffer is just like SharedBuffer but always with float
channels of length 128.

--HG--
extra : rebase_source : 61159da1577fb9607d5a766ba4288db3a7be2aff
2015-09-03 18:45:14 +12:00
Karl Tomlinson 68df460f8c bug 1197028 move AllocateAudioBlock to AudioBlock.h r=padenot
In a subsequent patch, AllocateAudioBlock will become part of an AudioBlock
class derived from AudioChunk and used for AudioNodeStream members.

--HG--
extra : rebase_source : a3bfde8345995865c6f8e46abed24f008c112702
2015-09-03 19:05:02 +12:00