Commit Graph

45466 Commits

Author SHA1 Message Date
Jean-Yves Avenard
b2545f9af0 Bug 1230054: Remove unused WebMReader. r=kinetik 2015-12-04 15:23:43 +11:00
Jean-Yves Avenard
d6b653ae10 Bug 1229605: [MSE] Allow webm/audio independently of video. r=kentuckyfriedtakahe
This adds a media.mediasource.webm.audio.enabled preference (true by default) to disable opus or vorbis audio in webm mediasource.
2015-12-04 14:43:47 +11:00
Jean-Yves Avenard
72d555ab40 Bug 1191833: P1. Properly check webm mimetype against codec type. r=cpearce
Also move the logic inside WebMDecoder, this continue on with the logic used by MP4Decoder
2015-12-04 14:43:46 +11:00
Chris Peterson
46bb7c80dd Bug 1228947 - Replace mfbt/Constants.h with math.h. r=roc
--HG--
extra : rebase_source : 4ab2c4a917ea90055e48bd6adcb53904f2266ee0
2015-11-27 20:49:55 -08:00
JW Wang
84171dfe8c Bug 1230004. Part 2 - have MDSM::BeginShutdown return a promise and remove MDSM::mDecoder. r=cpearce. 2015-12-03 15:59:44 +08:00
JW Wang
a62c25461b Bug 1230004. Part 1 - cache data in MDSM so it won't need to ask MediaDecoder. r=cpearce. 2015-12-03 15:59:30 +08:00
Matt Woodrow
6ef854d267 Bug 1230338 - Record video frames dropped by the compositor, or while flushing during skip-to-keyframe. r=jya 2015-12-04 13:33:21 +13:00
Wes Kocher
caf5976449 Merge m-c to inbound, a=merge
--HG--
extra : commitid : EpefkAb2K9L
2015-12-03 16:11:01 -08:00
Wes Kocher
c40454e094 Merge fx-team to central, a=merge
--HG--
extra : commitid : 4Zjf9SresVg
2015-12-03 16:07:50 -08:00
Andrew McCreight
ba894c4313 Bug 1230110 - HTMLImageElement should call its superclass's DestroyContent(). r=smaug
--HG--
extra : commitid : 6PKR4a9fssr
extra : source : b9d8d05aa4ee1cca71192d4d6c00900e8d1169b6
2015-12-03 14:03:12 -08:00
Wes Kocher
bfbadfd96d Backed out 2 changesets (bug 1221992) for windows debug assertions in browser_perf-categories-js-calltree.js
Backed out changeset bcd90e591038 (bug 1221992)
Backed out changeset 6affaa386b9b (bug 1221992)

--HG--
extra : commitid : 4w08gUrbqQr
2015-12-03 15:56:59 -08:00
Jeff Gilbert
26dafe015c Bug 1228711 - Cubemap images must be square. - r=benwa 2015-12-03 15:38:06 -08:00
Wes Kocher
286a265f77 Backed out 2 changesets (bug 1230118, bug 1230110) for windows debug assertions in browser_perf-categories-js-calltree.js
Backed out changeset a9ce85f77af9 (bug 1230118)
Backed out changeset b9d8d05aa4ee (bug 1230110)

--HG--
extra : commitid : 9wnrd9NnBlp
2015-12-03 15:38:04 -08:00
Brian Birtles
3cd1347f35 Bug 1226118 part 15 - Remove no-longer-necessary delays from test_running_on_compositor.html; r=hiro
Since part 3 in this patch series updated the way we clear the "running on
compositor" flag, we can update these tests so they no longer wait for this
flag (see bug 1226118 comment 21).
2015-12-04 08:34:18 +09:00
Brian Birtles
f82ce867cf Bug 1226118 part 12b - Rename CommonAnimationManager::GetAnimations to GetAnimationCollection; r=dholbert
This is to align with the existing GetAnimationCollection method that takes
a frame. Also, by making this name more specific hopefully it will be used less
since we are trying to move as much code as possible over to using EffectSet
instead of AnimationCollection.
2015-12-04 08:34:17 +09:00
Brian Birtles
7806ce3d5d Bug 1226118 part 8 - Add EffectCompositor::GetAnimationsForCompositor that uses the EffectSet rather than AnimationCollection; r=dholbert
This added method should behave in an equivalent manner to the existing
CommonAnimationManager::GetAnimationsForCompositor except for the following
differences:

* It uses the EffectSet attached to a target element rather than one of the
  AnimationCollection object on the owning element.

* It returns an array of Animation objects consisting of only those Animations
  that actually have the specified property as opposed to the
  AnimationCollection consisting of *all* CSS animations or *all* CSS
  transitions for the element regardless of whether they run on the compositor
  or not.

It may not be obvious why these two methods otherwise behave in an equivalent
fashion so the following explains how the existing code is mirrored in the new
method.

The existing code is as follows:

> AnimationCollection*
> CommonAnimationManager::GetAnimationsForCompositor(const nsIFrame* aFrame,
>                                                    nsCSSProperty aProperty)
> {
>   AnimationCollection* collection = GetAnimationCollection(aFrame);
>   if (!collection ||
>       !collection->HasCurrentAnimationOfProperty(aProperty) ||
>       !collection->CanPerformOnCompositorThread(aFrame)) {
>     return nullptr;
>   }
>
>   // This animation can be done on the compositor.
>   return collection;
> }

The new EffectCompositor::GetAnimationsForCompositor begins with two checks
performed at the beginning of CanPerformOnCompositorThread: the checks for
whether async animations are enabled or not and whether the frame has refused
async animations since these are cheap and it makes sense to check them first.

The next part of EffectCompositor::GetAnimationsForCompositor checks if there is
an EffectSet associated with the frame. This is equivalent to the check whether
|collection| is null or not above.

Following, we iterate through the effects in the EffectSet.

We first check if each effect is playing or not. In the above code,
HasCurrentAnimationOfProperty only checks if the effect is *current* or not.
However, CanPerformOnCompositorThread will only return true if it finds an
animation that can run on the compositor that is *playing*. Since playing is
a strict subset of current we only need to perform the more restrictive test.

Next we check if the effect should block running other animations on the
compositor. This is equivalent to the remainder of CanPerformOnCompositorThread.
Note that the order is important here. Only playing animations should block
other animations from running on the compositor. Furthermore, this needs to
happen before the following step since animations of property other than
|aProperty| can still block animations from running on the compositor.

Finally, we check if the effect has an animation of |aProperty|. This is
equivalent to the remainder of HasCurrentAnimationOfProperty.

If all these checks succeed, we add the effect's animation to the result to
return.
2015-12-04 08:34:12 +09:00
Brian Birtles
40c6c207b0 Bug 1226118 part 7 - Rename and rework KeyframeEffectReadOnly::CanAnimatePropertyOnCompositor to ShouldBlockCompositorAnimations; r=hiro
KeyframeEffectReadOnly::CanAnimatePropertyOnCompositor has a comment that says
it, "Returns true |aProperty| can be run on compositor for |aFrame|" but it
does nothing of the sort.

What it *does* do is check answer the question, "If there happened to be an
animation of |aProperty| on |aFrame|, should we still run animations on the
compositor for this element?".

This patch renames the method accordingly and moves the step where we iterate
over a given effect's animated properties from
AnimationCollection::CanPerformOnCompositor to inside this method, making this
method a class method rather than a static method at the same time.

As noted in the expanded comment, the approach of blocking opacity animations
in these situations seems unnecessary but for now this patch just preserves the
existing behavior.
2015-12-04 08:32:53 +09:00
Brian Birtles
fd98de719c Bug 1226118 part 5 - Move LogAsyncAnimationFailure to AnimationUtils; r=dholbert
This patch also moves AnimationUtils out of the dom namespace since it seems
unnecessary. We typically only put actual DOM interfaces in the dom namespace.
2015-12-04 08:32:53 +09:00
Brian Birtles
a92b5ec6ab Bug 1226118 part 3 - Use EffectSet in CommonAnimationManager::ClearIsRunningOnCompositor; r=hiro, r=dholbert 2015-12-04 08:32:53 +09:00
Brian Birtles
5ea3caedb7 Bug 1226118 part 1 - Add EffectSet::GetEffectSet(const nsIFrame*); r=dholbert 2015-12-04 08:32:52 +09:00
Blake Kaplan
0bb2b116eb Bug 1116478 - Open web content handlers in the proper tab in e10s. r=billm
--HG--
extra : rebase_source : 9ce04d3a3b30ecdcef4c4781639f0e5ea22d8b22
2015-12-03 15:04:28 -08:00
Chris Pearce
ff1b756ddd Bug 1230026 - Add test for 'webm' initDataType for ClearKey initData. r=gerald
--HG--
rename : dom/media/test/test_eme_key_ids_initdata.html => dom/media/test/test_eme_initDataTypes.html
2015-12-04 07:24:32 +13:00
Chris Pearce
9654972991 Bug 1230026 - Support 'webm' initDataType format for MP4 ClearKey initData. r=gerald 2015-12-04 07:24:11 +13:00
Olli Pettay
c1987714e7 Bug 1229760 - CustomElement registry keeps strong reference to the unresolved elements, r=wchen 2015-12-03 18:21:04 +02:00
Mark Capella
0a752a77f3 Bug 1215959 - (GeckoCarets2) - Flip on by default in nightly, r=snorp 2015-12-03 13:33:15 -05:00
Andrew McCreight
5e1c30c848 Bug 1230110 - HTMLImageElement should call its superclass's DestroyContent(). r=smaug
--HG--
extra : commitid : L6Z2VdVTfXK
extra : rebase_source : fad68a186e8124cab5beffa34e9db960fe5d2d38
2015-12-03 14:03:12 -08:00
Nicholas Nethercote
5a37352d4a Bug 1229665 - Convert widget clip regions to LayoutDevicePixels. r=botond.
--HG--
extra : rebase_source : 315ac98884f84f3b5d53f156f3e02ddde3a57dbc
2015-12-02 14:32:55 -08:00
Catalin Badea
6c1a994648 Bug 1221992 - Fix test using GetMostRecentWindow from the child process. r=smaug 2015-12-03 23:19:29 +02:00
Catalin Badea
889982d7af Bug 1221992 - Prevent ServiceWorkerClients.OpenWindow from opening tabs in private mode windows. r=smaug 2015-12-03 23:19:29 +02:00
Ralph Giles
7723ca9104 Bug 1228721 - Conditionalize other webvtt navigator access. r=kinetik
Missed this in the previous commit.
2015-12-03 09:32:00 -08:00
Jeff Muizelaar
303885a832 Bug 1207288. Ask ANGLE for the correct output version. r=jgilbert 2015-12-03 14:37:02 -05:00
Jan Beich
814acd7ab8 Bug 1228208 - Make sure ICU flags are prepended before system flags. r=glandium 2015-12-02 09:40:50 +00:00
Carsten "Tomcat" Book
df451fe7b0 merge mozilla-inbound to mozilla-central a=merge 2015-12-03 12:00:42 +01:00
Matthew Noorenberghe
d77a8d39c1 Bug 1216986 - Fix usage of nsIURI.host in password manager and prompt code to support IPv6. r=dolske,liuche,kanru
--HG--
extra : commitid : zwoW6hAPKy
extra : rebase_source : 183b3f29af92860fbe232427e9e8f1cdd7116707
2015-12-02 16:13:18 -08:00
Carsten "Tomcat" Book
5adcabb340 merge mozilla-inbound to mozilla-central a=merge 2015-12-02 15:20:57 +01:00
Carsten "Tomcat" Book
541bf4c5e1 merge fx-team to mozilla-central a=merge 2015-12-02 15:17:31 +01:00
Carsten "Tomcat" Book
8230cd1d11 Backed out changeset fdbc50946db3 (bug 1223297) for test failures
--HG--
extra : rebase_source : 0ca7ee0d62d633bc7462fae75787050e8d6463d5
2015-12-02 11:56:45 +01:00
Carsten "Tomcat" Book
1e57fae9f1 Backed out changeset 720b3adb1df5 (bug 1137681) since this need to be out too on a CLOSED TREE 2015-12-02 11:50:27 +01:00
Nigel Babu
cc17273b85 Backed out changeset 1e400c0266e5 (bug 1224887) for build bustage
ON A CLOSED TREE
2015-12-02 14:51:30 +05:30
JW Wang
e4cbe0c128 Bug 1228939 - 1. add mSeekable to MediaInfo. 2. use MediaEventSource to notify the decoder when the media is not seekable. 3. remove unused code. r=jya. 2015-12-02 15:42:32 +08:00
Ethan Lin
c257b89d86 Bug 1228949 - Fix WebGLBuffer content type when the target is LOCAL_GL_COPY_READ_BUFFER or LOCAL_GL_COPY_WRITE_BUFFER. r=jgilbert 2015-11-30 01:30:00 +01:00
Makoto Kato
0e56a625b2 Bug 1228462 - "PluginQuirks.* uses DOS CRLF". r=jmathies 2015-11-26 17:52:00 +01:00
Alfredo Yang
d0c13c6363 Bug 1224887 - new PlatformDecoderModule based on OpenMax IL. r=jya, sotaro 2015-12-01 06:12:00 +01:00
Alastor Wu
1fe60ea737 Bug 1223297 - Multiple audio channel test. r=baku.
--HG--
extra : transplant_source : R%03%ABL%7C%21%BFt%C7%7EM%E4%9D%0CWON%0E%BDJ
2015-11-18 10:01:14 +08:00
Louis_Chang
9843bbdf08 Bug 1217778 - Ensure sBluetoothGattService is not null before accessing GattInterface in GattManager. r=jocelyn 2015-12-02 09:31:45 +08:00
Wes Kocher
50e8f21d5b Merge inbound to central, a=merge
--HG--
extra : commitid : 9WZlbf1Q29D
2015-12-01 15:43:33 -08:00
Carsten "Tomcat" Book
31b570ce3c Merge mozilla-central to b2g-inbound 2015-12-01 15:28:29 +01:00
Carsten "Tomcat" Book
f3e1aec951 merge mozilla-inbound to mozilla-central a=merge 2015-12-01 15:25:14 +01:00
Carsten "Tomcat" Book
207c64c6c1 Backed out changeset f4348b2f5c5f (bug 1223678) for bustage
--HG--
extra : rebase_source : 1e7bf92b54ceff74b6eee2143a2f82434af1e8e3
2015-12-01 15:01:36 +01:00
Mike Conley
9f4da372d6 Bug 1220752 - Fix and enable browser_bug1058164.js for e10s now that bug 918634 has landed. r=mrbkap
This also makes the test more precise since it now checks the order of
the pagehide and pageshow events.

--HG--
extra : commitid : JT7O7nc24wr
extra : rebase_source : 7be6c9154e8b24cbc392f60fe080821b54cc7930
extra : amend_source : c5acbb1c0b89220efa21b20fdc26c2fea6b51e64
2015-11-27 19:01:46 -05:00