Benjamin Otte
de3f55fc5f
testdmabuf: Use Vulkan to create dmabufs
...
This is somewhat hacky, but good enough for testing.
And it's definitely better than needing to chmod files owned by root.
2023-11-17 00:22:27 +01:00
Benjamin Otte
010ff81b2f
wayland: Don't create a new wl_buffer if the texture didn't change
...
Avoids flickering in Mutter - which is probably a mutter bug.
But it also reduces traffic, so it's a good thing anyway.
2023-11-17 00:22:27 +01:00
Matthias Clasen
c94ec8b658
Merge branch 'michaelweghorn/bump_version' into 'main'
...
Bump version in meson.build to 4.13.4
See merge request GNOME/gtk!6574
2023-11-16 19:04:59 +00:00
Michael Weghorn
9c1ae5374d
Bump version in meson.build to 4.13.4
...
... as commit 3a88522a19
did
for the NEWS file after the 4.13.3 release
(tag "4.13.3", commit 358cd28d09
).
2023-11-16 17:02:44 +01:00
Matthias Clasen
4a018de0a1
Merge branch 'michaelweghorn/a11y_add_blockquote_role' into 'main'
...
a11y: Add block quote role
See merge request GNOME/gtk!6539
2023-11-16 14:25:01 +00:00
Matthias Clasen
23e50bb21d
Merge branch 'main' into 'main'
...
Fix warnings when compiling with -pedantic
See merge request GNOME/gtk!6570
2023-11-15 23:00:41 +00:00
madmurphy
a8e3e747df
Fix warnings when compiling with -pedantic
2023-11-15 23:00:41 +00:00
Matthias Clasen
7fd90853f8
Merge branch 'matthiasc/for-main' into 'main'
...
video: Hide controls and cursor in fullscreen
Closes #6210
See merge request GNOME/gtk!6572
2023-11-15 20:46:38 +00:00
Matthias Clasen
01aa4989f8
Merge branch 'wip/wjt/gtkgraphicsoffload-docs-typo' into 'main'
...
gtkgraphicsoffload: fix documentation typo
See merge request GNOME/gtk!6573
2023-11-15 20:46:15 +00:00
Will Thompson
d4fee23ff6
gtkgraphicsoffload: fix documentation typo
2023-11-15 19:45:17 +00:00
Matthias Clasen
b878949f00
video: Hide controls and cursor in fullscreen
...
Be a bit more aggressive about hiding the controls, and also
hide the cursor if we are paying a video and are fullscreen.
Fixes : #6210
2023-11-15 14:24:39 -05:00
Matthias Clasen
3a88522a19
Post-release version bump
2023-11-15 10:07:50 -05:00
Matthias Clasen
358cd28d09
4.13.3
2023-11-15 09:44:44 -05:00
Matthias Clasen
6eb6b0cb50
Cosmetics: typo fix
2023-11-15 06:45:52 -05:00
Matthias Clasen
c81954120a
Merge branch 'fix-giodesktopappinfo-check' into 'main'
...
Revert "Conditional check for gdesktopappinfo header"
See merge request GNOME/gtk!6568
2023-11-15 05:13:08 +00:00
Matthias Clasen
4bdc44f4af
Revert "Conditional check for gdesktopappinfo header"
...
This reverts commit 13b94dab10
.
As pointed out in #6557 , this commit is broken and causes
gio/gdesktopappinfo.h to never be found.
2023-11-14 23:45:17 -05:00
Matthias Clasen
3ab7b2d7ce
Merge branch 'va-fixes-reported-by-pvs' into 'main'
...
Fix issues spotted by PVS-Studio
See merge request GNOME/gtk!6558
2023-11-15 00:27:08 +00:00
Matthias Clasen
429056c214
Merge branch 'wip/otte/for-mclasen' into 'main'
...
gl: Don't punch hole if the subsurface is above
See merge request GNOME/gtk!6567
2023-11-15 00:26:45 +00:00
Benjamin Otte
acecf519bc
offload: Reject non-integer rectangles
...
We shouldn't just fudge with coordinates if we want accurate rendering.
2023-11-14 21:55:10 +01:00
Benjamin Otte
b2fbdcda41
subsurface: Report better error messages when rejecting textures
2023-11-14 21:54:38 +01:00
Benjamin Otte
1b08fda93e
renderer: Remove offload argument from render()
...
It turns out it's not needed, because all relevant information for
subsurfaces is already available by querying the subsurface itself.
2023-11-14 21:54:35 +01:00
Benjamin Otte
f6b6176ec0
gl: Handle subsurfaces without GskOffload
2023-11-14 21:51:07 +01:00
Luca Bacci
2803189afd
Merge branch 'gdkwin32_modernize_clipboard' into 'main'
...
GdkWin32: switch to new clipboard API
Closes #442
See merge request GNOME/gtk!6560
2023-11-14 20:09:55 +00:00
g.willems
ad08c1444a
win32: precalculate keymap at display opening
...
The default keymap and keymap layouts are calculated on request.
If done once a surface is setup and listening at win32 events,
we may then enter in a recursive loop.
To avoid this, precalculate the keymap as soon as displays are open.
Fixes #6203
Closes #6203
2023-11-14 20:26:05 +01:00
Benjamin Otte
ef77a6fa73
gl: Don't punch hole if the subsurface is above
...
Saves some work.
2023-11-14 20:22:24 +01:00
Matthias Clasen
667f02ecd8
Merge branch 'matthiasc/for-main' into 'main'
...
Updates
See merge request GNOME/gtk!6562
2023-11-14 17:49:04 +00:00
Benjamin Otte
160f632668
Merge branch 'wip/otte/for-main' into 'main'
...
renderer: Remove priv->root_node
See merge request GNOME/gtk!6565
2023-11-14 14:43:47 +00:00
Benjamin Otte
653bf46494
offload: Refactor texture finding
...
It's the same code, but with way more debose debug messages.
2023-11-14 15:04:38 +01:00
Benjamin Otte
46d4c70cd7
offload: Only print one debug message
...
... when failing to create the wl_buffer.
2023-11-14 15:04:38 +01:00
Benjamin Otte
4920ac4a57
offload: Move a debug message
...
If we fail to attach a buffer, we don't want to print this.
2023-11-14 15:04:38 +01:00
Benjamin Otte
5bdc9f71fd
renderer: Remove priv->root_node
...
It's not used anywhere.
2023-11-14 15:04:38 +01:00
Benjamin Otte
c92761b184
Merge branch 'wip/otte/for-main' into 'main'
...
Add a debug node for CSS outlines
See merge request GNOME/gtk!6564
2023-11-14 13:39:38 +00:00
Benjamin Otte
9185f15cd9
renderer: Add a supports_offload flag
...
This flag must be set when creating the class or offloading
will be disabled for this renderer.
Set that flag for the GL renderer.
Fixes the Cairo and Vulkan renderer not showing Video.
2023-11-14 13:06:05 +01:00
Benjamin Otte
efec30babb
renderer: Don't crash with offload disabled
2023-11-14 13:06:05 +01:00
Benjamin Otte
190e7da317
wayland: Don't g_warning() on expected error
...
Print a GDK_DEBUG() message instead.
2023-11-14 13:06:05 +01:00
Benjamin Otte
28d38cd730
Add a debug node for CSS outlines
...
All the other CSS render operations have one, so outlines should, too.
This was found by tracking down a random border node in a rendering.
2023-11-14 13:06:05 +01:00
Benjamin Otte
7299c9baa9
Merge branch 'andyholmes/get-default-size' into 'main'
...
gtk: fix NULL pointer dereference
See merge request GNOME/gtk!6559
2023-11-14 11:08:53 +00:00
Andrey Kutejko
540a83327f
Fix issues spotted by PVS-Studio
2023-11-14 08:56:40 +01:00
Matthias Clasen
04d41eaa66
Updates
2023-11-13 23:53:24 -05:00
Matthias Clasen
524d681496
Merge branch 'dmabuf-passthrough' into 'main'
...
dmabuf passthrough
Closes #6132
See merge request GNOME/gtk!6533
2023-11-14 03:20:12 +00:00
Matthias Clasen
44d977844b
testsuite: Add offload tests
...
These tests come in two variants.
The first takes .node and .offload file, parses the node file,
and compares the resulting subsurface attachments to expected results.
The second variant takes two .node/.offload file pairs and a .diff
file, parses the node files, compares the resulting subsurface
attachments, and then diffs the nodes, comparing the resulting
area to the region in the .diff file.
2023-11-13 18:41:53 -06:00
Matthias Clasen
6259800f5a
Merge branch 'matthiasc/for-main' into 'main'
...
gsk: Robustness fix
See merge request GNOME/gtk!6561
2023-11-13 23:36:58 +00:00
Matthias Clasen
d3a5aa5304
testdmabuf: Use GtkGraphicsOffload
2023-11-13 22:27:51 +01:00
Matthias Clasen
d32ab7544d
gtk-demo: Enable offload in the video player
2023-11-13 22:27:51 +01:00
Matthias Clasen
e2e7c931c5
gtk: Use GtkGraphicsOffload in GtkVideo
...
Video playback is one of the main use cases for graphics offload,
so it makes a lot of sense to do it in GtkVideo.
2023-11-13 22:27:51 +01:00
Matthias Clasen
e202348380
gtk: Add GtkGraphicsOffload
...
This is new widget that will attempt to pass through the content
of its child via a subsurface. This is mostly meant for internal
use, but the minimal api is available.
2023-11-13 22:27:51 +01:00
Matthias Clasen
ba5403da17
gtk: Add gtk_snapshot_push_subsurface
...
This is currently private api.
2023-11-13 22:17:36 +01:00
Matthias Clasen
904d44074f
gsk gl: Handle subsurfaces during rendering
...
During rendering, restack offloaded subsurfaces below the main
surface, and clear the area so they peek through. After rendering,
raise the last subsurface if we haven't drawn over it.
2023-11-13 22:17:36 +01:00
Matthias Clasen
c636baf6f5
gsk gl: Make it possible to clear a rectangle
...
Add a blend mode to the draw command, so it can draw transparent
black. This will be used to erase the area on top of a subsurface
when we do passthrough.
2023-11-13 22:17:36 +01:00
Matthias Clasen
b7c2528ad1
gsk: Prepare subsurface offload
...
Use a GskOffloadInfo to update subsurfaces (and collect info about
them). Pass that info to both the diff and the render vfuncs.
2023-11-13 22:17:36 +01:00