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

4746 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book 2d4d0c922a Merge m-c to mozilla-inbound 2015-10-19 11:40:29 +02:00
Carsten "Tomcat" Book b4d42f370a merge mozilla-inbound to mozilla-central a=merge 2015-10-19 11:38:22 +02:00
JW Wang 03cffdfd24 Bug 1215439 - Don't call ResetDecode() in the destructor of MediaDecoderReader. r=gerald. 2015-10-19 13:57:53 +08:00
JW Wang f4b4ec1c67 Bug 1215023. Part 2 - remove null check of mOwner. We check mShuttingDown to know whether it is valid to call functions of mOwner. r=kinetik. 2015-10-19 13:55:38 +08:00
JW Wang 6d842ecf29 Bug 1215023. Part 1 - make MediaDecoder::mOwner a const member. We will check mShuttingDown before calling functions of mOwner. r=kinetik. 2015-10-19 13:55:26 +08:00
JW Wang cc0244c899 Bug 1215003. Part 3 - fix AsyncReadMetadata() and its callers. r=gerald. 2015-10-19 10:52:34 +08:00
JW Wang 9e488683b4 Bug 1215003. Part 2 - rename AsyncReadMetadata and move it to the private section. r=gerald. 2015-10-19 10:52:15 +08:00
JW Wang 2b5568154e Bug 1215003. Part 1 - Move MediaDecoderReader::ReadMetadata and overrides to private sections. r=gerald. 2015-10-19 10:51:48 +08:00
John Lin 52219acf63 Bug 1207214 - Assert decoder attaches EOS flag to final output buffer. r=sotaro
--HG--
extra : rebase_source : 760fc437d59a3d57d42e0cd6755f6b7016158840
2015-10-16 00:45:00 -04:00
Alfredo Yang 0eb273bf78 Bug 1215441 - Skip flush before Init() is completed. r=sotaro
--HG--
extra : rebase_source : 6eb1535c88637c72ce1945ff773f7de359fb9688
2015-10-16 01:02:00 -04:00
Jonathan Hao 6a3c5ff854 Bug 1207964 - Remove workaround from bug 1080461. r=jwwang
--HG--
extra : rebase_source : b7955be8bce9aebb82707cbf42d405a3c308fb7e
2015-10-14 15:25:00 +08:00
Jan-Ivar Bruaroey ef83b4f124 Bug 1166293 - Use AsyncShutdown API to shut down media thread in non-e10s. r= jesup
--HG--
extra : transplant_source : %5Cfb%EC%C4%C6L%9E%8C%0E%E5%C5%C3/%81lS%06%D2%F3
2015-10-14 23:54:39 -04:00
Karl Tomlinson eba61c1793 crashtest for bug 1206362 r=padenot
--HG--
extra : rebase_source : 9c2af42fcdb168ced50e0e8f72b1054116af3180
extra : histedit_source : c6737b330ee494c254388b6b54a53a09c6ec1ae6
2015-09-21 15:36:28 +12:00
Karl Tomlinson 70eb9690cb crashtest for bug 1020370 r=padenot
--HG--
extra : rebase_source : f72a12e2d7d6d7cfeab7f4f0bf0975a06a2ef533
extra : histedit_source : e9193166e88501fd522b9ed6c8c8a806684649ac
2015-10-16 09:59:48 +13:00
Karl Tomlinson 5db355303c bug 1020370 use int64_t to avoid overflow in subsample calcs r=padenot
ratioDen can be large when playbackRate is low.

Subsample skipping is limited to uint32_t values supported by speex resampler.

--HG--
extra : rebase_source : 26a14f212b5fd3fdd62820f458db3a7cf3673e93
extra : histedit_source : 733829a4b2ba6aab7c651f362dbc47553f9dfc59
2015-10-16 11:56:24 +13:00
Karl Tomlinson c31207d4a3 bug 1020370 adjust assert to tolerate large skipFracNum r=padenot
--HG--
extra : rebase_source : 35b6077976ccdc4c2b9d9fd4c778c6362fdd1daa
extra : histedit_source : 7adb8e3296924a1c8ffcb4665122c40ee48f42a4
2015-10-16 11:31:45 +13:00
Karl Tomlinson 28235c90c6 mochitest for bug 913854 r=padenot
--HG--
extra : rebase_source : 8b8e282f34cda23ba924ef4f7201d59b94a7c7af
2015-10-16 01:52:37 +13:00
Karl Tomlinson fef64ad5d0 bug 1215096 correct off-by-one error in playback position of resampled buffers r=padenot
"The behavior of an expression of the form E1 op = E2 is equivalent to E1 = E1
op E2 except that E1 is evaluated only once", which means that the subtraction
of -= was happening before conversion from double to unsigned int.

The "+ 0.5" was subtracted before the truncation toward zero, causing rounding
to nearest minus one, except when nearest was zero.

--HG--
extra : rebase_source : 3b2335da7a244245ea2fcf5c80760dc1645e6dae
2015-10-16 01:40:07 +13:00
Karl Tomlinson 145e364521 bug 1214493 restore fractional start time accidentally rounded in 13e85dc6b41b r=padenot
--HG--
extra : rebase_source : 524269e54597bffcdeafc96940cbe14b8850c6a7
2015-10-15 18:56:56 +13: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
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Phil Ringnalda 915c3cb404 Back out 2 changesets (bug 1214967) for b2g debug mochitest-14 hangs, or perhaps fatal assertions failing to be fatal until a hang, or summat
CLOSED TREE

Backed out changeset 120b53ea0f41 (bug 1214967)
Backed out changeset af6b752acbd0 (bug 1214967)
2015-10-16 20:26:20 -07:00
Chris Pearce 419cfce138 Bug 1214967 - Proxy observer service notification across to content process when GMPs are added/removed. r=billm,jwwang 2015-10-17 10:39:45 +13:00
Chris Pearce 5802a627b3 Bug 1214967 - Create a list of GMPs/codecs that can be used for <video> decoding. r=jwwang 2015-10-17 10:39:36 +13:00
Nathan Froyd fe57e31ffe Bug 1212027 - part 7 - modify IPDL codegen to store sub-protocols in a hashtable rather than an array; r=jld,nical,cpearce,billm 2015-10-07 14:30:33 -04:00
Nathan Froyd 835e1550cb Bug 1212027 - part 5 - add LoneManagedOrNull for simplifying a lot of upcoming code; r=jld
A lot of existing code has variations on:

  if (ManagedPFooChild().Length()) {
    ...(ManagedPFooChild()[0])...
  }
  // Do something with nullptr, or some other action.

It's pretty reasonable to repeat this code when the managed protocols
are stored in an array; the code gets much less nice when managed
protocols are stored in a hashtable.  Let's write a small utility
function to handle those details for us.  Then when we change the
underlying storage, we only need to update this function, rather than a
bunch of callsites.

ProtocolUtils.h is included by all the generated IPDL headers, so
LoneManagedOrNull should be available everywhere the above pattern would
be encountered.
2015-10-07 20:15:56 -04:00
Jean-Yves Avenard 6db8b43cba Bug 1213176: P1. Remove most MediaFormatReader dependencies on its MediaDecoder parent. r=jwwang
The LayersBackend can be defined at construction time, however if a parent MediaDecoder exists, the value will be overwritten by the MediaDecoderOwner value.

--HG--
extra : rebase_source : fefad83560d5bfa2aee9f665fe138397eb390019
2015-10-15 02:04:00 +02:00
John Lin 5bd83278c7 Bug 1170589 - Force decoder to use all allocated buffers. r=bwu 2015-10-14 14:12:25 +08:00
Sotaro Ikeda 2ae2b0b270 Bug 1210045 - Fix GonkVideoDecoderManager shutdown during initialization r=bwu 2015-10-15 22:25:57 -07:00
Wes Kocher 0f015ebe75 Merge b2ginbound to central, a=merge 2015-10-15 11:34:27 -07:00
Carsten "Tomcat" Book d89def21d7 Merge m-c to b2g-inbound 2015-10-15 12:04:19 +02:00
Kelly Davis c9766e67ad Bug 1214092 - Part 1 of 1: Exposed WebSpeech API SpeechRecognition Interface to privileged apps. r=smaug 2015-10-12 22:56:00 +02:00
JW Wang 5147e1f0af Bug 1214989. Part 3 - remove MediaDecoder::Init() and its callers. r=gerald. 2015-10-15 11:39:45 +08:00
JW Wang e868f91ff6 Bug 1214989. Part 2 - add MediaDecoderOwner to Clone() and overrides. r=gerald. 2015-10-15 11:37:47 +08:00
JW Wang e470e1616d Bug 1214989. Part 1 - add MediaDecoderOwner to the constructors of MediaDecoder and sub-classes. r=gerald. 2015-10-15 11:36:21 +08:00
JW Wang 1065049ddb Bug 1214498 - MediaDecoderReader::DisableHardwareAcceleration should figure out which thread to dispatch the job. r=gerald. 2015-10-14 14:25:01 +08:00
JW Wang 6765563707 Bug 1214073 - MediaDecoderReader::ReleaseMediaResources will do dispatch if necessary. r=gerald. 2015-10-14 11:52:26 +08:00
JW Wang 1cc6677a90 Bug 1214065 - Remove unused arguments from MediaDecoder::Load() and its friends. r=kinetik. 2015-10-14 11:46:27 +08:00
Jan-Ivar Bruaroey 48f5209447 Bug 1213738 - media::Pledge.Then() moves lambda args instead of copying them. r=jesup
--HG--
extra : transplant_source : X%BAyz%A1%BBD%03%3D%21Tv%C7%3E%CFT%02%D0%5D%85
2015-10-13 14:34:54 -04:00
Jan-Ivar Bruaroey dad9a8cbfb Bug 1213738 - media::NewRunnableFrom() and media::NewTaskFrom() move lambda arg instead of copying it. r=jesup
--HG--
extra : transplant_source : 7%CD%AD%C5%CA%01%D6%D6%CB71%C8L%B6w6%9A%E9%ECN
2015-10-12 19:12:01 -04:00
Chris Pearce 2c28e66665 Bug 1209385 - Backout 417dab86a413 and 6078e8b4878b. r=backout 2015-10-14 19:42:25 +13:00
Chris Pearce 7f29db1d5a Bug 1214478 - Ensure MediaKeySession.close() does not store its promise twice. r=gerald 2015-10-14 19:42:24 +13:00
Gian-Carlo Pascutto 2375870ce2 Bug 1209987 - webrtc.org Engine creation and destruction should happen on the WebRTC threads. r=jesup 2015-10-14 08:39:10 +02:00
Chris Pearce 544e62ef89 Bug 121442 - Add platform to GMP storage base dir. r=gerald 2015-10-14 12:18:06 +13:00
Wes Kocher 07ed05b047 Backed out changeset fc7d1acf804f (bug 1209987) for m-e10s(2) leaks CLOSED TREE 2015-10-13 12:21:02 -07:00
Eric Rahm d4f1bff852 Bug 1190592 - Part 2: Add test for mediasource memory reporter. r=jya 2015-10-14 20:48:58 -07:00
Kilik Kuo 3b7a3980ff Bug 1213897 - Extract DelayedScheduler out of MDSM to a common class. r=jwwang
--HG--
extra : rebase_source : 5408c282a678fe060d24138eccbe34cf99c8c929
2015-10-13 15:39:01 +08:00
Gian-Carlo Pascutto 0c40104171 Bug 1209987 - webrtc.org Engine creation and destruction should happen on the WebRTC threads. r=jesup 2015-10-13 13:58:44 +02:00
JW Wang d3c9b0b0df Bug 1212723. Part 2 - remove unused argument aCloneDonor from MediaDecoderReader::Init(). r=jya. 2015-10-13 15:28:57 +08:00
JW Wang 8dc6926042 Bug 1212723. Part 1 - don't share mBufferedState per bug 1212723 comment 6. r=jya. 2015-10-13 15:28:50 +08:00