Commit Graph

66550 Commits

Author SHA1 Message Date
Alastor Wu
f570c3c5ec Bug 1373888 - part1 : remove useless function. r=cpearce,smaug
These functions didn't be used by anyone, remove them.

MozReview-Commit-ID: BLj8GsVp1gR

--HG--
extra : rebase_source : 1b7eee86c62314401c2374a2979ba2a42fda2490
2017-08-29 10:54:18 +08:00
JW Wang
c8952581e9 Bug 1394653 - remove MediaResource from the base class of MediaSourceResource. r=jya
MozReview-Commit-ID: 9Pmp7K6zp13

--HG--
extra : rebase_source : b6ce308423c530f6c0b5c71127fc9343561f0fdb
extra : intermediate-source : b443c01608e693905afb69db2ae24bde162a65b9
extra : source : 3fc73f9bd173467c50159bc12ea2274013338b71
2017-08-25 14:08:07 +08:00
JW Wang
c26c18e8c8 Bug 1394651 - remove MediaResource from the base class of HLSResource. r=gerald
MozReview-Commit-ID: 3RaLXA1kKzA

--HG--
extra : rebase_source : 9cc0d22671ff866ece5d3773e1efcda15c966fa4
extra : intermediate-source : 51fb3c2b3834f04b3fa944f02b230b4365557060
extra : source : 08a811cbddc2477f79985b5a9b5c20743a718b12
2017-08-25 14:03:45 +08:00
Phil Ringnalda
fd6ec799b2 Backed out 4 changesets (bug 1098412) for failing browser_webconsole_bug_632347_iterators_generators.js
Backed out changeset f4da55f291cb (bug 1098412)
Backed out changeset e9a0298824d6 (bug 1098412)
Backed out changeset 8281805e7c3c (bug 1098412)
Backed out changeset 1643079d7661 (bug 1098412)

MozReview-Commit-ID: 5kuHtUjx1UM
2017-08-28 21:28:26 -07:00
Phil Ringnalda
2f26d0e9a4 Backed out 15 changesets (bug 1391482) for rooting hazard
Backed out changeset 4d4ed9b64bdb (bug 1391482)
Backed out changeset c02da061fc56 (bug 1391482)
Backed out changeset 7f096b0d1d0e (bug 1391482)
Backed out changeset 497e04031fc3 (bug 1391482)
Backed out changeset cb6ac4267562 (bug 1391482)
Backed out changeset b9a522cc88c9 (bug 1391482)
Backed out changeset 6feba222e86b (bug 1391482)
Backed out changeset ee13302be6c8 (bug 1391482)
Backed out changeset 0e12a1bdb2fa (bug 1391482)
Backed out changeset 7ffc044e742a (bug 1391482)
Backed out changeset fc35c12c815f (bug 1391482)
Backed out changeset 527ea972cdf3 (bug 1391482)
Backed out changeset a9c7abf92455 (bug 1391482)
Backed out changeset fea3e5cd3590 (bug 1391482)
Backed out changeset ca07d3a43b11 (bug 1391482)

MozReview-Commit-ID: 9Cq8e7pr2SP
2017-08-28 20:40:11 -07:00
JW Wang
2cbbe83757 Bug 1393386. P2 - remove MediaDecoder::GetResource(). r=gerald
MozReview-Commit-ID: 7OfkJthwfoM

--HG--
extra : rebase_source : 88b63f6ebbab3a4df15febede377e427e32e065e
extra : intermediate-source : 39514e130ddbda604a9fdc69fd99d0248ed40420
extra : source : 91eded128b33b655d023f8aa73f9eaf2a38aac4a
2017-08-24 18:10:31 +08:00
JW Wang
4af519df25 Bug 1393386. P1 - make PinForSeek/UnpinForSeek pure virtual. r=gerald
Sub-classes should know how to pin/unpin the resource.

MozReview-Commit-ID: 50S8oSD5oEU

--HG--
extra : rebase_source : 5e1b7c657b759c0d1dfdd7b5c0a4b7dbc4077ffe
extra : intermediate-source : 3000b76a3b97c08955c2d584ac215114c8e8f59a
extra : source : a56b9846db916ff85a0cae09736c3284bd895506
2017-08-24 18:08:37 +08:00
JW Wang
3c7ce1ac45 Bug 1394316 - provide default implementation to MediaDecoderOwner methods that involve Gecko specific types. r=cpearce
MozReview-Commit-ID: 7hhJgeYH7ys

--HG--
extra : rebase_source : bc8ad684bae13e9cd4a45ba73cea92b5214ae157
2017-08-28 14:36:00 +08:00
JW Wang
f8f989dd93 Bug 1394313 - replace use of nsAutoPtr with UniquePtr in MediaDecoderOwner.h. r=cpearce
MozReview-Commit-ID: 49lyvMzg7oY

--HG--
extra : rebase_source : b83cd03b0026c73d0293ef937a3c2544349f464d
2017-08-28 14:10:35 +08:00
Karl Tomlinson
2ebded1547 bug 1391482 delay conversion of output of decodeAudioData() from int16_t to float until necessary r=padenot
On platforms with MOZ_SAMPLE_TYPE_S16, decode and resampling was already
performed in 16-bit arithmetic.  Keeping the potentially large buffer in
16-bit format halves the memory usage.

This patch does not affect other platforms.

MozReview-Commit-ID: DWZdiPNasie

--HG--
extra : rebase_source : b6a7191357c64888455ee111f02da75f208d2df7
2017-08-17 13:28:25 +12:00
Karl Tomlinson
5de6db32a5 bug 1391482 generalize WebAudioDecodeJob buffer as AudioChunk r=padenot
MozReview-Commit-ID: 4H3F0SzAknc

--HG--
extra : rebase_source : 0c307d759617ee3bc2885d7e8683c36c650d2d4f
2017-08-16 18:10:06 +12:00
Karl Tomlinson
2697172632 bug 1391482 permit AudioChunk channel data initialization when mBuffer is not shared r=padenot
MozReview-Commit-ID: AZ30fTVHHce

--HG--
extra : rebase_source : 36023b21341845fcca0e4d1b7dfa7465d9bf0c51
2017-08-16 18:37:30 +12:00
Karl Tomlinson
3acaa2ac23 bug 1391482 accept int16_t-sample initialization of AudioBuffer r=padenot
MozReview-Commit-ID: 5UaVZYneN2b

--HG--
extra : rebase_source : 6a749c9a01390c81e830d035008e86ff2b0bad15
2017-08-17 17:23:27 +12:00
Karl Tomlinson
1225650a7f bug 1391482 add a method to create an AudioBuffer from AudioChunk data r=padenot
MozReview-Commit-ID: GkJJo6UW4gl

--HG--
extra : rebase_source : 457919cd769d20f193c64140f7b63fb08e715949
2017-08-16 17:45:48 +12:00
Karl Tomlinson
1cd9d48de3 bug 1391482 move AudioBuffer parameter checking to constructor r=padenot
for sharing with a new factory method in a future patch.

MozReview-Commit-ID: LAtbRVttMh8

--HG--
extra : rebase_source : 72283c49fd713d0aef3add0eae344da0733149a1
2017-08-16 17:38:43 +12:00
Karl Tomlinson
580aed4daa bug 1391482 accept int16_t sample buffers in ConvolverNode r=padenot
MozReview-Commit-ID: LvYkiSvhQdP

--HG--
extra : rebase_source : 755b0c959a03f9b20464c34d6a12e372065614b1
2017-08-10 19:55:36 +12:00
Karl Tomlinson
3c10f14a38 bug 1391482 accept int16_t sample buffers in AudioBufferSourceNode r=padenot
MozReview-Commit-ID: I2gCBQdfOEx

--HG--
extra : rebase_source : 7cc53b8dced86fb3a8b380dbe14bd164b6904796
2017-08-10 17:26:40 +12:00
Karl Tomlinson
c15b836577 bug 1391482 remove now-unused ThreadSharedFloatArrayBufferList SetBuffer() variant r=padenot
MozReview-Commit-ID: 184qw9JUONH

--HG--
extra : rebase_source : 38c0e3765770fd08b94a22e144f604e416661eef
2017-08-10 17:49:38 +12:00
Karl Tomlinson
da0bcd087f bug 1391482 use AudioChunk to store and pass PeriodicWave data to engine r=padenot
This is mostly to be consistent with other nodes so that only a single
SetBuffer method is required to pass buffers from nodes to engines.

AudioChunk also has the advantage of ThreadSharedFloatArrayBufferList that it
keeps a record of the length of the buffer in the same struct, and so this is
passed to the engine with the buffer.

SharedBuffer needs one fewer allocation than ThreadSharedFloatArrayBufferList,
but this is not a hot path.

MozReview-Commit-ID: JsLcuFdFvRO

--HG--
extra : rebase_source : 00ffc0a357ec248641063e77dbe63e8d2a4a0911
2017-08-10 20:26:20 +12:00
Karl Tomlinson
1db308ff4d bug 1391482 keep custom oscillator data buffer on graph thread only long enough to initialize the PeriodicWave r=padenot
MozReview-Commit-ID: 6gdBZDruCc6

--HG--
extra : rebase_source : 9deb1f929b1cbba507be21b16a9e95f1a18d9bba
2017-08-10 21:03:59 +12:00
Karl Tomlinson
aa8c1ad575 bug 1391482 add a fallible SharedBuffer::Create() r=padenot
MozReview-Commit-ID: HZGjSKnV8I2

--HG--
extra : rebase_source : e12b4912392803b37c8ae7648cb1e0e76b2f78d8
2017-08-11 10:57:04 +12:00
Karl Tomlinson
a372b3e655 bug 1391482 generalize shared channel data from AudioBuffer as AudioChunk r=padenot
Although the AudioChunk buffer is still always a
ThreadSharedFloatArrayBufferList, 16 bit buffers will be permitted in a future
patch.

MozReview-Commit-ID: FPZ6VcX4C1q

--HG--
extra : rebase_source : dc0d82d5495383ab2aaca37a09d282dd3c747e83
2017-08-09 16:39:40 +12:00
Karl Tomlinson
18eaddeade bug 1391482 add a mechanism to pass an AudioChunk from node to engine r=padenot
MozReview-Commit-ID: Akfy9xDKzXg

--HG--
extra : rebase_source : 97830e6e2b134c049439c3a0ed5f2684df1f7ee5
2017-08-01 20:04:56 +12:00
Karl Tomlinson
964d9e565d bug 1391482 use AudioChunk to generalize AudioBuffer shared channel storage r=padenot
Although the AudioChunk buffer is still always a
ThreadSharedFloatArrayBufferList, buffers with 16-bit data will be permitted
in a future patch.

MozReview-Commit-ID: FEGKMiQOCpR

--HG--
extra : rebase_source : 29680252fac272feda26ba65dd1ca86e0e9d5883
2017-08-03 17:58:23 +12:00
Hiroyuki Ikezoe
579cdaa0ab Bug 1383985 - Enable test_mutationobserver_anonymous.html on stylo. r=xidorn
MozReview-Commit-ID: 1qDvqysTJGo

--HG--
extra : rebase_source : 312042d66fb493871ea24a5ec7aaed4e1d2c26fb
2017-08-28 17:02:52 +09:00
Masatoshi Kimura
5a4b2974a8 Bug 1098412 - Remove and update tests that use the legacy Iterator constructor. r=luke
MozReview-Commit-ID: G7q3ARzOYFf

--HG--
extra : rebase_source : e96f0a41d196056d1f226cab7dd2550eb5f16969
2017-08-24 22:45:53 +09:00
Tom Ritter
ae930caa79 Bug 1393535 Fix unused variable warnings in dom/ r=cpearce
MozReview-Commit-ID: 1Ql20AHx1Jz

--HG--
extra : rebase_source : 21105b4fc70953ecdccd4c1e7fe9c9d5564795c4
2017-08-24 11:52:36 -05:00
Jean-Yves Avenard
5b2fae07c7 Bug 1332234 - P1. Add support for AMD's VP9 hardware decoder. r=cpearce
This enables VP9 decoding on Windows with AMD graphic adapters supporting it.
The AMD VP9 MFT only works 720 and more pixels high.

The system will attempt the following decoding configuration:
1- AMD VP9 MFT
2- Microsoft VP9 MFT (only if DXVA is enabled)
3- FFmpeg ffvp9 software decoder

MozReview-Commit-ID: IP2eHZEQ7Tj

--HG--
extra : rebase_source : 6d193aa8b9d22f8df5778c7e62f66c30e9dc600c
2017-08-04 18:33:20 +02:00
Sebastian Hengst
3549a5a1ac merge mozilla-central to autoland. r=merge a=merge 2017-08-28 17:09:10 +02:00
Sebastian Hengst
9769c22d10 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: AeoHOxZLi6m
2017-08-28 16:53:53 +02:00
Alex Chronopoulos
c9d4805a3f Bug 1378070 - Implement multichannel WebAudio. r=padenot
* * *
[mq]: rebase

MozReview-Commit-ID: KJwH3ZeJn55

--HG--
extra : rebase_source : 0e9866c8dc5ccb98a9654c1e18b0bcef1ef5afa8
2017-08-28 17:16:20 +03:00
Alex Chronopoulos
ec9537b3e4 Bug 1378070 - Update AudioConverter to use destination buffer. r=jya
MozReview-Commit-ID: KCheY0DCjh4

--HG--
extra : rebase_source : 77f289e642df4ca5325bd622d78c6c59924ad0c1
2017-08-28 17:15:46 +03:00
John Lin
bad6535260 Bug 842782 - p2: introduce attributes for orientation lock to video element. r=jwwang,smaug
MozReview-Commit-ID: odq1y9qH1
2017-08-28 18:15:31 +08:00
John Lin
d40baf7687 Bug 842782 - p1: add a pref for fullscreen video orientation lock. r=jwwang
MozReview-Commit-ID: 6x7um7F8omr
2017-08-28 18:13:57 +08:00
Jan de Mooij
ad11155416 Bug 1393790 part 2 - Remove JS_PropertyStub and JS_StrictPropertyStub. r=jorendorff 2017-08-28 10:40:19 +02:00
Jan de Mooij
3e1a11f41d Bug 1393790 part 1 - Remove JS_STUBGETTER and JS_STUBSETTER. r=jorendorff 2017-08-28 10:39:57 +02:00
Ehsan Akhgari
bfb5870d18 Bug 1382923 - Avoid AddRef()ing the History service in the Link constructor; r=smaug 2017-08-28 00:51:26 -04:00
Sebastian Hengst
7668fe8729 Backed out changeset 92092cde72e1 (bug 842782) for eslint failure at toolkit/content/widgets/videocontrols.xml:1261: Unexpected if as the only statement in an else block. (no-lonely-if). r=backout 2017-08-28 10:00:29 +02:00
Sebastian Hengst
3074ff30be Backed out changeset ba812092214c (bug 842782) 2017-08-28 09:59:11 +02:00
JW Wang
b634b53e60 Bug 1393379. P2 - remove MediaResource::SizeOfIncludingThis/SizeOfExcludingThis. r=gerald
MozReview-Commit-ID: MMhVOaSUuX

--HG--
extra : rebase_source : a158bbd9c718212247896e299f6063773ca81d1a
extra : source : ff3aef3a67c67e281aac244206aeb15eccbace29
2017-08-24 17:52:21 +08:00
JW Wang
2c37ac8f7c Bug 1393379. P1 - make MediaDecoder::AddSizeOfResources pure virtual. r=gerald
We will move the implementation to sub-classes which have more details
about how to calculate the resource size.

MozReview-Commit-ID: 7lfiz5GNtPE

--HG--
extra : rebase_source : bf14ef91a6de456d65bee7cb1f53f8e542f55247
extra : source : 22640df9dd3a1491594a82b3d0bd175e46073fa3
2017-08-24 17:35:24 +08:00
John Lin
ae733d5007 Bug 842782 - p2: introduce attributes for orientation lock to video element. r=jwwang,smaug
MozReview-Commit-ID: odq1y9qH1

--HG--
extra : rebase_source : 65daa7bde05ceee01704bb3677c5511c39c20848
2017-08-25 14:23:03 +08:00
John Lin
d3de182650 Bug 842782 - p1: add a pref for fullscreen video orientation lock. r=jwwang
MozReview-Commit-ID: 6x7um7F8omr

--HG--
extra : rebase_source : b7d11f01d19b32ce226814a0d25553d934715264
2017-08-25 14:25:49 +08:00
Andrew Swan
1e8af6f7ac Bug 1393156 Legacy extension test loose ends r=kmag
Change webextensions experiments test to use the shimmed certficiate DB
instead of the extensions.legacy.enabled pref.
In builds that don't honor the extensions.legacy.enabled pref, disable
test_legacy.js since that tests that flipping that preference works properly.
Finally, remove a now doubly-obsolete test of plugins embedded in xpis.

MozReview-Commit-ID: JiRdgCXyjKR

--HG--
extra : rebase_source : f0c7672b0755993bd20f9fc84e242eb76cb949ef
2017-08-26 08:55:20 -07:00
Mantaroh Yoshinaga
c042d7aeea Bug 1366603 - Wait for rAF before waiting the MozAfterPaint in test_deferred_start.html. r=hiro
This test called waitForPaints() after creating an animation, but waitForPaints()
didn't wait for a MozAfterPaint event actually since
DOMWindowUtils.IsMozAfterPaintPending which is checked a MozAfterPaint event has
been queued return false[1]. (i.e. This test didn't wait for a MozAfterPaint)

This is related to bug 1341294. If gecko can receive a MozAfterPaint
corresponded to own paint, waitForPaint() does not need to check for
DOMWindowUtils.IsMozAfterPaintPending.

This patch is a workaround until bug 1341294 is resolved.

[1] http://searchfox.org/mozilla-central/rev/5696c3e525fc8222674eed6a562f5fcbe804c4c7/testing/mochitest/tests/SimpleTest/paint_listener.js#60

MozReview-Commit-ID: 6Rnv8MBP6Se

--HG--
extra : rebase_source : 052f62b01df819961040f6652954e1068f86fc47
2017-08-28 08:01:31 +09:00
Masayuki Nakano
1c17ef6f96 Bug 1393816 - part2: Selection::SetBaseAndExtent() should use mCachedRange if it's available r=smaug
Similar to Selection::Collapse(), if mCachedRange is available,
Selection::SetBaseAndExtent() should use it rather than creating new nsRange
instance.

Then, it can reduce the allocation cost and may reduce some other cost, e.g.,
adding it to mutation observer.

MozReview-Commit-ID: InQQusw2KMc

--HG--
extra : rebase_source : 967f0d4ad2b7bc706e417af547bbbb21e5f54306
2017-08-26 00:12:38 +09:00
Masayuki Nakano
5c2c570f9b Bug 1393816 - part1: Cache a range until new range is created in Selection r=smaug
When setting value of <input type="text">, nsTextEditorState removes all
ranges of normal selection first.  Then, TextEditor sets the value.  Finally,
TextEditor collapses the selection at the end of the text.

In bug 1386471, we got that there are some problems to remove the call of
Selection::RemoveAllRanges() in nsTextEditorState.  Therefore, we need another
approach to improve Selection::Collapse().

The approach of this patch is, when removing all ranges from normal selection,
Selection can cache an nsRange instance if there is an instance which is not
referenced from other than the Selection (i.e., it'll be removed when
Selection::Clear() is called).  Then, Selection::Collapse() can reuse it.  With
this fix, Selection::Collapse() can reduce allocation cost and may reduce some
other cost like adding it to mutation observer.

However, keeping nsRange instance may cause increasing mutation observer's cost
since nsRange will be adjusted its start node/offset and end node/offset with
mutation observer to guarantee that the range is always valid.  So, we can
cache such range only when the caller (or its callee) will set selection range
later.  Therefore, this patch adds Selection::RemoveAllRangesTemporarily()
and make only nsTextEditorState::SetValue() and
ContentEventHandler::OnSelectionEvent() use it.

MozReview-Commit-ID: FjWrbz4S1ld

--HG--
extra : rebase_source : 83677640525e0b1a84bdd7fce63ff4704b9cc22b
2017-08-25 19:21:39 +09:00
JW Wang
470f887d6d Bug 1393369. P4 - remove MediaSourceResource::GetCurrentPrincipal(). r=gerald
MozReview-Commit-ID: J96wBGLBQ45

--HG--
extra : rebase_source : 269edf22f54b0a81331c7b3c8b264a350cac1a91
extra : source : daddcd406a1f61cae957ba941247d602a1f7d3bf
2017-08-24 17:13:03 +08:00
JW Wang
17c492ee07 Bug 1393369. P3 - remove unused code. r=gerald
MozReview-Commit-ID: IFxx8AEdDju

--HG--
extra : rebase_source : 83be99a6fd1514d1ffff469418cde3a2ac38b935
extra : source : b13cdacfa389d5ef6b349e1e030e2bdff2b92f98
2017-08-24 17:04:59 +08:00
JW Wang
db3e1718f7 Bug 1393369. P2 - remove MediaResource::GetCurrentPrincipal(). r=gerald
MozReview-Commit-ID: 9as5ya2xXdL

--HG--
extra : rebase_source : 7141cec4f3e9c38253b85e71d3b5efe5a5d7dddd
extra : source : 9d9f1de4db95a353040f7c7c484e7d9d79f275fa
2017-08-24 17:01:08 +08:00