Commit Graph

13185 Commits

Author SHA1 Message Date
Kartikaya Gupta
33f7e1f971 Bug 1455718 - Use is instead of ok so we get the actual value of scrollY on failure. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D38100

--HG--
extra : moz-landing-system : lando
2019-07-15 17:56:53 +00:00
Jeff Muizelaar
81db073a18 Bug 1565904. Move the blob metadata from image space to an absolute space. r=nical
This is a follow up to bug 1564655. It removes the offset from ToDeviceSpace
and thus moves item rects into absolute space which is now the same coordinate
space as the recordings are in.

We also adjust item bounds for fallback blobs.

Some additional changes that need happen to:

1. In Moz2DImageRenderer we can reunify the origin because the recording and
the recording metadata return to using the same coordinate space.

2. The calls to PushLayer can return to using the item bounds
which are now in the same coordinate space.

3. This dirty rect which remains in images space is adjusted during merging.

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

--HG--
extra : moz-landing-system : lando
2019-07-15 15:24:54 +00:00
Andreea Pavel
6665820f48 Backed out 3 changesets (bug 1547351) for assertion failures on a CLOSED TREE
Backed out changeset 77ef8e8bc669 (bug 1547351)
Backed out changeset b594f8e47025 (bug 1547351)
Backed out changeset 6e5d426cd313 (bug 1547351)
2019-07-15 17:47:40 +03:00
Alexis Beingessner
81f39dd2b0 Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

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

--HG--
extra : moz-landing-system : lando
2019-07-15 13:18:44 +00:00
Doug Thayer
eb26ea12c2 Bug 1547351 - Factor out RecvEmptyTransaction's core transaction building r=sotaro
This splits out the inner bit of RecvEmptyTransaction to just iterate over
the documents once, rather than iterating over them individually. Originally
I ran into difficulties with this and then left it on the table, but I think
it was enabled by splitting out the epochs in pipeline info by renderroot.

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

--HG--
extra : moz-landing-system : lando
2019-07-15 13:20:31 +00:00
Kartikaya Gupta
460150b36f Bug 1563541 - Force a paint before reading the APZ test data. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37983

--HG--
extra : moz-landing-system : lando
2019-07-15 06:39:09 +00:00
Kartikaya Gupta
21482b7733 Bug 1562351 - Do the scrollbar drag in one shot to avoid intermittent failures. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37981

--HG--
extra : moz-landing-system : lando
2019-07-15 06:44:12 +00:00
Jeff Muizelaar
00f87f386d Bug 1564655. blob: Make the recording use absolute coordinates. r=nical
Currently items are painted with a context that has a transform of
-mLayerBounds.TopLeft().  This means that if TopLeft() changes the commands
will be in the wrong place because the -TopLeft() offset is baked into the
recording.

I don't think we've ever needed to support painting without this transformed
baked in so there were some infrastructure changes that needed to be made to
make this possible. Most of the problems come from the use of
gfxContext::GetClipExtents which expose the bounds of the underlying surface.
The biggest of these was fixed by the CreateClippedDrawTarget rewrite. The rest
should be handled by ensuring that the DrawTarget has bounds that are at least
as big as the union of the individual item bounds. i.e. GetClipExtents should
never intersect with bounds of the item.

This change has a couple of parts:

1. Store mLayerBounds.TopLeft() in the recording so that it will be subtracted
during replay

2. Use mLayerBounds as the Rect of the RecordingDrawTarget

3. Don't include mLayerBounds.TopLeft() in the transform during recording.

4. Adjust the dirty rect by recordingOrigin before we use it as a clip so that
it stays in the right place.

5. In PaintContainerItem the bounds parameter of PushLayer is in device space
so we need to account for the shift in the location of device space in the
DrawTargetRecording.

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

--HG--
extra : moz-landing-system : lando
2019-07-14 00:02:03 +00:00
Jeff Muizelaar
81aac9064d Bug 1563770. Always include a visible rect with blob images. r=nical
I suspect we may change things more in the future as we blob's size
just be the visible rect but this is an incremental step in the right
direction.

It also includes some changes to make sure that we always update our
tiles appropriately.

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

--HG--
extra : moz-landing-system : lando
2019-07-13 19:07:05 +00:00
Kartikaya Gupta
99d5d84df8 Bug 1560312 - Run fission tests without WR as well. r=botond
This also disables the test on Windows 7 because the newly enabled subtests
fail intermittently there. We don't care so much about Windows 7 these days,
and I don't have a local setup to reproduce it, so I didn't investigate the
failure.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 17:13:04 +00:00
Jeff Muizelaar
c0299a4309 Bug 1563775. Include the recording origin in the stream. r=nical
This will let us do the subtraction of the recording origin during
playback instead of during recording.

It will also let us merge recordings that have different origins.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 18:20:29 +00:00
Mihai Alexandru Michis
fb4bad51c9 Backed out 2 changesets (bug 1547351) for causing bustages in nsTArray.h CLOSED TREE
Backed out changeset 46c9b479034f (bug 1547351)
Backed out changeset 4689b2870416 (bug 1547351)
2019-07-12 17:37:24 +03:00
Alexis Beingessner
6126cdbed2 Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

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

--HG--
extra : moz-landing-system : lando
2019-07-12 14:14:22 +00:00
Doug Thayer
ea4cbb8501 Bug 1547351 - Factor out RecvEmptyTransaction's core transaction building r=sotaro
This splits out the inner bit of RecvEmptyTransaction to just iterate over
the documents once, rather than iterating over them individually. Originally
I ran into difficulties with this and then left it on the table, but I think
it was enabled by splitting out the epochs in pipeline info by renderroot.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 14:14:22 +00:00
Daniel Varga
883bfd385e Merge mozilla-inbound to mozilla-central. a=merge 2019-07-12 12:58:03 +03:00
Gurzau Raul
09c2a7cb24 Backed out 2 changesets (bug 1547351) for build bustages at WebRenderBridgeParent.cpp on a CLOSED TREE.
Backed out changeset b294575c279c (bug 1547351)
Backed out changeset 69260373f95c (bug 1547351)
2019-07-12 06:47:35 +03:00
Alexis Beingessner
7d0ec2c7ed Bug 1547351 - Automatically set content process render root r=kats
This implements the idea of automatically setting a content proc's
render root based on the render root enclosing the iframe that
points to it. There was a bit of cleanup in here that was a bit
tricky to extract from the core patch revolving around how we
use the Api(...) helper. This was to avoid the situation where
we use the Api(...) helper before our render root is initialized,
when we don't actually have to. I.e., when we just want the root
WebRenderAPI in all cases.

An alternative to this approach could be to fully built out the
WebRender transactions and just queue those up to be sent. However,
transaction building has various side effects which are committed
before the transaction is actually sent, so we would have to build
out some scheme for deferring those as well. This seemed simpler.

Patch primarily written by :dthayer

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

--HG--
extra : moz-landing-system : lando
2019-07-12 03:19:28 +00:00
Doug Thayer
b4d356d721 Bug 1547351 - Factor out RecvEmptyTransaction's core transaction building r=sotaro
This splits out the inner bit of RecvEmptyTransaction to just iterate over
the documents once, rather than iterating over them individually. Originally
I ran into difficulties with this and then left it on the table, but I think
it was enabled by splitting out the epochs in pipeline info by renderroot.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 03:19:28 +00:00
Matt Woodrow
17a41fa774 Bug 1562616 - Don't fail to create a GPUVideoTextureHost if the dependent texture isn't available, since that crashes the compositor. r=sotaro
Depends on D37781

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

--HG--
extra : moz-landing-system : lando
2019-07-12 00:39:49 +00:00
Csoregi Natalia
b798889d4a Backed out changeset 5c4b8d62324c (bug 1563775) for reftest crashes. a=backout 2019-07-12 01:17:41 +03:00
Csoregi Natalia
20e91a0890 Backed out changeset 5c88b35cc6f5 (bug 1563770) for causing bug 1565231. a=backout 2019-07-11 23:14:01 +03:00
Jeff Muizelaar
e146f6712d Bug 1563775. Include the recording origin in the stream. r=nical a=reland
This will let us do the subtraction of the recording origin during
playback instead of during recording.

It will also let us merge recordings that have different origins.

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

--HG--
extra : source : cb1d78b00e25dd7fcfec86216c7a83c85ce9a982
extra : histedit_source : 68a31189f05998ba3b8a29a624d7ebe37636c4d9
2019-07-10 14:01:34 +00:00
Brindusan Cristian
dd497969eb Merge autoland to mozilla-central. a=merge 2019-07-11 19:20:00 +03:00
Brindusan Cristian
fd86c6d641 Backed out changeset cb1d78b00e25 (bug 1563775) on request from jrmuizel for causing Bug 1565231. a=backout 2019-07-11 17:40:51 +03:00
Cosmin Sabou
60a8cce828 Merge mozilla-central to autoland.
--HG--
rename : gfx/wr/wrench/reftests/filters/filter-flood-ref.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood-ref.yaml
rename : gfx/wr/wrench/reftests/filters/filter-flood.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood.yaml
2019-07-11 07:06:41 +03:00
Cosmin Sabou
4b4656bd47 Merge autoland to mozilla-central. a=merge 2019-07-11 07:02:15 +03:00
Jeff Muizelaar
3e4eb446aa Bug 1563770. Always include a visible rect with blob images. r=nical
I suspect we may change things more in the future as we blob's size
just be the visible rect but this is an incremental step in the right
direction.

It also includes some changes to make sure that we always update our
tiles appropriately.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 02:32:35 +00:00
arthur.iakab
de10ead929 Merge autoland to mozilla-central. a=merge 2019-07-11 00:49:58 +03:00
Kartikaya Gupta
bc26232cbc Bug 1563178 - Properly manage the renderRoot variable during the APZ tree walk. r=botond
The APZ tree walk is recursive but the render root was not being updated when
walking up out of a subtree with a different render root. This changes the
code to use a stack and push/pop the render root for subtrees as we enter
and exit the subtrees as part of the tree walk.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 19:54:08 +00:00
arthur.iakab
07744843fd Backed out changeset 40010303c474 (bug 1500465) on request of christina_ for causing OOM crashes in automation. a=backout 2019-07-10 22:14:41 +03:00
Nicholas Nethercote
fb9371f1b2 Bug 1552126 - Convert layers.componentalpha.enabled to a non-Skip pref. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D37372

--HG--
extra : moz-landing-system : lando
2019-07-10 22:32:43 +00:00
Csoregi Natalia
35c91265f9 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-07-12 02:09:04 +03:00
Jeff Gilbert
a4edc05171 No bug - clang-format dom/canvas, gfx/[gl,layers,webrender_bindings]. 2019-07-11 15:36:44 -07:00
Kartikaya Gupta
3b899521fe Bug 1564919 - Fix and re-enable test_group_touchevents-3.html on GeckoView. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37616

--HG--
extra : moz-landing-system : lando
2019-07-10 19:54:20 +00:00
Kartikaya Gupta
9e9344cf19 Bug 1564947 - Split the WR builder dump index into a RenderRootArray. r=Gankro
Depends on D37589

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

--HG--
extra : moz-landing-system : lando
2019-07-10 17:26:59 +00:00
Barret Rennie
1b8605ad11 Bug 1289211 - Rename InfallibleTArray to nsTArray in gfx/layers/ r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D36954

--HG--
extra : moz-landing-system : lando
2019-07-10 04:47:53 +00:00
Kartikaya Gupta
97683b0ae0 Bug 1564209 - Add more paint/flushing logging for APZ mochitests. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37420

--HG--
extra : moz-landing-system : lando
2019-07-10 15:46:39 +00:00
Christina Cheung
ed9f06efec Bug 1500465 - Measure touch scroll latency and connect to telemetry. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D36246

--HG--
extra : moz-landing-system : lando
2019-07-09 20:55:15 +00:00
Andreea Pavel
0f343bbb5a Backed out changeset 29b1742d1d3b (bug 1563770) WR bustages on a CLOSED TREE 2019-07-10 17:17:01 +03:00
Jeff Muizelaar
3cc5f09011 Bug 1563775. Include the recording origin in the stream. r=nical
This will let us do the subtraction of the recording origin during
playback instead of during recording.

It will also let us merge recordings that have different origins.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 14:01:34 +00:00
Jeff Muizelaar
ea2bfdae47 Bug 1563770. Always include a visible rect with blob images. r=nical
I suspect we may change things more in the future as we blob's size
just be the visible rect but this is an incremental step in the right
direction.

It also includes some changes to make sure that we always update our
tiles appropriately.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 13:55:09 +00:00
Jeff Muizelaar
bcd10ea75c Bug 1561743. DrawTargetRecording IntRect. r=nical
This lets us record at arbitratry offsets. Without it gfxContext::GetClip()
would break because it uses DrawTarget::GetRect() as the initial rect that it
intersects subsequent clips with. We also can't just use a DrawTargetOffset
because that applies a transform to the inner DrawTarget and will impact the
recorded commands.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 13:49:08 +00:00
sotaro
12f2b4cc03 Bug 1564667 - Add error log to TextureHost::Create() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D37519

--HG--
extra : moz-landing-system : lando
2019-07-10 11:12:41 +00:00
Gurzau Raul
1e8901d20d Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-07-09 12:57:07 +03:00
Narcis Beleuzu
aebbfd69ea Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-09 06:53:54 +03:00
Nicholas Nethercote
abf15f999d Bug 1560530 - Split StaticPrefs_accessibility.h from StaticPrefs.h. r=froydnj
This implements the machinery for the splitting of static prefs headers, and
uses it for a single header. #includes are used in such a way that the amount
of boilerplate for each static prefs header file is minimal.

Future patches will split the remaining prefs into more header files.

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

--HG--
rename : modules/libpref/StaticPrefs.h => modules/libpref/StaticPrefsBase.h
rename : modules/libpref/StaticPrefs.h => modules/libpref/init/StaticPrefListBegin.h
extra : moz-landing-system : lando
2019-07-08 23:40:39 +00:00
sotaro
1d84883e80 Bug 1562847 - Disable double buffering with compositor when device reset happens r=nical,bas
When double buffering is enable with compositor, DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL is used without DirectComposition. There are some devices that swap chain with DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL does not work well. In this case, device reset happens very often. To avoid the situation, the double buffering needs to be disabled when device reset happens.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 06:37:45 +00:00
Robert Mader
46c9b36d04 Bug 1563035 - Webrender assumes that an EGL context uses GLES (but it can be GL, too). r=jgilbert 2019-07-03 16:38:00 +03:00
Sebastian Hengst
3134e9d91c Backed out 3 changesets (bug 1541557) for failures in SpecialPowersObserverAPI.js. a=backout CLOSED TREE
Backed out changeset 5b91c8869f42 (bug 1541557)
Backed out changeset a636725ad217 (bug 1541557)
Backed out changeset 7e6657f88b76 (bug 1561150)

--HG--
rename : testing/specialpowers/content/MozillaLogger.js => testing/mochitest/tests/SimpleTest/MozillaLogger.js
rename : testing/specialpowers/content/specialpowersAPI.js => testing/specialpowers/content/SpecialPowersAPI.jsm
rename : testing/specialpowers/content/SpecialPowersObserverAPI.js => testing/specialpowers/content/SpecialPowersAPIParent.jsm
rename : testing/specialpowers/content/specialpowers.js => testing/specialpowers/content/SpecialPowersChild.jsm
rename : testing/specialpowers/content/SpecialPowersObserver.jsm => testing/specialpowers/content/SpecialPowersParent.jsm
extra : amend_source : 158c9e896d32778e71f4fd343227f531d693e511
2019-07-08 14:38:45 +02:00
Sebastian Hengst
515d14403f Backed out 34 changesets (bug 1561150, bug 1541557, bug 1561724, bug 1561999, bug 1558298, bug 1561061, bug 1532795, bug 1560400, bug 1561122) for beta simulation failures (bug 1563905, bug 1564001). a=backout
Backed out changeset 210d6d52e8b0 (bug 1541557)
Backed out changeset 3115db154c45 (bug 1561122)
Backed out changeset b42748878b6e (bug 1561122)
Backed out changeset 266160ca8e9d (bug 1561999)
Backed out changeset 00e935828f41 (bug 1561724)
Backed out changeset 4aaf4882780d (bug 1561150)
Backed out changeset 6644e38a6692 (bug 1561150)
Backed out changeset 72cd895b1613 (bug 1561061)
Backed out changeset f0bac27bad8a (bug 1560400)
Backed out changeset 95da39224eab (bug 1560400)
Backed out changeset 3fe4d4942fd2 (bug 1532795)
Backed out changeset 23e90c6fec2b (bug 1532795)
Backed out changeset a7f093fbef06 (bug 1532795)
Backed out changeset c873f0eb94be (bug 1532795)
Backed out changeset cf359a8ec753 (bug 1532795)
Backed out changeset f2c260cae4b5 (bug 1541557)
Backed out changeset 054a0b7aa81d (bug 1541557)
Backed out changeset f808ec45ff9c (bug 1541557)
Backed out changeset 1025eeef0954 (bug 1541557)
Backed out changeset fe88b250e418 (bug 1541557)
Backed out changeset 6680278c231b (bug 1541557)
Backed out changeset 255735c1ff63 (bug 1541557)
Backed out changeset 51969e1c9c44 (bug 1558298)
Backed out changeset d12525990565 (bug 1558298)
Backed out changeset ef4ec8f0f886 (bug 1558298)
Backed out changeset 45a9599d9641 (bug 1558298)
Backed out changeset 4ccecdba1c34 (bug 1558298)
Backed out changeset 0e91fc9541c2 (bug 1558298)
Backed out changeset edd1cc6badf7 (bug 1558298)
Backed out changeset ba24251835fb (bug 1558298)
Backed out changeset ca88016511bb (bug 1558298)
Backed out changeset c95e6e599836 (bug 1558298)
Backed out changeset 9b1a9d802434 (bug 1558298)
Backed out changeset f859e4de0007 (bug 1558298)

--HG--
rename : testing/mochitest/tests/SimpleTest/MozillaLogger.js => testing/specialpowers/content/MozillaLogger.js
rename : testing/specialpowers/content/SpecialPowersParent.jsm => testing/specialpowers/content/SpecialPowersObserver.jsm
rename : testing/specialpowers/content/SpecialPowersAPIParent.jsm => testing/specialpowers/content/SpecialPowersObserverAPI.js
rename : testing/specialpowers/content/SpecialPowersChild.jsm => testing/specialpowers/content/specialpowers.js
rename : testing/specialpowers/content/SpecialPowersAPI.jsm => testing/specialpowers/content/specialpowersAPI.js
extra : rebase_source : 223d2e49710b016c9973765d402c61692004518e
extra : amend_source : ec773fe82334e6da536bb21e83a994a5f2d03091
2019-07-08 10:37:28 +02:00