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

33193 Коммитов

Автор SHA1 Сообщение Дата
Daosheng Mu 0e6aee236e Bug 1537967 - Skipping running refresh driver and compositing in VR mode. r=mstange,kip
MozReview-Commit-ID: 4L3PygFSFCB

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

--HG--
extra : moz-landing-system : lando
2019-04-12 04:42:28 +00:00
Cosmin Sabou 90efd04259 Merge mozilla-inbound to mozilla-central. a=merge 2019-04-12 06:45:27 +03:00
Jean-Yves Avenard 0842db0075 Bug 1543339 - Add D3D11ShareHandleImage support to GLBlitHelper. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D26877

--HG--
extra : moz-landing-system : lando
2019-04-10 20:54:57 +00:00
Jean-Yves Avenard 51d9f4be53 Bug 1540581 - P18. Move destination texture type choice to the D3D11 texture allocator. r=mattwoodrow
It allows for more readable code, not having to store multiple times different storage type across multiple objects.

Now each class does one task and only deal with a single texture data type.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:39:12 +00:00
Jean-Yves Avenard 896eec30a3 Bug 1540581 - P17. Remove DXGITextureData object. r=nical
Only D3D11TextureData inherits from it and isn't used directly.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:39:08 +00:00
Jean-Yves Avenard 2f98d89d2f Bug 1540581 - P16. Mark allocation helper class as RAII. r=nical
Those classes use raw pointers or references to construction objets. They can only be used while the objects they reference still exist.
While RAII doesn't fully cover this use case, it's close enough. Mark them as such to prevent shooting ourselves in the future.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:39:04 +00:00
Jean-Yves Avenard 06f0f7ca33 Bug 1540581 - P15. Don't have base class methods return child ones. r=nical
Will make it easier to remove the unnecessary DXGITextureData object.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:38:59 +00:00
Jean-Yves Avenard 0ad54344df Bug 1540581 - P13. Properly handle colorspace with D3D11 compositors. r=mattwoodrow
Also fix 10/12 bits images composition with old D3D11 compositor.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:38:55 +00:00
Jean-Yves Avenard 1dc7e8e498 Bug 1540581 - P11. Handle colorspace correctly with D3D11 images. r=mattwoodrow,nical
Differential Revision: https://phabricator.services.mozilla.com/D26466

--HG--
extra : moz-landing-system : lando
2019-04-11 12:38:49 +00:00
Jean-Yves Avenard d91ea6eb87 Bug 1540581 - P9. Add R16G16 type and update of P010/P016 resource update. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D26464

--HG--
extra : moz-landing-system : lando
2019-04-11 12:37:23 +00:00
Jean-Yves Avenard 0545957805 Bug 1540581 - P7. Use Variant instead of Union/Enum. r=kats
It allows for use of default constructor/destructor and leaves no room to incorrectly modify the union members with a wrong type.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:37:06 +00:00
Jean-Yves Avenard 11ac9e9cf8 Bug 1540581 - P6. Tidy some C++ declarations in gfx/. r=gerald,jrmuizel
* Remove redundant virtual keywords
* Mark all destructors of inheriting classes as virtual for clarity
* Mark all classes without virtual destructor as final (exposed errors)
* Make destructor virtual where it needed to be (some were missing)
* Replace empty ({}) code declaration in header with = default
* Remove virtual unused methods

I probably missed some, it quickly became a rabbit hole.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:36:51 +00:00
Jean-Yves Avenard e5f2be092a Bug 1540581 - P5. Add ColorSpace info to MacIOSurface. r=mattwoodrow
It would have been nicer and more logical to use a MacIOSurfaceImage to store the colorspace information, however the data passed around is a IOSurface Id via a SurfaceDescriptorMacIOSurface; the original data structure isn't kept; so we must transit the data at the same time as the IOSurface Id.

Also remove unnecessary test (new operator is infallible).

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:36:31 +00:00
Jean-Yves Avenard 81f031a044 Bug 1540581 - P4. Add ColorSpace/ColorDepth component to NV12 gfx::Effect. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D26057

--HG--
extra : moz-landing-system : lando
2019-04-11 12:36:19 +00:00
Jean-Yves Avenard c2ef872070 Bug 1540581 - P1. Fix NV12 image with OGL compositor. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D26054

--HG--
extra : moz-landing-system : lando
2019-04-11 12:35:41 +00:00
Jean-Yves Avenard 3ae43eb506 Bug 1493898 - P6. Move YUVColorSpace definition in the gfx namespace. r=mattwoodrow.
YUVColorSpace is inseparable from the bit depth as the matrix coefficients to be calculated need the bit depth information.

So let's put the two types together. gfx namespace also makes more sense as that's where we find IntRect, IntSize and other.

The extent of the changes highlight how much similar data structures are duplicated across the code, to the point it's scary.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:41:33 +00:00
Jean-Yves Avenard fd742471ad Bug 1493898 - P4. Add BT2020 YUV->RGB conversion. r=jgilbert
This is used by the basic compositor.
Re-using existing logic, however as with other conversion it only handles limited 8 bits ranges (16-235) and to make things worse is rounded aggressively as the focus is on speed.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 16:57:39 +00:00
Jean-Yves Avenard c6e2001c75 Bug 1493898 - P1. Add preliminary BT2020 colorspace support. r=mattwoodrow
Only active with webrender and AL.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:40:40 +00:00
Lee Salzman 24255a072b Bug 1543744 - use clip bounds when drawing masks with Skia. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D27112

--HG--
extra : moz-landing-system : lando
2019-04-11 19:00:32 +00:00
Alexis Beingessner 57e741babc Bug 1525642 - ensure that w~=1 when assuming a transform is just a translation. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D27163

--HG--
extra : moz-landing-system : lando
2019-04-11 20:52:21 +00:00
Ciure Andrei 6d8c05133f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-11 19:13:48 +03:00
Jonathan Kew 9c39f45719 Bug 723045 - Remove nsUnicodeRange and instead use ICU to look up Unicode blocks. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D25377

--HG--
extra : moz-landing-system : lando
2019-04-10 21:43:22 +00:00
Hiroyuki Ikezoe d239072cac Bug 1373832 - Deflate the snapport by scroll-padding and adjust the snap positions by the padding value. r=botond
https://drafts.csswg.org/css-scroll-snap-1/#scroll-padding

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:21:48 +00:00
Hiroyuki Ikezoe fdc43c56d5 Bug 1373835 - Make positions in the range that the element covers the snapport valid snap positions. r=botond
https://drafts.csswg.org/css-scroll-snap-1/#snap-overflow

Depends on D21631

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:21:11 +00:00
Hiroyuki Ikezoe 9497022bc3 Bug 1373835 - Implement scroll-snap-align. r=botond,jfkthame
https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align

The main logic here is basically same as the old scroll snap implementation,
just iterating over all descendant elements in the scroll container and collect
snap positions.  The differences are;

 1) the snap positions are specified based on descendant elements instead of
    points
 2) the snap positions are able to be specified by `block` or `inline` keywords
    so that we also need to care the element flow.
    more test cases for this are coming in the next commit
 3) the target rect is calculated by nsLayoutUtils::TransformFrameRectToAncestor
    which means transform is already taken account into it (we have a bug for
    the old scroll snap, it's bug 1218745)
    some of web platform tests will be added in a subsequent commit

Some of test cases in overflowing-snap-areas.html that accidentally have
passed start failing with this change, all of them will be passed with
subsequent changes in these commit series.

Depends on D21627

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:20:36 +00:00
Hiroyuki Ikezoe 19102cb3b9 Bug 1312163 - Rename ScrollSnapType to ScrollSnapStrictness. r=emilio
The scroll snap strictness is defined in the new spec [1], and the structure
is the exactly same as the old scroll snap type structure.

[1] https://drafts.csswg.org/css-scroll-snap-1/#snap-strictness

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:19:13 +00:00
Dorel Luca d285466535 Backed out changeset 553d7f3d8eed (bug 1537967) for Marionette failures in testing/firefox-ui/tests/functional/security/test_mixed_content_page.py 2019-04-11 06:31:36 +03:00
Daosheng Mu 10b30705e6 Bug 1537967 - Skipping running refresh driver and compositing in VR mode. r=mstange,kip
MozReview-Commit-ID: 4L3PygFSFCB

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

--HG--
extra : moz-landing-system : lando
2019-04-10 19:44:18 +00:00
Kartikaya Gupta 1535d36477 Bug 1541644 - Allow immediate handoff if APZC's displacement is not a user visible amount. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D26925

--HG--
extra : moz-landing-system : lando
2019-04-10 20:48:29 +00:00
Kartikaya Gupta 94818bc0da Bug 1541644 - Add some more logging statements. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D26924

--HG--
extra : moz-landing-system : lando
2019-04-10 20:47:14 +00:00
Daniel Varga bf215dbbd8 Merge mozilla-central to autoland. a=merge on a CLOSED TREE
--HG--
extra : rebase_source : 33d0709730d68206491b4facb0645c798ff943e3
2019-04-11 00:59:25 +03:00
Daniel Varga d0d4b7058d Merge mozilla-inbound to mozilla-central. a=merge 2019-04-11 00:54:55 +03:00
Coroiu Cristina c9dbcb529a Backed out changeset 00e627c92d9d (bug 1542738) for reftest failures at layout/reftests/w3c-css/received/css-writing-modes/table-column-order-slr-007.xht on mac on a CLOSED TREE 2019-04-10 23:59:10 +03:00
Andrew Osmond dc64e9d9b7 Bug 1543217 - Allow qualified Linux machines to get WebRender. r=jrmuizel
Linux machines using Intel graphics with Mesa drivers being at least
18.2.8.0 and not 4k displays should be able to run WebRender well, given
this is a common configuration used for testing already by Mozilla. This
patch allows users meeting said requirements to join the WebRender
experiments on nightly. WebRender will remain disabled by default for
other configurations/devices.

Differential Revision: https://phabricator.services.mozilla.com/D26796
2019-04-10 14:58:00 -04:00
Coroiu Cristina 02079beb91 Backed out changeset 34e912d9305a (bug 1543217) chrome failures at build/src/gfx/config/gfxFeature.cpp 2019-04-10 20:31:00 +03:00
Andrew Osmond 1cdceb7b22 Bug 1543217 - Allow qualified Linux machines to get WebRender. r=jrmuizel
Linux machines using Intel graphics with Mesa drivers being at least
18.2.8.0 and not 4k displays should be able to run WebRender well, given
this is a common configuration used for testing already by Mozilla. This
patch allows users meeting said requirements to join the WebRender
experiments on nightly. WebRender will remain disabled by default for
other configurations/devices.

Differential Revision: https://phabricator.services.mozilla.com/D26796
2019-04-10 11:12:17 -04:00
Bogdan Tara aebf58da50 Backed out changeset 68df166b4d9e (bug 1541350) for RGBX corner pixel assertion failures CLOSED TREE 2019-04-10 18:51:25 +03:00
Lee Salzman 9711dac5a1 Bug 1541350 - optimize SkBlitRow::Color32 for SSE2. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D26346

--HG--
extra : moz-landing-system : lando
2019-04-10 14:23:36 +00:00
Matt Woodrow 7c9ef067b7 Bug 1538969 - Report nsDisplayVideo as being opaque when possible so that we can occlude content behind it. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D25189

--HG--
extra : moz-landing-system : lando
2019-04-10 08:08:26 +00:00
Matt Woodrow 75814e01be Bug 1538969 - Handle non-integer transforms when doing occlusions in PostProcessLayers. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D25186

--HG--
extra : moz-landing-system : lando
2019-04-10 08:08:24 +00:00
Matt Woodrow 5afd2f3dd1 Bug 1538969 - Report an opaque surface format for AndroidSurfaceTextureData when it's being used for an opaque video. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D25185

--HG--
extra : moz-landing-system : lando
2019-04-10 08:08:22 +00:00
Matt Woodrow eef41e7c01 Bug 1535159 - Apply snapping to mask Layer transforms like we do for other Layer types. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D26851

--HG--
extra : moz-landing-system : lando
2019-04-10 05:13:26 +00:00
Daniel Varga f545ba8c57 Merge mozilla-central to mozilla-inbound. a=merge 2019-04-11 07:28:57 +03:00
Lee Salzman edad5dd2c0 Bug 1542738 - disable Mac contrast adjustment in Skia. r=cpeterson
Differential Revision: https://phabricator.services.mozilla.com/D26911
2019-04-10 10:13:08 -04:00
Kartikaya Gupta 9e7fc1b98e Bug 1543224 - Don't fling-accelerate a zero velocity to a nonzero velocity. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D26799

--HG--
extra : moz-landing-system : lando
2019-04-10 18:59:07 +00:00
Kartikaya Gupta 22cffe9c10 Bug 1526928 - Don't trigger the testDriver continuation on a mousemove we didn't synthesize. r=botond
We seem to get a spurious mousemove event generated after the mousedown
from somewhere in Gecko. This causes us to trigger the testDriver
continuation an extra time right at the start of the drag, which causes
the test to end before it's supposed to. This patch makes it so we drop
the spurious mousemove.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 18:41:12 +00:00
Kartikaya Gupta 7364da9f33 Bug 1526928 - Override window.dump to report the subtest; also add some extra dumps. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D26828

--HG--
extra : moz-landing-system : lando
2019-04-10 18:40:18 +00:00
Lee Salzman deea4dfb09 Bug 1542738 - disable Mac contrast adjustment in Skia. r=cpeterson
Differential Revision: https://phabricator.services.mozilla.com/D26911

--HG--
extra : moz-landing-system : lando
2019-04-10 17:11:34 +00:00
Jamie Nicol 3970c266f2 Bug 1532731 - Handle 3D transformed ancestors when calculating display port transform. r=mattwoodrow
ClientTiledPaintedLayer::GetTransformToAncestorsParentLayer calculates
the transform from the layer to its display port ancestor's
parent. This transform is then applied to the calculated display
port.

However, if the display port ancestor participates in a preserve-3d
context then the scroll offset will not be included in the that
layer's transform, it will instead be on the root layer of the
preserve-3d context. This was causing the critical display port to
remain still as the contents of a perspective transform were scrolled,
resulting in content being permanently painted in low-precision as the
page was scrolled down.

Instead, if the display port ancestor participates in a 3d context, we
must find the root of that 3d context then calculate the transform to
*that* layer's parent.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 21:39:02 +00:00
Glenn Watson 2e71f94491 Bug 1542972 - Reduce use of world_content_transform in WR. r=emilio
The way that world content transform is calculated has some
inconsistencies related to transform flattening, compared to
the get_relative_transform implementation.

Reducing usage of this field will make it simpler to take
advantage of the external scroll offset, which is needed for
some of the planned picture caching improvements.

This patch removes the simple uses of world_content_transform,
but there are still a small number of more complicated uses that
need to be handled separately.

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

--HG--
extra : moz-landing-system : lando
2019-04-09 10:40:35 +00:00