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

26872 Коммитов

Автор SHA1 Сообщение Дата
Martin Stransky 432226521b Bug 1657747 [Wayland] Remove DMABuf backend from SW compositor, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D86342
2020-08-08 08:50:29 +00:00
Jed Davis dc948b0c6a Bug 1654957 - Enable the GfxInfo component in the GPU process on Linux. r=jgilbert
Out-of-process WebGL needs GfxInfo to exist in the composition
process (which is the GPU process if it exists and the parent process
otherwise).  This patch enables the Linux version of that component in
the GPU process; the IPC currently used to give content processes copies
of the parent's GPU info is extended to also send it to the GPU process.

Differential Revision: https://phabricator.services.mozilla.com/D85443
2020-08-07 21:31:53 +00:00
Jed Davis 38615bc134 Bug 1654957 - Don't leak GfxInfoBase::sFeatureStatus even if GfxInfo is never created. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D86117
2020-08-07 21:38:18 +00:00
Jed Davis 0e7115ba35 Bug 1654957 - Prelude: move GfxInfoFeatureStatus from dom to gfx. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D85488
2020-08-07 21:31:48 +00:00
Robert Mader db3ef5059a Bug 1658035 - [Linux] WebGL DMABuf broken, r=jgilbert
Small oversight during review.

Differential Revision: https://phabricator.services.mozilla.com/D86432
2020-08-07 20:50:04 +00:00
Emilio Cobos Álvarez 6bc311374b Bug 1657363 - Fix Linux / OSX builds without the remaining patches.
CLOSED TREE

MANUAL PUSH: Bustage fix.
2020-08-07 22:48:49 +02:00
Emilio Cobos Álvarez 84f25156fb Bug 1657363 - Make initializing the CUPS shim safe from multiple threads. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D86396
2020-08-07 20:23:21 +00:00
Dzmitry Malyshau 3099c92294 Bug 1656731 - Add Intel(R) UHD Graphics 617 to the KabyLake GT2 list r=mstange
added according to Jeff's gpudb
a65476109a/intel.json (L308)

Differential Revision: https://phabricator.services.mozilla.com/D86381
2020-08-07 16:51:26 +00:00
Bob Owen ed611d856b Bug 1652764: Only allow nsPrinterList objects to be created in the main process on macOS. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D86358
2020-08-07 16:04:24 +00:00
Jonathan Kew d049947f17 Bug 1656733 - Reimplement EnumerateNativePrinters (and GetDefaultPrinterName) in widget/windows code to use proper Win32 APIs. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D86019
2020-08-07 14:33:41 +00:00
Emilio Cobos Álvarez edf2f3232d Bug 1657874 - Remove CUPSPrinterList. r=jwatt
Now that we share the list code between GTK and Mac, there's no reason
for this. This also avoids work when getting the default printer name.

Differential Revision: https://phabricator.services.mozilla.com/D86345
2020-08-07 14:30:33 +00:00
Bogdan Tara 5664de44fd Backed out changeset a71e53a3e455 (bug 1657874) for CUPSPrinterList.h related bustage CLOSED TREE 2020-08-07 15:39:34 +03:00
Emilio Cobos Álvarez cf0578d008 Bug 1657874 - Remove CUPSPrinterList. r=jwatt
Now that we share the list code between GTK and Mac, there's no reason
for this. This also avoids work when getting the default printer name.

Differential Revision: https://phabricator.services.mozilla.com/D86345
2020-08-07 12:16:36 +00:00
Emilio Cobos Álvarez 63ad13457c Bug 1657874 - Avoid some duplicate patterns to init cups shim. r=jwatt
Depends on D86336

Differential Revision: https://phabricator.services.mozilla.com/D86341
2020-08-07 12:07:48 +00:00
Emilio Cobos Álvarez 05e2ab2186 Bug 1657874 - Unify printer list implementations between Mac and GTK, and add nsPrinterListBase. r=jwatt
nsPrinterListBase is where the CC setup and promises and such will be, I
think.

Differential Revision: https://phabricator.services.mozilla.com/D86336
2020-08-07 12:04:26 +00:00
Martin Stransky f600821505 Bug 1656727 [Wayland] Check mDelayedCommitHandle before we use it, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D86261
2020-08-07 10:29:45 +00:00
Martin Stransky bf8fabdef5 Bug 1628742 [Linux] Provide hiden widget.workspace-management preference as an override to restore windows on particular worspaces, r=jhorak
When user adds and sets widget.workspace-management preference value, use it as override to restore windows on particular worspaces.

Differential Revision: https://phabricator.services.mozilla.com/D86205
2020-08-07 10:29:10 +00:00
Jeff Gilbert a824ab4d81 Bug 1656034 - Support multiple EglDisplays per GLLibraryEGL. r=lsalzman,sotaro,stransky
Have webrender use its own EGLDisplay, letting WebGL use a different
one.

Differential Revision: https://phabricator.services.mozilla.com/D85496
2020-08-07 07:14:46 +00:00
Simon Giesecke 1e02318b49 Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D83817
2020-08-07 07:49:47 +00:00
Mike Hommey 5a5a1edd0e Bug 1656141 - Remove RESFILE. r=firefox-build-system-reviewers,rstewart
The resource file is always generated so being able to configure its name
is not useful. On the other hand, the way things are currently implemented,
the lack of RESFILE also makes RCFILE ignored, which we fix at the same
time.

And remove a spurious RESFILE in widget/windows/moz.build, where no binary
is produced, which means RESFILE had no meaning.

Differential Revision: https://phabricator.services.mozilla.com/D86154
2020-08-06 22:51:59 +00:00
Mihai Alexandru Michis 639b2bd075 Backed out changeset f1f10f791e99 (bug 1656034) for causing bustages in DMABufSurface.cpp
CLOSED TREE
2020-08-07 02:36:33 +03:00
Jeff Gilbert b5d6906473 Bug 1656034 - Support multiple EglDisplays per GLLibraryEGL. r=lsalzman,sotaro,stransky
Have webrender use its own EGLDisplay, letting WebGL use a different
one.

Differential Revision: https://phabricator.services.mozilla.com/D85496
2020-08-06 22:53:53 +00:00
Emily McDonough 855ea24af6 Bug 1651117 Part 2 - Add color information for CUPS printers r=nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D86258
2020-08-06 20:57:43 +00:00
Mihai Alexandru Michis c4e805857f Backed out 9 changesets (bug 1656141) for causing multiple failures.
CLOSED TREE

Backed out changeset 9033b0400339 (bug 1656141)
Backed out changeset e43dd57dc61a (bug 1656141)
Backed out changeset eb450457a9b7 (bug 1656141)
Backed out changeset 194a994cf9c9 (bug 1656141)
Backed out changeset ce6831acb5e3 (bug 1656141)
Backed out changeset 29653ea85d49 (bug 1656141)
Backed out changeset 704f28486bda (bug 1656141)
Backed out changeset de8899453150 (bug 1656141)
Backed out changeset 4b133eda46aa (bug 1656141)
2020-08-07 01:48:45 +03:00
Mike Hommey afe0ac845a Bug 1656141 - Remove RESFILE. r=firefox-build-system-reviewers,rstewart
The resource file is always generated so being able to configure its name
is not useful. On the other hand, the way things are currently implemented,
the lack of RESFILE also makes RCFILE ignored, which we fix at the same
time.

And remove a spurious RESFILE in widget/windows/moz.build, where no binary
is produced, which means RESFILE had no meaning.

Differential Revision: https://phabricator.services.mozilla.com/D86154
2020-08-06 15:59:02 +00:00
Mihai Alexandru Michis 4719cf3e7d Backed out changeset 06538f141210 (bug 1656034) for causing bustages in GLContextProviderEGL.cpp
CLOSED TREE
2020-08-07 00:19:32 +03:00
Jeff Gilbert 78c66237bb Bug 1656034 - Support multiple EglDisplays per GLLibraryEGL. r=lsalzman,sotaro,stransky
Have webrender use its own EGLDisplay, letting WebGL use a different
one.

Differential Revision: https://phabricator.services.mozilla.com/D85496
2020-08-06 19:56:43 +00:00
Jamie Nicol 16a9221376 Bug 1656554 - Enable webrender on Adreno 5xx GPUs excluding 505 and 506. r=ktaeleman,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D85740
2020-08-06 20:35:09 +00:00
Martin Stransky b368bb8808 Bug 1657577 [Linux] Use atomic gNewSurfaceUID, r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D86174
2020-08-06 19:38:31 +00:00
Andrew Osmond 0afdee5817 Bug 1657600 - Fix how WebRender was not enabled on OSX by default for early beta. r=ktaeleman
Differential Revision: https://phabricator.services.mozilla.com/D86195
2020-08-06 17:12:05 +00:00
Erik Nordin dc5ce69107 Bug 1656587 - Retrieve Default Printer Name Using CUPS r=AlaskanEmily
Differential Revision: https://phabricator.services.mozilla.com/D85628
2020-08-06 17:26:04 +00:00
Erik Nordin 9cc3d1ef24 Bug 1656379 - Rename nsCUPSShim function pointers r=AlaskanEmily,jwatt
Differential Revision: https://phabricator.services.mozilla.com/D85491
2020-08-06 17:01:21 +00:00
Martin Stransky 9dba843992 Bug 1656436 [Linux/VAAPI] Release VAAPI surface data before we re-use them, r=jya
VAAPI HW surfaces are released at ReleaseUnusedVAAPIFrames() and we use DMABufSurface::IsUsed() flag
to detect unused surfaces. Then we call GetUnusedDMABufSurfaceWrapper() to get unused surfaces to
re-use them for decoding.

Because DMABufSurface::IsUsed() flag is updated asynchronously it may change
between ReleaseUnusedVAAPIFrames() and GetUnusedDMABufSurfaceWrapper() calls.

In that case GetUnusedDMABufSurfaceWrapper() may return unused but also unreleased surface
as it was marked as used in time of ReleaseUnusedVAAPIFrames() call.

In this patch explicitly release VAAPI data of any surface before we re-use it.
Also fail when we try to upload data to already used DMABufSurfaceYUV surface.

Differential Revision: https://phabricator.services.mozilla.com/D85842
2020-08-06 11:12:45 +00:00
Cosmin Sabou 4fd06f639e Backed out 2 changesets (bug 1656379, bug 1656587) for linux Hazard bustages.
Backed out changeset 451369452f15 (bug 1656587)
Backed out changeset 670195cb59f8 (bug 1656379)
2020-08-06 10:36:51 +03:00
Erik Nordin d78a8c8c6a Bug 1656587 - Retrieve Default Printer Name Using CUPS r=AlaskanEmily
Differential Revision: https://phabricator.services.mozilla.com/D85628
2020-08-06 04:28:01 +00:00
Erik Nordin 566afa226a Bug 1656384 - Retrieve Printers using CUPSPrinterList on macOS r=jwatt,AlaskanEmily
Differential Revision: https://phabricator.services.mozilla.com/D85623
2020-08-06 01:42:13 +00:00
Erik Nordin 7c1c60fb4d Bug 1656379 - Rename nsCUPSShim function pointers r=AlaskanEmily,jwatt
Differential Revision: https://phabricator.services.mozilla.com/D85491
2020-08-06 00:12:07 +00:00
Emily McDonough 87e0683166 Bug 1657164 - Remove PSPrinters r=jwatt,emilio
Differential Revision: https://phabricator.services.mozilla.com/D85939
2020-08-05 23:04:48 +00:00
Emily McDonough 51464aefa0 Bug 1654678 Part 4 - Make GTK printer enumeration use the unified CUPS code r=jwatt,emilio
Differential Revision: https://phabricator.services.mozilla.com/D85502
2020-08-05 22:15:18 +00:00
Jamie Nicol f070646027 Bug 1558374 - Avoid using scissored glClear() on Mali-Gxx. r=kvark,geckoview-reviewers,snorp
On Mali-G71 and G72 we see artifacts when scrolling around pages, in the form of
black squares or bits of content appearing in the wrong location. This appears
to be due to a driver bug when calling glClear() to clear a picture cache tile
texture with a scissor rect set.

We encountered a similar issue on some Intel hardware in bug 1638672, and worked
around it by using a custom shader to clear the texture rather than
glClear. This change applies this work around to Mali-Gxx devices too.

Differential Revision: https://phabricator.services.mozilla.com/D85867
2020-08-05 18:50:12 +00:00
Emilio Cobos Álvarez bdca8af91d Bug 1655558 - Retrieve the paper margins lazily on Windows. r=jwatt,bobowen
This is no worse than what we were doing.

In the future, instead of just querying the margin we may want to query
extra information that requires a DC in windows too or what not, for
example.

Differential Revision: https://phabricator.services.mozilla.com/D85919
2020-08-05 11:26:13 +00:00
Emilio Cobos Álvarez 6d5ce8f732 Bug 1655558 - Retrieve paper information from CUPS, and convert paperList to an async attribute. r=jwatt
This builds on top of bug 1656146 to compute the page information on a
background task, and return it via a promise.

Co-Authored-By: Erik Nordin <enordin@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D85865
2020-08-05 01:24:49 +00:00
Martin Stransky ba1cca7dff Bug 1657315 [Linux] Remove unused X11 display connection from gfxPlatformGtk, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D85993
2020-08-05 10:56:33 +00:00
Tom Schuster 4711a353c1 Bug 1547595 - Work around brokeness in GTK with CRLF copying. r=stransky,jhorak
This makes us put the copied string as-is into the clipboard, exclusively for the type:
text/plain;charset=utf-8

When pasting strings into Firefox, `\r` might still be converted to `\n`. So disable
part of the test in browser_removeUnsafeProtocolsFromURLBarPaste.js.

Differential Revision: https://phabricator.services.mozilla.com/D82224
2020-08-05 09:26:03 +00:00
Martin Stransky 19224fdc71 Bug 1655943 [Linux] Set dmabuf surface uid to all dmabuf surfaces, r=jhorak
- Set dmabuf surface UID in surface constructor, make DMABufSurface::SetUID() method private.
- Change dmabuf log key from 'WaylandDmabuf' to 'Dmabuf'.

Differential Revision: https://phabricator.services.mozilla.com/D85829
2020-08-05 07:45:07 +00:00
Martin Stransky 583d135166 Bug 1655323 [Linux/WebGL] Release duplicated file descriptor from GL Fence, r=jhorak
Depends on https://phabricator.services.mozilla.com/D85829

Differential Revision: https://phabricator.services.mozilla.com/D85828
2020-08-05 07:45:12 +00:00
Martin Stransky 93e6b04071 Bug 1654775 [Wayland] Don't flood console with 'Getting screen in wayland, primary display will be returned', r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D85257
2020-08-05 07:43:54 +00:00
Simon Giesecke 1e6ec7ec86 Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange
The abstract observer base classes are moved to a separate header file
nsRefreshObservers.h and the includes are adjusted accordingly.

Some method implementations are moved to the corresponding implementation files
to avoid the need to include the nsRefreshDriver.h file in the header.

Differential Revision: https://phabricator.services.mozilla.com/D85764
2020-08-04 21:17:50 +00:00
Timothy Nikkel 127bb5c68a Bug 1657073. Make sure to destroy direct manipulation objects before we clear our HWND pointer. r=kats
Otherwise when we try to call Deactivate on the direct manipulation manager (to balance the Activate call) we won't have the HWND pointer and so it won't balance and we will leak.

We call DestroyDirectManipulation in nsWindow::Destroy but it looks like nsWindow::OnDestroy can be called before nsWindow::Destroy.

Differential Revision: https://phabricator.services.mozilla.com/D85835
2020-08-04 12:13:50 +00:00
Jonathan Kew 7e5e4c7638 Bug 1653354 - Make the WebExtensions API tabs.saveAsPDF work via the Cocoa printing code on macOS. r=jwatt,extension-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D85891
2020-08-04 16:58:20 +00:00