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

2039 Коммитов

Автор SHA1 Сообщение Дата
Martin Stransky d2b8e6dd4e Bug 1619530 [Wayland] Don't request zwp_linux_dmabuf to import dmabuf objects, r=jhorak
- Allow to create dmabuf object without zwp_linux_dmabuf extension.
- Don't import GBM dmabuf objects

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

--HG--
extra : moz-landing-system : lando
2020-03-06 10:40:39 +00:00
Mike de Boer 59c8d9b137 Bug 1620101 - Changing over to using freedesktop.org window properties to implement support for virtual desktops. r=stransky
So when I simply set the property on the window and flushed the display, I didn't
manage to get the desired effect.
Then I found this 'gxtuner' project that sends an event, which is correctly
picked up by Gnome and hopefully others.

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

--HG--
extra : moz-landing-system : lando
2020-03-06 10:17:34 +00:00
Emilio Cobos Álvarez 5bba05d7c8 Bug 1620307 - Rename -moz-menulist-button to -moz-menulist-arrow-button. r=spohl
This should be less confusing. This is not supported outside of chrome:// or
user-agent stylesheets so we can name this however we want.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 21:13:46 +00:00
Martin Stransky 3e8ae1409e Bug 1619270 [Wayland] Check we're really on Wayland and not on headless, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D65489

--HG--
extra : moz-landing-system : lando
2020-03-05 10:20:48 +00:00
Martin Stransky 8416366bd0 Bug 1619907 [Wayland] Provide logging to dmabuf code, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D65307

--HG--
extra : moz-landing-system : lando
2020-03-05 09:19:59 +00:00
Martin Stransky 3e893cfd93 Bug 1609538 - Workarounds for Mutter 3.36, r=jhorak
This is based on a patch by robert.mader

This is supposed to be a minimal patchset to make Firefox work on
Mutter 3.36 in a similar fassion as on 3.34. The changes should
be compatible with any Wayland compositor, especially those that
do similar agressive culling and frame callback reduction.
While technically non-optimal, they should work as a short time
solution.

1.: Do not commit the toplevel surface in moz_container_move. Instead
use gdk_window_invalidate_rect, which (hopefully) triggers a surface
commit as well while not interfering in the order of commands. The is
necessary as the previous commit would commit invalid state in certain
scenarios (like fullscreening).
This fixes broken fullscreening.

2.: Do not set an opaque region on containers if that would cover the
whole toplevel surface. This works around problems concerning mouse
input responsiveness, as a completely covered toplevel surface might
not get frame callbacks any more, but we currently rely on it to process
input events like mouse movements.

3.: Only set an opaque region on the toplevel surface when maximized.
While the toplevel opaque region is actually redundant as long as the
content surface has an opaque region set, we need it for workaround 2.
But we want to unset it when not needed as occasianally it is not in
sync, creating glitches when e.g. unmaximizing.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 09:02:02 +00:00
Ciure Andrei 4a6e05a3d7 Backed out changeset f96f7b534cbd (bug 1619907) for causing build bustages CLOSED TREE 2020-03-05 11:03:49 +02:00
Martin Stransky 0d15b67122 Bug 1619907 [Wayland] Provide logging to dmabuf code, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D65307

--HG--
extra : moz-landing-system : lando
2020-03-05 08:21:44 +00:00
Noemi Erli dbf1182de3 Backed out changeset 1bfe014fc3fa (bug 1609538) for causing Linux bustages in widget_gtk 2020-03-05 07:19:08 +02:00
Robert Mader f0fbff5f02 Bug 1609538 - Workarounds for Mutter 3.36. r=stransky
This is supposed to be a minimal patchset to make Firefox work on
Mutter 3.36 in a similar fassion as on 3.34. The changes should
be compatible with any Wayland compositor, especially those that
do similar agressive culling and frame callback reduction.
While technically non-optimal, they should work as a short time
solution.

1.: Do not commit the toplevel surface in `moz_container_move`. Instead
use `gdk_window_invalidate_rect`, which (hopefully) triggers a surface
commit as well while not interfering in the order of commands. The is
necessary as the previous commit would commit invalid state in certain
scenarios (like fullscreening).
This fixes broken fullscreening.

2.: Do not set an opaque region on containers if that would cover the
whole toplevel surface. This works around problems concerning mouse
input responsiveness, as a completely covered toplevel surface might
not get frame callbacks any more, but we currently rely on it to process
input events like mouse movements.

3.: Only set an opaque region on the toplevel surface when maximized.
While the toplevel opaque region is actually redundant as long as the
content surface has an opaque region set, we need it for workaround 2.
But we want to unset it when not needed as occasianally it is not in
sync, creating glitches when e.g. unmaximizing.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 10:52:13 +00:00
Mike de Boer 519022212a Bug 372650 - Add support for any window on Linux to be restored to their respective virtual desktop. r=stransky
Since bug 440895, we've got support in sessionstore to support restoring a window
to their respective virtual desktops.

This patch using a deprecated GDK API. It builds and works fine, but not without
compilation warnings.

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

--HG--
extra : moz-landing-system : lando
2020-03-04 10:21:22 +00:00
Greg V 77677bf972 Bug 1590832 - fix Wayland dmabuf texture crash and rendering on Radeon r=stransky
1. Use GBM map/unmap API correctly

The documentation of gbm_bo_unmap describes the second argument as
"map_data opaque ptr returned from prior gbm_bo_map",
which refers to the pointer written to the map_data location by gbm_bo_map,
not the pointer *returned* by gbm_bo_map.

This fixes crashes with widget.wayland-dmabuf-textures.enabled
on the Mesa RadeonSI driver.

2. Set modifier to invalid on the fallback code path

This fixes fCreateImage failure, allowing actual rendering
to happen.

(mBufferModifier was not set to DRM_FORMAT_MOD_INVALID,
so unsupported attributes were added to the CreateImage call)

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

--HG--
extra : moz-landing-system : lando
2020-03-04 07:13:47 +00:00
Emilio Cobos Álvarez 741c54ae79 Bug 1619664 - Decide which theme to use per document, not per-process. r=mstange,spohl
This allows testing much more easily.

There are some edge cases with native theme changes and such (ThemeChanged and
co assume there's only one theme per process). But I don't think they matter
much for our use cases.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 19:46:41 +00:00
Masayuki Nakano 2caf69bffb Bug 1617803 - Support 4th and 5th mouse button disabling pref on Linux r=karlt
Some users may want to disable 4th and 5th button of mouse.
This feature has already been implemented on Windows, and
our GTK widget can support this with this simple patch.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 04:34:45 +00:00
Martin Stransky a8b9ee58f8 Bug 1618367 [Wayland] Make nsWaylandDisplay usable on child processes, rename dmabuf preferences, r=jhorak
- Increment MAX_DISPLAY_CONNECTIONS to 5 (main, compositor, renderer, and two media threads).
- Stop posting events to message loop when it's deleted. Use message loop shutdown observer for it.
- Shutdown nsWaylandDisplay event queue on both chrome and content processes.
- Use static preference variables which means dmabuf prefs are renamed to: widget.wayland-dmabuf-textures.enabled widget.wayland-dmabuf-webgl.enabled widget.wayland-dmabuf-vaapi.enabled

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

--HG--
extra : moz-landing-system : lando
2020-02-28 10:09:04 +00:00
Makoto Kato 833d15a69d Bug 1617778 - Use ToString.h to share text and selection change logging. r=masayuki
It is useful to use ToString.h to log text and selection change instead of
adding it each source code. Actually, there is same code in
IMEContentObserver and widget.

Also, mozilla namespace is required since this conflicts with
WinModifierKeyState.h.

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

--HG--
extra : moz-landing-system : lando
2020-02-28 04:45:05 +00:00
Martin Stransky b432a2a607 Bug 1618493 [Wayland] Set opaque region for accelerated window immediately, r=jhorak"
Recently opaque region is set when wl_surface is obtained by renderer/compositor.
It does not work as GL/WebRender get wl_surface only once and creates egl_window
on top of it so the opaque region is never updated.

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

--HG--
extra : moz-landing-system : lando
2020-02-27 16:39:32 +00:00
Emilio Cobos Álvarez 9724c94c25 Bug 1617990 - Remove three silly uses of nsACString::Adopt in GTK widget code. r=froydnj
NS_Convert* has small string optimizations and doesn't require an extra strlen()
call from Adopt().

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

--HG--
extra : moz-landing-system : lando
2020-02-25 20:09:29 +00:00
Martin Stransky a37d672244 Bug 1617575 [Wayland] Don't pass invalid file descriptors to SurfaceDescriptorDMABuf, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D63850

--HG--
extra : moz-landing-system : lando
2020-02-25 13:48:39 +00:00
Martin Stransky f0afedd24a Bug 1617858 [Linux/Gtk] Don't use a fallback widget when it's missing, r=jhorak
With Bug 1613130 fixed we may not need a fallback widget so let's remove this workaround.

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

--HG--
extra : moz-landing-system : lando
2020-02-25 13:32:47 +00:00
Simon Giesecke 32c9aeaad4 Bug 1617542 - Remove nsRefPtrHashtable::Put overload accepting already_AddRefed and adapt all uses. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63865

--HG--
extra : moz-landing-system : lando
2020-02-25 09:36:12 +00:00
Cosmin Sabou 7f1afff492 Backed out 5 changesets (bug 1617604, bug 1617542, bug 1617546) for causing build bustages on ipc/mscom/Interceptor.cpp.
CLOSED TREE

Backed out changeset 5faa54ad950e (bug 1617542)
Backed out changeset cb38779e1eb6 (bug 1617604)
Backed out changeset 3aea18e0396f (bug 1617542)
Backed out changeset bc3eeefdfb6c (bug 1617542)
Backed out changeset b76a3aa5ff6f (bug 1617546)
2020-02-24 19:50:13 +02:00
Simon Giesecke df538d9a79 Bug 1617542 - Remove nsRefPtrHashtable::Put overload accepting already_AddRefed and adapt all uses. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63865

--HG--
extra : moz-landing-system : lando
2020-02-24 17:08:30 +00:00
Sylvestre Ledru ca6530131a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan,kvark
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-02-24 15:33:38 +00:00
Martin Stransky b929ff1886 Bug 1616680 [Wayland] Use widget.wayland_dmabuf_vaapi.enabled to enable VAAPI / dmabuf video playback, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D63381

--HG--
extra : moz-landing-system : lando
2020-02-24 09:50:23 +00:00
Martin Stransky a61d164b44 Bug 1613130 [Linux] Check that we have gtk_style_context_set_scale() and style, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D63390

--HG--
extra : moz-landing-system : lando
2020-02-24 08:48:35 +00:00
Marc Streckfuss 66937693fb Bug 1615270 - [Media-Control Linux] MPRIS: Correctly emit the PropertyChange Event on the Player Interface (https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html), r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D63811

--HG--
extra : moz-landing-system : lando
2020-02-23 22:58:39 +00:00
Martin Stransky f2347f97b8 Bug 1615604 [Wayland] Fix WaylandDMABufSurfaceNV12 texture creation, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D62929

--HG--
extra : moz-landing-system : lando
2020-02-19 20:25:28 +00:00
Martin Stransky 905e0e97e8 Bug 1614568 [Wayland] Implement fence sync to dmabuf surfaces for WebGL rendering, r=jgilbert
Use ANDROID_native_fence_sync to synchronize WebGL renderin. It's similar to KHR_fence_sync
but it the fence can be exported to file descriptor and shared among processes so we can create
the fence by WebGL producer and then wait in renderer.

Use glFinish() as a fallback when ANDROID_native_fence_sync is not available.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 15:13:28 +00:00
Emilio Cobos Álvarez f63532cf6d Bug 1615056 - Remove layout.css.webkit-appearance.enabled. r=jwatt
I don't think we want to keep the ugly widget hacks forever. Let me know if
you'd rather keep the property behind a pref but I don't think there's a point
in doing that.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 14:48:43 +00:00
Bogdan Tara d9d7ba1ba9 Backed out changeset 222723ab0b5b (bug 1615056) for bustages complaining about nsNativeThemeWin.cpp CLOSED TREE 2020-02-19 16:10:56 +02:00
Emilio Cobos Álvarez 4675433ccc Bug 1615056 - Remove layout.css.webkit-appearance.enabled. r=jwatt
I don't think we want to keep the ugly widget hacks forever. Let me know if
you'd rather keep the property behind a pref but I don't think there's a point
in doing that.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 11:27:27 +00:00
Marc Streckfuss 5ab94864b9 Bug 1615375 - MPRIS: Dynamically determine the User-Agent Vendor and Name to support Re-Branding. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D62940

--HG--
extra : moz-landing-system : lando
2020-02-19 08:58:58 +00:00
Masayuki Nakano 351bd16f96 Bug 1615532 - Make line style in TextRangeStyle an enum class and sync it with GeckoEditable.IME_RANGE_LINE_* r=m_kato
At bug 1614208, the line style value mapping was changed, but
`GeckoEditable.IME_RANGE_LINE_*` are not updated.

This patch makes the style in `TextRangeStyle` an enum class for making it
type safer, and updates `GeckoEditable.IME_RANGE_LINE_*`, and finally, adds
`FYI` comments in `TextRangeStyle` to make developers realize it requires
manual update.

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

--HG--
extra : moz-landing-system : lando
2020-02-17 07:53:46 +00:00
Xidorn Quan efd45a6971 Bug 699022 - Inform IM about cursor position when focus changes. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D62734

--HG--
extra : moz-landing-system : lando
2020-02-13 12:19:05 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
Martin Stransky cd29098cb6 Bug 1614210 [Wayland] Explicitly crash when creating wayland surface on non-wayland session, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D62718

--HG--
extra : moz-landing-system : lando
2020-02-13 10:59:27 +00:00
Martin Stransky 1160be6413 Bug 1613364 [Wayland] Clean up WaylandDMABufSurface class, r=jhorak
- Include va_drmcommon.h file to build without libva headers
- Clean up WaylandDMABufSurface/WaylandDMABufSurfaceRGBA/WaylandDMABufSurfaceNV12 classes

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

--HG--
extra : moz-landing-system : lando
2020-02-12 22:35:09 +00:00
Martin Stransky 0c0169aabe Bug 1613364 [Wayland] Update gfx code to derived WaylandDMABufSurfaceRGBA class, r=sotaro
WaylandDMABufSurface/WaylandDMABufSurfaceRGBA uses textures interface instead of EGLImages so we need
to update gfx code accordingly:

- rename CreateEGLImage() -> CreateTexture()
- rename ReleaseEGLImage() -> ReleaseTextures()
- rename GetGLTexture() -> GetTexture()
- rename WaylandDMABufSurface::CreateDMABufSurface() to WaylandDMABufSurfaceRGBA::CreateDMABufSurface()

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

--HG--
extra : moz-landing-system : lando
2020-02-12 22:35:02 +00:00
Martin Stransky 3067970775 Bug 1613364 [Wayland] Implement WaylandDMABufSurfaceNV12 to hold HW decoded video frames, r=jhorak
WaylandDMABufSurfaceNV12 holds HW decoded video frames from VA-API in NV12 format and it's implemented
as specialization of WaylandDMABufSurface base class.

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

--HG--
extra : moz-landing-system : lando
2020-02-12 22:34:35 +00:00
Martin Stransky ff552649ea Bug 1613364 [Wayland] Derive WaylandDMABufSurfaceRGBA from WaylandDMABufSurface, r=jhorak
We need WaylandDMABufSurface to hold both RGBA and YUV surfaces co create WaylandDMABufSurface as a base
class and derive WaylandDMABufSurfaceRGBA from it.

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

--HG--
extra : moz-landing-system : lando
2020-02-12 22:34:27 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Marc Streckfuss 1eb3d684e4 Bug 1353652 - Initial Draft of MPRIS API Provider (Media API on Linux) r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D47999

--HG--
extra : moz-landing-system : lando
2020-02-12 13:10:50 +00:00
Coroiu Cristina 2731ff1336 Merge mozilla-central to autoland a=merge 2020-02-12 15:32:47 +02:00
Coroiu Cristina b0bbc80821 Backed out changeset b4dc366c9161 (bug 1353652) for build bustage on linux32 at build/src/widget/gtk/MPRISServiceHandler.cpp a=backout 2020-02-12 12:13:03 +02:00
Marc Streckfuss 868bbc1550 Bug 1353652 - Initial Draft of MPRIS API Provider (Media API on Linux) r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D47999

--HG--
extra : moz-landing-system : lando
2020-02-11 23:11:23 +00:00
Stephen A Pohl ba4b5f43bc Bug 1381938: Add native theme for Windows that avoids native system calls. r=mstange,dbaron
Differential Revision: https://phabricator.services.mozilla.com/D33310

--HG--
extra : moz-landing-system : lando
2020-02-10 19:26:01 +00:00
Martin Stransky ae1ee13587 Bug 1600414 [Linux] Apply window aspect ratio to PIP on Gnome only, r=jhorak
Window aspect ratio is known to work correctly on Gnome only so apply it only there.

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

--HG--
extra : moz-landing-system : lando
2020-02-12 09:20:29 +00:00
Martin Stransky 272e06b7b9 Bug 1614421 [Linux] Use GtkInvisible as a fallback widget, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D62412

--HG--
extra : moz-landing-system : lando
2020-02-11 11:10:14 +00:00