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

33950 Коммитов

Автор SHA1 Сообщение Дата
Cosmin Sabou 2fa3b2ee5b Merge mozilla-inbound to mozilla-central. a=merge 2019-06-26 06:58:03 +03:00
Nicholas Nethercote 9f0b35cc2a Bug 1560837 - Make APZ static prefs follow the naming convention. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D35633

--HG--
extra : rebase_source : e71193756486b148d479e90b324f73dc35756429
2019-06-24 13:57:06 +10:00
arthur.iakab 785bee02e8 Merge mozilla-central to mozilla-inbound 2019-06-26 01:09:31 +03:00
Lee Salzman acf891925e Bug 1559957 - reset Cairo data in WillShutdown before gfxPlatform destructor is called. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D35820

--HG--
extra : moz-landing-system : lando
2019-06-25 17:35:55 +00:00
Dzmitry Malyshau 12edec92c3 Bug 1561021 - Cleanup WR picture caching setup a bit r=gw
Follow-up to D35139 that removes a hundred LOC

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

--HG--
extra : moz-landing-system : lando
2019-06-25 05:30:06 +00:00
Andrew Osmond e6fe246634 Bug 1558883 - Add QCMS transform correctness and performance tests. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D34765
2019-06-25 09:45:56 -04:00
Jeff Muizelaar 2362d4f5cb Bug 1561087. Assert that SVG_WRAPPER is handled elsewhere. r=aosmond
SVG_WRAPPER should be handled by the blob invalidation code. Let's ensure
that's true.

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

--HG--
extra : moz-landing-system : lando
2019-06-25 13:42:26 +00:00
Glenn Watson 632715284a Bug 1560853 - Fix picture cache tiles with fractional origins. r=kvark
Gecko layouts typically produce a picture cache where the origin
of the picture rect is an integer. However, it can occasionally
be a fractional origin.

In these cases, we need to ensure the content origin is floored,
to maintain consistent snapping. When this case occurs, the UV
rect for the tile also needs adjusting, to ensure the exact
1:1 texel:pixel mapping when drawing the tile.

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

--HG--
extra : moz-landing-system : lando
2019-06-25 20:28:16 +00:00
Nicholas Nethercote c24fbafc40 Bug 1560833 - Remove setters for static VarCache prefs. r=froydnj
Static VarCache prefs have setters. These are dangerous because they can
violate the primary invariant of VarCache prefs, which is that the global
variable always matches the pref value in the table.

Fortunately they are only used in tests, and we can use vanilla pref setters
instead, and get rid of the VarCache setters.

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

--HG--
extra : moz-landing-system : lando
2019-06-24 16:43:33 +00:00
Glenn Watson 0e34c42163 Bug 1560499 - Fix subpixel detection for transparent tile caches. r=kvark
Some pages from Gecko produce a display list for the main content
tile cache that has a transparent background. Detect these cases
and disable subpixel text rendering to ensure correct blending.

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

--HG--
extra : moz-landing-system : lando
2019-06-24 17:32:36 +00:00
Daniel Varga 6140a41d69 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
--HG--
extra : rebase_source : eef1bee63608aa3afb3c501b15416ef0bebb99be
2019-06-25 00:42:02 +03:00
Kartikaya Gupta 870cc36ca1 Bug 1519598 - Add a mach command to import PRs from github. r=kvark,ahal
This is a simple mach command that imports a PR from a whitelisted set
of github repositories into the local m-c clone. It works by downloading
the .patch file from github, splitting the different commits, and
applying those commits to the local repo via the `patch` tool and git/hg
commit. It optionally allows filing a bug or providing a bug number, and
specifying a reviewer.

This is one part of a larger workflow that facilitates landing
contributor patches into m-c when those patches are submitted as PRs.
Other components of the workflow (to be added in the future) will make
it easier to actually test and land the patch.

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

--HG--
extra : moz-landing-system : lando
2019-06-24 20:30:32 +00:00
Andrew Osmond 102451b45a Bug 1560600 - Don't allow WebRender for AMD on non-nightly for non-Windows platforms. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D35569
2019-06-24 13:56:04 -04:00
Lee Salzman 0acba27866 Bug 1559810 - disallow Cairo as content/canvas backend. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D35691

--HG--
extra : moz-landing-system : lando
2019-06-24 18:45:16 +00:00
Jeff Muizelaar 0b68652b49 Bug 1539702. Improve CreateClippedDrawTarget API r=jwatt,rhunt
This changes CreateClippedDrawTarget so that instead of taking
a max size and a transform it just takes a user space rect of
the desired bounds.

This change allows the caller to not worry about the computing
a max size based on the current clip. Instead this responsibility
is lowered into the specific backends.

The main motivation for this work is to allow blob recoordination
to create recordings that don't depend on the current clip.

Some additional benefits are that the API is easier to use and
as can be seen simplifies the SVG masking code because it doesn't
need to track surface offsets manually.

It's also an important step towards removing all the uses of
gfxContext::GetClipExtents which will let us get rid of the separate
clipping stack in gfxContext and help us move off of gfxContext
completely.

Most backend implementations of CreateClippedDrawTarget are relatively
simple. DrawTargetCapture is modified to track the current clip rect
so that it can create a new DrawTargetCapture of the appropriate size
without needing to worry about lazy resolution.

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

--HG--
extra : moz-landing-system : lando
2019-06-21 09:51:00 +00:00
Jeff Muizelaar 5d0404fc6b Bug 1560578. Add GetUnderlyingSurface so that we can see through Offset surfaces. r=lsalzman
There are a number of places where we look at a source surface's type
and then cast it to get inner information. Wrapping surfaces with offset
surfaces breaks this. Adding GetUnderlyingSurface will let us see
inside. We use this in the D2D backend to make sure we do
unintentionally convert to datasurfaces.

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

--HG--
extra : moz-landing-system : lando
2019-06-22 05:56:46 +00:00
Jeff Gilbert ccda45f8e3 Bug 1560157 - Remove EGLUtils.h. r=lsalzman
EGLImageWrapper was completely unused.

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

--HG--
extra : moz-landing-system : lando
2019-06-21 16:53:09 +00:00
shindli c0ca77697c Merge inbound to mozilla-central. a=merge 2019-06-21 12:34:14 +03:00
Martin Stransky dad38daa59 Bug 1557265 - Include gbm.h to build Wayland dmabuf backend, r=glandium
Depends on D34857

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

--HG--
extra : moz-landing-system : lando
2019-06-20 21:52:42 +00:00
Noemi Erli 5c199db0b2 Backed out changeset d909b10d7a39 (bug 1560157) for causing build bustages in TextureHostOGL.cpp CLOSED TREE 2019-06-21 02:48:27 +03:00
Jeff Gilbert 32cc8bf833 Bug 1560157 - Remove EGLUtils.h. r=lsalzman
EGLImageWrapper was completely unused.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 23:13:56 +00:00
Jed Davis 5c3a0a30d3 Bug 1426526 - Delete file_util from ex-Chromium IPC source. r=froydnj
Depends on D26746

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:40 +00:00
Jed Davis 3c945a3e99 Bug 1479960 - Get rid of base::SharedMemory::handle. r=froydnj
Despite the comment saying not to use the "handle" except as an opaque
identifier, it is being used to pass the handle to other OS APIs.  Direct
access to the handle needs to be controlled to make sure freezing is
safe, so this patch replaces that with interfaces that are more explicit
about ownership and lifetime.

Depends on D26739

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

--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:19 +00:00
Cosmin Sabou 55afe30077 Merge mozilla-central to autoland. CLOSED TREE 2019-06-21 01:44:45 +03:00
Cosmin Sabou 49014f945b Merge mozilla-inbound to mozilla-central. a=merge 2019-06-21 01:03:07 +03:00
myfreeweb 01916974b0 Bug 1213601 - implement kinetic/inertial scrolling (fling) for Gtk. r=botond
--HG--
extra : rebase_source : 69a374c26bcb8781e83aeb26058a2de349313bbc
extra : amend_source : 521bb6f2b5799bfca5f8b8b5bbe9e4fef1f2dd1e
2019-06-20 16:18:45 -04:00
Nicolas Silva d1d43baacc Bug 1558135 - Use a faster image shader when we don't need repetitions and anti-aliasing. r=gw
--HG--
extra : rebase_source : 5b6a332ba781ef9673fe9866872c3fe2977049f6
2019-06-20 10:14:48 -07:00
Ciure Andrei 72f3f971fb Backed out 15 changesets (bug 1479960, bug 1426526, bug 1534780, bug 1536697) for causing build bustages CLOSED TREE
Backed out changeset 5645e0cc3915 (bug 1479960)
Backed out changeset a7c09894c6a0 (bug 1536697)
Backed out changeset 510f03381af9 (bug 1426526)
Backed out changeset 7cf4735a088f (bug 1426526)
Backed out changeset 41080844e645 (bug 1479960)
Backed out changeset fdba3c5f8fd0 (bug 1479960)
Backed out changeset 26a8ebcb2db4 (bug 1479960)
Backed out changeset d0d383e5bae1 (bug 1479960)
Backed out changeset c418095bb7b7 (bug 1479960)
Backed out changeset 7b78b1945532 (bug 1479960)
Backed out changeset c47d47d4073d (bug 1479960)
Backed out changeset 71253b62a633 (bug 1479960)
Backed out changeset ae525f20bdbb (bug 1479960)
Backed out changeset 7fba719355d7 (bug 1534780)
Backed out changeset 771db331860a (bug 1534780)
2019-06-20 19:54:57 +03:00
Jed Davis d0e26716c7 Bug 1426526 - Delete file_util from ex-Chromium IPC source. r=froydnj
Depends on D26746

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

--HG--
extra : moz-landing-system : lando
2019-06-17 02:20:06 +00:00
Jed Davis d1d5748834 Bug 1479960 - Get rid of base::SharedMemory::handle. r=froydnj
Despite the comment saying not to use the "handle" except as an opaque
identifier, it is being used to pass the handle to other OS APIs.  Direct
access to the handle needs to be controlled to make sure freezing is
safe, so this patch replaces that with interfaces that are more explicit
about ownership and lifetime.

Depends on D26739

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

--HG--
extra : moz-landing-system : lando
2019-06-17 02:19:46 +00:00
Kartikaya Gupta e680f06913 Bug 1548687 - Rename functions per review comment suggestions. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D35315

--HG--
extra : moz-landing-system : lando
2019-06-20 14:31:08 +00:00
Kartikaya Gupta 1bf9a05842 Bug 1548687 - Add mochitest to exercise scrolling an oopif's ancestor. r=botond
This scrolls the document containing the OOPIF and ensures that
hit-testing still works. Some of the fission hit-testing machinery is
still WR-only, so we have to restrict the subtest to only run when WR
is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 14:34:54 +00:00
Kartikaya Gupta 9f179786cb Bug 1548687 - Remove unused dangling argument. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D35203

--HG--
extra : moz-landing-system : lando
2019-06-20 14:30:36 +00:00
Kartikaya Gupta 32f4c475cc Bug 1548687 - Optimization to reduce the number of IPC messages. r=botond
The case being fixed by this bug is currently relatively rare, in that
it requires the scrolling of a frame that contains OOP content. This
patch adds a bit of optimization to ensure that we only send the
affected transforms (i.e. for the scrolled OOP layers subtrees) in this
scenario, so that we don't cause unnecessary IPC overhead.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 14:30:28 +00:00
Kartikaya Gupta f8c16837dd Bug 1548687 - Send OOP frame transforms to the main thread more often. r=botond
In cases such as APZ scrolling with paint-skipping, there is an
additional transform component that needs to be included in the
transforms that APZ sends to the main thread for the purposes of
tracking OOP iframe positions. This patch includes the missing transform
component in the calculated matrices. This component updates more
frequently, generally on each call to RequestContentRepaint, as
mExpectedGeckoMetrics is updated, so we also need to send the frame
transform matrices over with this frequency.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 14:30:12 +00:00
Kartikaya Gupta 8147b6bbcb Bug 1548687 - Remove unnecessary root layers id argument. r=botond
The APZCTreeManager already knows its root layers id, so we don't need
to be passing it all over the place. I previously verified via a try
push with an assertion that the incoming aRootLayersId is always equal
to mRootLayersId.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 14:30:02 +00:00
sotaro 1b3de0879f Bug 1533296 - Make WebRender error as to Fallback to Compositor rendering during disabling WebRender on android r=nical
On android, android's nsWindow creates LayerManaer only in nsWindow::Create(). When WebRender error happened, gecko just stopped rendering by disabling Webrender.
The nsWindow needs to re-create LayerManager during disabling Webrender. Further, during disabling WebRender, All GeckoSurfaceTextures should not be attached to GLContext. It is for preventing a conflict with AttachToGLContext() call in SurfaceTextureHost::EnsureAttached().

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

--HG--
extra : moz-landing-system : lando
2019-06-19 16:14:56 +00:00
Daniel Varga 1ca75bd3d1 Backed out 6 changesets (bug 1548687) for browser chrome failure at gfx/layers/apz/test/mochitest/browser_test_group_fission.js. On a CLOSED TREE
Backed out changeset b8f38148ccbc (bug 1548687)
Backed out changeset a222c1b94540 (bug 1548687)
Backed out changeset 1ddcedc57f6f (bug 1548687)
Backed out changeset a6aa3a8b41b0 (bug 1548687)
Backed out changeset 0454826b6047 (bug 1548687)
Backed out changeset 6fde36402c40 (bug 1548687)
2019-06-20 01:14:20 +03:00
Kartikaya Gupta a99bca1199 Bug 1548687 - Rename functions per review comment suggestions. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D35315

--HG--
extra : moz-landing-system : lando
2019-06-19 19:24:04 +00:00
Kartikaya Gupta 1f1cd321aa Bug 1548687 - Add mochitest to exercise scrolling an oopif's ancestor. r=botond
This scrolls the document containing the OOPIF and ensures that
hit-testing still works. Some of the fission hit-testing machinery is
still WR-only, so we have to restrict the subtest to only run when WR
is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 19:23:54 +00:00
Kartikaya Gupta 3a0462de3c Bug 1548687 - Remove unused dangling argument. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D35203

--HG--
extra : moz-landing-system : lando
2019-06-19 19:23:43 +00:00
Kartikaya Gupta 4345a89ac7 Bug 1548687 - Optimization to reduce the number of IPC messages. r=botond
The case being fixed by this bug is currently relatively rare, in that
it requires the scrolling of a frame that contains OOP content. This
patch adds a bit of optimization to ensure that we only send the
affected transforms (i.e. for the scrolled OOP layers subtrees) in this
scenario, so that we don't cause unnecessary IPC overhead.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 19:23:41 +00:00
Kartikaya Gupta f6d1c3f41e Bug 1548687 - Send OOP frame transforms to the main thread more often. r=botond
In cases such as APZ scrolling with paint-skipping, there is an
additional transform component that needs to be included in the
transforms that APZ sends to the main thread for the purposes of
tracking OOP iframe positions. This patch includes the missing transform
component in the calculated matrices. This component updates more
frequently, generally on each call to RequestContentRepaint, as
mExpectedGeckoMetrics is updated, so we also need to send the frame
transform matrices over with this frequency.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 19:23:37 +00:00
Kartikaya Gupta 51689ccfe3 Bug 1548687 - Remove unnecessary root layers id argument. r=botond
The APZCTreeManager already knows its root layers id, so we don't need
to be passing it all over the place. I previously verified via a try
push with an assertion that the incoming aRootLayersId is always equal
to mRootLayersId.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 19:23:33 +00:00
Kagami Sascha Rosylight 3a1f6f85f5 Bug 1558001: Use double for DOMMatrix r=bzbarsky
DOMMatrix now internally uses double instead of float. This only fixes DOMMatrix internals so we still have to work on Servo CSS Parser to pass doubles instead of floats.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 15:59:54 +00:00
Glenn Watson 0689b50e52 Bug 1559295 - Support multiple picture cache tile sizes in WR texture cache. r=kvark
In future, picture cache tiles will support different sizes, depending
on the size of the content slice being cached, and how frequently
parts of the slice are changing.

Although currently unused, this patch adds support for specifying
multiple different tile sizes for the picture cache texture array.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 15:46:18 +00:00
Csoregi Natalia 9420c9eccf Backed out changeset be881e8aa8d9 (bug 1559295) for webrender bustage on webrender/src/texture_cache.rs. CLOSED TREE
--HG--
extra : histedit_source : 56889f6c35d9135a2c3f9177d344ba55121db2f7
2019-06-19 17:34:44 +03:00
Glenn Watson ae6e0cf4a3 Bug 1559295 - Support multiple picture cache tile sizes in WR texture cache. r=kvark
In future, picture cache tiles will support different sizes, depending
on the size of the content slice being cached, and how frequently
parts of the slice are changing.

Although currently unused, this patch adds support for specifying
multiple different tile sizes for the picture cache texture array.

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

--HG--
extra : moz-landing-system : lando
2019-06-14 19:38:34 +00:00
Glenn Watson 77363f0e08 Bug 1559535 - Fix crash related to mismatched clips with picture caching. r=kvark
Fixes an edge case where splitting the top level primitive list
for picture caching may result in a mismatched push/pop clip
pair.

This is not a particularly efficient fix, but it's a rare enough
edge case for now that this fix will be good enough until we work
out the long term solution for the push/pop clip chain instances.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 08:40:27 +00:00
Jean-Yves Avenard 139dde3db5 Bug 1559675 - P2. Initialise xpcom earlier in GPU process. r=mattwoodrow
StaticPrefs are fully initialized with Preferences, which is instantiated via XPCOM. It is required as such to initialize xpcom first.

Depends on D35263

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

--HG--
extra : moz-landing-system : lando
2019-06-18 23:03:20 +00:00