Matthias Clasen
4439ff0c12
testsuite: Stop running tests for the gl renderer
...
It does not exist anymore.
2021-09-14 16:12:55 -04:00
Matthias Clasen
ffab67ac70
testsuite: Call g_test_init in test binaries
...
Without it, we mess out on G_DEBUG=fatal-warnings,
so our ci does not alert us that we run a bunch of
tests which spit out warnings.
2021-09-14 16:12:55 -04:00
Lukáš Tyrychtr
0120ff3518
Merge branch 'master' into menu_button_a11y_improvements
2021-09-14 15:34:14 +02:00
Matthias Clasen
2e63b53b1e
Merge branch 'fix_accessible_described_by' into 'master'
...
Fix generation of accessible description in presence of described by relations
See merge request GNOME/gtk!3948
2021-09-14 13:29:28 +00:00
Matthias Clasen
878c9da736
Merge branch 'test-leak-fixes' into 'master'
...
testsuite: Fix a few memory leaks
See merge request GNOME/gtk!3947
2021-09-14 13:14:10 +00:00
Lukáš Tyrychtr
955d50a080
Fix generation of accessible description in presence of described by relations
...
The loop going through the relation list should have stopped on the NULL sentinel value, however it never accesed the next list element.
2021-09-14 14:33:30 +02:00
Matthias Clasen
2b4f798e34
testsuite: Fix a few memory leaks
...
These are keeping the asan build in ci from passing.
2021-09-14 08:29:45 -04:00
Matthias Clasen
cda5d2dadd
Merge branch 'tiff-ci' into 'master'
...
ci: Add libtiff-devel to the image
See merge request GNOME/gtk!3946
2021-09-14 12:27:39 +00:00
Lukáš Tyrychtr
b664b2d1fd
Set correct accessible relations for GtkMenuButton
...
Up until now, as the focus was moved to the inner button, it was not possible for
assistive technologies to determine the correct labels and descriptions
because developers could set them only for the parent widget.
Now, the proper relations are added so the labels should be picked up properly.
Fixes #4254
2021-09-14 14:26:18 +02:00
Matthias Clasen
c70fdd6331
ci: Use the v4 image
2021-09-14 08:06:09 -04:00
Matthias Clasen
ddec3dedd0
ci: Add libtiff-devel to the image
...
We want to require libtiff in our build.
2021-09-14 08:06:09 -04:00
Matthias Clasen
b1a5c3ff55
Merge branch 'wip/exalm/papercuts' into 'master'
...
Fix 2 papercuts
See merge request GNOME/gtk!3945
2021-09-14 11:36:25 +00:00
Alexander Mikhaylenko
8f9a5175f0
media-controls: Make play button flat
...
Match the volume button.
2021-09-14 12:23:03 +05:00
Alexander Mikhaylenko
099c923679
searchbar: Vertically center the close button
2021-09-14 12:22:45 +05:00
Matthias Clasen
2a12a3e6d9
Merge branch 'fix_#4255' into 'master'
...
stack: Dispose children before emitting items-changed
Closes #4255
See merge request GNOME/gtk!3943
2021-09-13 16:10:37 +00:00
Julian Sparber
cdc1fa166d
stack: Dispose children before emitting items-changed
...
This makes sure that the `GListModel` returned by
`gtk_stack_get_pages()` actually has the items removed before
`items-changed` is emitted.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4255
2021-09-13 17:19:05 +02:00
Benjamin Otte
f572ca52d2
Merge branch 'wip/otte/texture-threads' into 'master'
...
gltexture: Make sure downloading textures works in a different thread
See merge request GNOME/gtk!3942
2021-09-13 00:16:30 +00:00
Benjamin Otte
193b383739
ngl: Simplify and unbug texture download
...
If we can't handle the texture, always just download_texture() it,
that way we are sure it's a memory texture.
2021-09-13 01:56:47 +02:00
Benjamin Otte
6785461c26
gltexture: Make sure downloading textures works in a different thread
...
This happens in the real world when using the inspector to look at a
node recording of a GStreamer video while the video is still playing.
GStreamer will use the GL context in a different thread while we are
busy trying to download it.
A test is included.
2021-09-13 01:40:03 +02:00
Philipp Kiemle
b9ee9979e7
Update German translation
...
(cherry picked from commit 17d828fda2
)
2021-09-12 21:45:48 +00:00
Benjamin Otte
6bbec87700
Merge branch 'wip/otte/float-textures' into 'master'
...
Add float texture formats
See merge request GNOME/gtk!3940
2021-09-12 12:55:00 +00:00
Balázs Úr
b35608a351
Update Hungarian translation
2021-09-12 06:03:58 +00:00
Benjamin Otte
416763bf2d
testsuite: Add tests for gdk_texture_download_float()
2021-09-12 05:54:37 +02:00
Benjamin Otte
9179ebb28e
testsuite: Add memory test support for OpenGL up/downloads
...
Use a GL renderer to upload textures (and then optionally download them
via release() again). This way, we can test that the GL renderer
properly uploads textures to the right formats (not losing information
for HDR for example) and downloads them again.
2021-09-12 05:54:37 +02:00
Benjamin Otte
bcc17b3033
testsuite: Add tests uploading the memorytextures
...
Use a GL renderer and render_texture() them.
2021-09-12 05:54:37 +02:00
Benjamin Otte
00439f9e5c
testsuite: Rework memorytexture test some more
...
Instead of predefined colors, generate them randomly.
2021-09-12 05:54:37 +02:00
Benjamin Otte
c9d748fc51
testsuite: Overhaul memorytexture test
...
Instead of hardcoding pixel values, allow construction of textures by
filling them with GdkRGBA values.
2021-09-12 05:54:37 +02:00
Benjamin Otte
719eafa60c
gl: Implement uploading and downloading HDR formats
...
Also refactor the GL uploading so it does the fallback in a
GLES-compatible way, which means we only need one fallback.
2021-09-12 05:54:37 +02:00
Benjamin Otte
1759d27da9
memorytexture: Add support for HDR formats
...
Also sanitize the input bytes so the strides match alignment
requirements of the data types.
2021-09-12 05:54:37 +02:00
Benjamin Otte
53275481a5
texture: Add gdk_texture_download_float()
2021-09-12 05:54:37 +02:00
Benjamin Otte
cbe6d0da76
gdk: Deprecate gdk_cairo_draw_from_gl()
...
It's broken with various pixel formats and OpenGL ES, it's hard to
understand what everything does, and gdk_texture_download() can be used
instead.
2021-09-12 05:54:37 +02:00
Benjamin Otte
c349ed9562
gltexture: Implement download() via glGetTexImage()
...
1. The download via gdk_cairo_draw_from_gl() was broken sometimes
2. We get easy conversion on fallback by chaining up and using
download_texture().
3. One more place where Cairo is no longer necessary.
2021-09-12 05:22:21 +02:00
Benjamin Otte
74ce69a8a1
gltexture: Make release() use download_texture()
...
1. It avoids Cairo, and in particular conversion to Cairo.
2. Keeping a texture allows easy chaining in the vfuncs.
3. Using a texture means releasing will work for HDR formats
too, once we add them.
2021-09-12 05:22:21 +02:00
Benjamin Otte
4f17f3ac24
texture: Add gdk_texture_download_texture()
...
A private vfunc that downloads a texture as a GdkMemoryTexture in
whatever format the texture deems best.
There are multiple reasons for this:
* GLES cannot download the Cairo format. But it can download some
format and then just delegate to the GdkMemoryTexture implementation.
* All the other download vfuncs (including the ones still coming) can
be implemented via download_texture() and delegation, making the
interface easier.
* We want to implement image loading and saving support. By using
download_texture(), we can save in the actual format of the texture.
* A potential GdkCompressedTexture could be implemented by just
providing this one vfunc as a compress() step.
2021-09-12 05:22:21 +02:00
Benjamin Otte
9c8e464b04
texture: Add GdkMemoryConversion private enum
...
Now gdk_memory_convert() converts to one of these conversions instead of
re(ab)using parts of the GdkMemoryFormat enum.
2021-09-12 05:22:21 +02:00
Benjamin Otte
51d0d13a9e
gltexture: release() to a texture, not a cairo_surface
...
This makes forwarding vfuncs a lot easier, because we can just call them
on the texture.
2021-09-12 05:22:21 +02:00
Benjamin Otte
0ee3b1c861
texture: Remove unused argument from vfunc
2021-09-12 05:22:21 +02:00
Balázs Úr
46f88c69a1
Update Hungarian translation
2021-09-11 23:45:21 +00:00
Benjamin Otte
140976a670
Merge branch 'wip/otte/for-master' into 'master'
...
rendernode: Write the whole node
See merge request GNOME/gtk!3938
2021-09-11 20:56:39 +00:00
Benjamin Otte
9f2b847835
rendernode: Write the whole node
...
It turns out g_output_stream_write_bytes() does not write the bytes.
It should be renamed to g_output_stream_write_some_of_the_bytes() maybe.
2021-09-11 22:28:40 +02:00
Benjamin Otte
9e11ea699c
Merge branch 'hsl' into 'master'
...
gdk_rgba_parse: Support HSL colors
See merge request GNOME/gtk!3899
2021-09-11 12:57:25 +00:00
Guillaume Bernard
1a4eebe022
Update French translation
...
(cherry picked from commit 8ffd7e9f87
)
2021-09-11 09:41:32 +00:00
Guillaume Bernard
2963468019
Update French translation
...
(cherry picked from commit f433c543fe
)
2021-09-11 09:36:48 +00:00
Matthias Clasen
bfbd95d7d6
Merge branch 'matthiasc/for-master' into 'master'
...
Stop using config.h.meson
See merge request GNOME/gtk!3936
2021-09-11 02:53:43 +00:00
Matthias Clasen
c1c1d4431d
Refactor gdk_gl_context_upload_texture slightly
...
Introduce a gl_internalformat variable. This will
let us handle more formats in a uniform way in
future commits.
2021-09-10 22:17:31 -04:00
Matthias Clasen
155a4fac5c
Add vectorized half-float conversion
...
We can't make the -4 versions inline, since
we use ifuncs for them, so make vectorized
versions.
Test included.
2021-09-10 22:17:31 -04:00
Matthias Clasen
76f481eb7b
Stop using config.h.meson
...
It isn't necessary and makes us miss defines when
we forget to update it.
2021-09-10 21:08:07 -04:00
James Westman
0782c8a051
gdk_rgba_parse: Support HSL colors
2021-09-10 16:56:42 -05:00
Philipp Kiemle
3d27ff1177
Update German translation
...
(cherry picked from commit 6228954524
)
2021-09-10 19:55:59 +00:00
Matthias Clasen
3ada664a89
Merge branch 'matthiasc/for-master' into 'master'
...
Fix the testupload test
See merge request GNOME/gtk!3934
2021-09-10 13:54:37 +00:00