Commit Graph

31405 Commits

Author SHA1 Message Date
WR Updater Bot
a42012aeb7 Bug 1504507 - Update webrender to commit b04e28d59a339fe0b155ff4e5edfe2f2edac71f9 (WR PR #3264). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D10887

--HG--
extra : moz-landing-system : lando
2018-11-05 13:13:55 +00:00
Margareta Eliza Balazs
7c848ac763 Merge inbound to mozilla-central. a=merge 2018-11-05 11:48:33 +02:00
Lee Salzman
102969de53 Bug 1503749 - fix SkColor4f to SkColor conversion on big-endian. r=awilfox 2018-11-04 20:37:17 -05:00
Matt Woodrow
394f747fb0 Bug 1503730 - Add visual indicator for when WebRender frames record a CONTENT_FRAME_TIME of >200. r=sotaro
MozReview-Commit-ID: KdRf3WClD6M

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

--HG--
extra : moz-landing-system : lando
2018-11-04 20:35:36 +00:00
WR Updater Bot
48cfce6f6a Bug 1504124 - Re-generate FFI header. r=kats
Depends on D10829

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

--HG--
extra : moz-landing-system : lando
2018-11-04 07:41:36 +00:00
WR Updater Bot
922fb6149b Bug 1504124 - Update webrender to commit f8213800c600c8058556e962dd4f28dbc88a5931 (WR PR 3265). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D10829

--HG--
extra : moz-landing-system : lando
2018-11-04 07:41:18 +00:00
Cosmin Sabou
3b735243ab Merge mozilla-central to mozilla-inbound. a=merge
--HG--
extra : rebase_source : 8505e939743adff1ac28bbacc959496d6e254a44
2018-11-02 23:51:14 +02:00
Jonathan Kew
e598ddf5f8 Bug 1503928 - Optimize FontFamilyList::Contains to avoid allocation and string-copying. r=lsalzman 2018-11-02 21:49:55 +00:00
Botond Ballo
3c7a43472f Bug 1502638 - If the velocity tracker can't compute a velocity, zero out the axis velocity. r=kats
The previous value of the axis velocity could be stale, e.g. in the opposite
direction.

Depends on D10449

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

--HG--
extra : moz-landing-system : lando
2018-11-02 17:55:09 +00:00
Botond Ballo
96b9a55197 Bug 1502638 - Guard against two samples with the same timestamp in AndroidVelocityTracker. r=kats
Depends on D10448

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

--HG--
extra : moz-landing-system : lando
2018-11-02 18:53:16 +00:00
Botond Ballo
0a86d43794 Bug 1502638 - Make use of the position passed in to AndroidVelocityTracker::StartTracking(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D10448

--HG--
extra : moz-landing-system : lando
2018-11-02 17:54:47 +00:00
Ciure Andrei
83010e5db0 Merge inbound to mozilla-central. a=merge 2018-11-02 18:44:43 +02:00
Andrew Osmond
016a11ff73 Bug 1428558 - Part 7. Suppress display list regeneration for animated image updates. r=nical
This patch allows us to intercept invalidation requests for display
items, and avoid regenerating the display list for animated images which
are using SharedSurfacesAnimation.

Differential Revision: https://phabricator.services.mozilla.com/D7504
2018-11-02 09:09:52 -04:00
Andrew Osmond
aa6a92d381 Bug 1428558 - Part 6. Integrate SharedSurfacesAnimation with ImageContainer. r=nical
This patch embeds a SharedSurfacesAnimation object inside an
ImageContainer. This allows any consumers of the container to get the
single shared ImageKey for an animation, despite whatever surfaces may
be held inside the container at a given time.

Differential Revision: https://phabricator.services.mozilla.com/D7503
2018-11-02 09:09:52 -04:00
Andrew Osmond
6a77ac0bd5 Bug 1428558 - Part 5. Add SharedSurfacesAnimation to manage single ImageKey for animated images. r=nical
Differential Revision: https://phabricator.services.mozilla.com/D7502
2018-11-02 09:09:52 -04:00
Andrew Osmond
ed51ad4899 Bug 1428558 - Part 4. Move ImageKeyData/SharedUserData definition to SharedSurfacesChild header. r=nical
This is a non-functional change. It allows objects that build on top of
these helper classes to be exposed outside of SharedSurfacesChild in
future patches in this series.

Differential Revision: https://phabricator.services.mozilla.com/D7501
2018-11-02 09:09:52 -04:00
Andrew Osmond
39a21e7b4b Bug 1428558 - Part 3. Release our reference to an external image ID as soon as possible. r=nical
Animated images will work by changing the external image ID that an
ImageKey points to. We cannot allow the old external image to be
released and potentially unmapped until we have produced a new frame
with the new external image ID. We currently wait until the epoch has
advanced, but in the future when we don't rebuild the scene to animate
an image, the epoch will remain the same. This could cause us to hold
onto no longer used surfaces for much longer than expected. As such, in
this patch we switch to waiting for a FrameRendered notification from
WebRender, which works even if the scene rebuild was avoided.

Differential Revision: https://phabricator.services.mozilla.com/D7500
2018-11-02 09:09:52 -04:00
Andrew Osmond
74a32dcaab Bug 1428558 - Part 2. Improve plumbing to sending resource updates to WebRender. r=nical
Animated images will require scheduling a composite of the frame in
addition to updating the ImageKey/external image ID bindings. It would
be good if this could be done as part of the same IPDL message.
Additionally a page may have many animated images that we update the
frame for at the same time, so these updates should be batched together.
In the event that we needed to regenerate the display list, or produce
an empty transaction, ideally we would just throw these resource updates
in with the rest of the changes. This patch allows us to do all of that
without unnecessarily burdening the caller with tracking extra state.

Differential Revision: https://phabricator.services.mozilla.com/D7499
2018-11-02 09:09:52 -04:00
Andrew Osmond
83a52f66de Bug 1428558 - Part 1. Streamline mappings between an ImageKey and an ExternalImageId for shared surfaces. r=nical
Async animated images need a single ImageKey which can point to any
frame represented by its own external image ID. Additionally a frame
could be referenced again directly (e.g. something shows/uses the first
frame of the animated image).

Before this patch, the ownership between an ImageKey and an external
image ID for a shared surface was not clearly expressed. This resulted
in a special command to release the reference to the external image
separately from deleting the image key.

This patch makes the strong reference to an external image ID and an
ImageKey directly related. Not only does this facilitate multiple
ImageKeys owning the same surface, it also simplifies the ownership
semantics.

Differential Revision: https://phabricator.services.mozilla.com/D7520
2018-11-02 09:09:52 -04:00
Ryan Hunt
2226bcc8a3 Bug 1504220 - Move ScrollableLayerGuid, ViewID, ZoomConstraints from FrameMetrics.h r=botond
This commit attempts to lower the pain of modifying FrameMetrics.h.

It looks like most includes really only want ViewID or
ScrollableLayerGuid, so this commit factors them out into a separate
header. In the process FrameMetrics::ViewID is changed to
ScrollableLayerGuid::ViewID, which personally seems like a better
place for it now that we have RepaintRequest. Unfortunately that
requires a lot of places to be updated.

After this commit there are still a couple of major places that
FrameMetrics is included.
 * nsDisplayList.h
 * nsIScrollableFrame.h
 * Layers.h

Those are going to be more tricky or impossible to fix so they're
not in this commit.

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

--HG--
rename : gfx/layers/FrameMetrics.h => gfx/layers/ScrollableLayerGuid.h
rename : gfx/layers/FrameMetrics.h => gfx/layers/ZoomConstraints.h
extra : rebase_source : 29ac79f91460a181bf7437af5c371207e22858e2
extra : source : c2e70e531075493fc6e374dcec862827f0bc6e77
2018-11-01 15:15:46 -05:00
Ryan Hunt
a49ec48297 Bug 1504220 - Fix poorly written conditional in AsyncPanZoomController. r=botond
I added this condition in the relative scroll update patches, but had
meant to clean it up to be idiomatic C++ and forgot to.

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

--HG--
extra : rebase_source : d30d2d17e1ed983cdbf7b5b473bbb88f09f401d7
extra : source : 474d1775063994d8a22a6c36abbbf9189d91a594
2018-11-01 11:23:45 -05:00
Coroiu Cristina
3507348c1a Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-11-02 07:18:47 +02:00
Miko Mynttinen
5a4357d7c9 Bug 1503046 - Part 2: Introduce HitTestInfo and nsDisplayHitTestInfoItem, and make container items and nsDisplayCompositorHitTestInfo use them r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D10131

--HG--
extra : moz-landing-system : lando
2018-11-02 02:19:03 +00:00
A. Wilcox
9a352187c1 Bug 1503747 - Fix Skia build on big-endian targets. r=lsalzman 2018-11-01 00:46:34 +00:00
Daniel Varga
e86b1d05f8 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : mobile/android/chrome/geckoview/GeckoViewNavigationContent.js => mobile/android/chrome/geckoview/GeckoViewNavigationChild.js
2018-11-02 00:27:53 +02:00
Daniel Varga
77036132f7 Merge autoland to mozilla-central. a=merge 2018-11-02 00:26:12 +02:00
Lee Salzman
16c09d06d2 Bug 1503884 - prefer __builtin_isnan over isnan. r=me 2018-11-01 13:08:02 -04:00
Andi-Bogdan Postelnicu
efed08129a Bug 1498489 - Remove virtual from the declaration of an already virtual function. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10340

--HG--
extra : moz-landing-system : lando
2018-10-31 11:39:45 +00:00
Julian Descottes
d12604b957 Bug 1467712 - Update all test wrappers forwarding to ok;r=Standard8
Depends on D10418

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

--HG--
extra : moz-landing-system : lando
2018-11-01 13:50:29 +00:00
Csoregi Natalia
faba2c8c15 Backed out 4 changesets (bug 1467712) for multiple failures with: Too many arguments passed to ok. CLOSED TREE
Backed out changeset 9ce0ac2b9d71 (bug 1467712)
Backed out changeset 026eb1f6dc6e (bug 1467712)
Backed out changeset 0088a09d869a (bug 1467712)
Backed out changeset 1b19ea76aad6 (bug 1467712)
2018-11-01 15:22:52 +02:00
Daniel Varga
26a7cbde3d Merge mozilla-central to autoland. a=merge 2018-11-02 00:35:10 +02:00
Kartikaya Gupta
b6030f993c Bug 1490393 - Flush a deferred transform before picking up another if the ASR changes. r=mstange
The implementation of deferred transforms did not handle the case where
we ended up deferring multiple transform items in a row with different
ASRs. In this case, when we encounter the nested transform item that we
want to defer, we need to flush the previously-deferred transform item
into a WebRenderLayerScrollData item. This patch accomplishes that, and
includes a mochitest that exercises the relevant behaviour.

Depends on D8110

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

--HG--
extra : moz-landing-system : lando
2018-11-01 21:14:50 +00:00
Kartikaya Gupta
1523c9bf61 Bug 1490393 - Accumulate the deferred transform down the StackingContextHelper chain if the ASR matches. r=mstange
The implementation of deferred transforms did not handle the case where
we ended up deferring multiple transform items before encountering the
APZ-relevant display item. In this case we need to somehow accumulate
all the deferred transforms. This patch accomplishes that, and includes
a mochitest that exercises the relevant behaviour.

Depends on D8109

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

--HG--
extra : moz-landing-system : lando
2018-11-01 21:14:31 +00:00
Kartikaya Gupta
12f8d1ed88 Bug 1490393 - Extract a helper method on StackingContextHelper to get the deferred transform matrix. r=mstange
Depends on D8108

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

--HG--
extra : moz-landing-system : lando
2018-11-01 21:12:29 +00:00
Kartikaya Gupta
2db495b01c Bug 1490393 - Improve documentation regarding the deferred transforms. r=mstange
This code will be expanded a bit in the next few patches, so hopefully
the comments here provide a reasonable explanation of what this code is
about.

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

--HG--
extra : moz-landing-system : lando
2018-11-01 21:12:06 +00:00
WR Updater Bot
e80f4b2db1 Bug 1503847 - Update webrender to commit b658a833f3c7d90808acc53ee3cb7741016ba17e (WR PR 3254). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D10547

--HG--
extra : moz-landing-system : lando
2018-11-01 12:23:05 +00:00
WR Updater Bot
7de30a6a30 Bug 1503846 - Update webrender to commit 95ee087b42f5cd3f4b81bc76a482420a345609af (WR PR 3255). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D10546

--HG--
extra : moz-landing-system : lando
2018-11-01 12:19:52 +00:00
WR Updater Bot
fd9b593246 Bug 1503527 - Update webrender to commit 1928351fe1169c4183df02039b3d541dc36de39e (WR PR 3250). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D10544

--HG--
extra : moz-landing-system : lando
2018-11-01 12:16:44 +00:00
Julian Descottes
11efeff5dc Bug 1467712 - Update all test wrappers forwarding to ok;r=Standard8
Depends on D10418

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

--HG--
extra : moz-landing-system : lando
2018-11-01 11:12:39 +00:00
Margareta Eliza Balazs
86f56d08a0 Merge inbound to mozilla-central. a=merge 2018-11-01 11:12:55 +02:00
Brindusan Cristian
c0b91fe1ee Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-31 23:45:55 +02:00
Jonathan Kingston
873b26107e Bug 1490257 - Add asserts into loadURI where we imply SystemPrincipal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10221

--HG--
extra : moz-landing-system : lando
2018-10-31 18:00:40 +00:00
arthur.iakab
02a09260c5 Merge inbound to mozilla-central a=merge 2018-10-31 18:33:39 +02:00
arthur.iakab
d8d1207f16 Merge autoland to mozilla-central a=merge 2018-10-31 18:32:50 +02:00
arthur.iakab
eac6295c39 Merge inbound to mozilla-central a=merge 2018-10-31 11:44:44 +02:00
Lee Salzman
c2b504684d Bug 1502152 - Skia m71 fuzzing. r=rhunt 2018-10-30 22:17:35 -04:00
Lee Salzman
79907ee5d8 Bug 1502152 - Skia m71 GL glue fixes. r=rhunt 2018-10-30 22:17:35 -04:00
Lee Salzman
e99e2fefa4 Bug 1502152 - Skia m71 PDF fixes. r=rhunt 2018-10-30 22:17:34 -04:00
Lee Salzman
dd9933b890 Bug 1502152 - Skia m71 Moz2D fixes. r=rhunt 2018-10-30 22:17:34 -04:00
Lee Salzman
978391d1a2 Bug 1502152 - Skia m71 mozbuild fixes. r=rhunt 2018-10-30 22:17:34 -04:00