summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: Add tests for gdk_texture_download_float()wip/otte/float-texturesBenjamin Otte2021-09-121-0/+99
|
* testsuite: Add memory test support for OpenGL up/downloadsBenjamin Otte2021-09-121-16/+106
| | | | | | | 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.
* testsuite: Add tests uploading the memorytexturesBenjamin Otte2021-09-121-4/+23
| | | | Use a GL renderer and render_texture() them.
* testsuite: Rework memorytexture test some moreBenjamin Otte2021-09-121-58/+44
| | | | Instead of predefined colors, generate them randomly.
* testsuite: Overhaul memorytexture testBenjamin Otte2021-09-121-122/+327
| | | | | Instead of hardcoding pixel values, allow construction of textures by filling them with GdkRGBA values.
* gl: Implement uploading and downloading HDR formatsBenjamin Otte2021-09-122-55/+104
| | | | | Also refactor the GL uploading so it does the fallback in a GLES-compatible way, which means we only need one fallback.
* memorytexture: Add support for HDR formatsBenjamin Otte2021-09-122-4/+311
| | | | | Also sanitize the input bytes so the strides match alignment requirements of the data types.
* texture: Add gdk_texture_download_float()Benjamin Otte2021-09-126-0/+217
|
* gdk: Deprecate gdk_cairo_draw_from_gl()Benjamin Otte2021-09-122-2/+8
| | | | | | 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.
* gltexture: Implement download() via glGetTexImage()Benjamin Otte2021-09-121-19/+23
| | | | | | | | | 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.
* gltexture: Make release() use download_texture()Benjamin Otte2021-09-121-15/+1
| | | | | | | | | 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.
* texture: Add gdk_texture_download_texture()Benjamin Otte2021-09-124-5/+115
| | | | | | | | | | | | | | | | | | | | 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.
* texture: Add GdkMemoryConversion private enumBenjamin Otte2021-09-126-24/+38
| | | | | Now gdk_memory_convert() converts to one of these conversions instead of re(ab)using parts of the GdkMemoryFormat enum.
* gltexture: release() to a texture, not a cairo_surfaceBenjamin Otte2021-09-121-34/+28
| | | | | This makes forwarding vfuncs a lot easier, because we can just call them on the texture.
* texture: Remove unused argument from vfuncBenjamin Otte2021-09-124-39/+16
|
* Update Hungarian translationBalázs Úr2021-09-111-1542/+862
|
* Merge branch 'wip/otte/for-master' into 'master'Benjamin Otte2021-09-111-8/+12
|\ | | | | | | | | rendernode: Write the whole node See merge request GNOME/gtk!3938
| * rendernode: Write the whole nodeBenjamin Otte2021-09-111-8/+12
| | | | | | | | | | 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.
* | Merge branch 'hsl' into 'master'Benjamin Otte2021-09-1112-40/+195
|\ \ | | | | | | | | | | | | gdk_rgba_parse: Support HSL colors See merge request GNOME/gtk!3899
| * | gdk_rgba_parse: Support HSL colorsJames Westman2021-09-1012-40/+195
| | |
* | | Update French translationGuillaume Bernard2021-09-111-1018/+1096
| | | | | | | | | | | | (cherry picked from commit 8ffd7e9f87cfd3ce51c6b4b7a91bfe40670c89bb)
* | | Update French translationGuillaume Bernard2021-09-111-1742/+1777
| | | | | | | | | | | | (cherry picked from commit f433c543fe7a11953362f09274f9e29d088815f9)
* | | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-09-117-316/+235
|\ \ \ | |/ / |/| | | | | | | | Stop using config.h.meson See merge request GNOME/gtk!3936
| * | Refactor gdk_gl_context_upload_texture slightlyMatthias Clasen2021-09-101-3/+9
| | | | | | | | | | | | | | | | | | Introduce a gl_internalformat variable. This will let us handle more formats in a uniform way in future commits.
| * | Add vectorized half-float conversionMatthias Clasen2021-09-104-20/+225
| | | | | | | | | | | | | | | | | | | | | | | | We can't make the -4 versions inline, since we use ifuncs for them, so make vectorized versions. Test included.
| * | Stop using config.h.mesonMatthias Clasen2021-09-102-293/+1
|/ / | | | | | | | | It isn't necessary and makes us miss defines when we forget to update it.
* | Update German translationPhilipp Kiemle2021-09-101-974/+1012
| | | | | | | | (cherry picked from commit 6228954524cfe153b20673f356a26eaba9f9e846)
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-09-101-1/+1
|\ \ | | | | | | | | | | | | Fix the testupload test See merge request GNOME/gtk!3934
| * | Fix the testupload testMatthias Clasen2021-09-101-1/+1
|/ / | | | | | | This can only ever have worked by accident.
* | Update Turkish translationEmin Tufan Çetin2021-09-101-316/+371
| |
* | Update Swedish translationAnders Jonsson2021-09-081-39/+55
|/
* Update Chinese (China) translationBoyuan Yang2021-09-051-1381/+2142
|
* Update Romanian translationDaniel Șerbănescu2021-09-051-537/+549
| | | | (cherry picked from commit bb72acf9cd341ca30c55a0392c842e955b42e58d)
* Update Romanian translationDaniel Șerbănescu2021-09-051-464/+510
| | | | (cherry picked from commit 63d829bbc182bb06fe28a2e649f50360bc4442b8)
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-09-051-28/+40
|\ | | | | | | | | inspector: Cosmetics See merge request GNOME/gtk!3925
| * inspector: CosmeticsMatthias Clasen2021-09-051-28/+40
|/ | | | | | Make some settings entries smaller, and make the scales match in size. Also, inline adjustments in the ui file, since we can do that now.
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-09-053-12/+3
|\ | | | | | | | | Avoid hand-rolled color glyph information See merge request GNOME/gtk!3924
| * Bump pango req to 1.49.1Matthias Clasen2021-09-052-2/+2
| | | | | | | | | | We are using pango api that was introduced in 1.49.1 without ifdefs, so we should require it.
| * Avoid hand-rolled color glyph informationMatthias Clasen2021-09-051-10/+1
|/ | | | | | Followup to b244f31337eea. Pango provides color glyph information for us now, so we don't need to steal a bit anymore.
* Update Swedish translationAnders Jonsson2021-09-051-539/+585
| | | | (cherry picked from commit 19af9601636691fe13ba15bc4b69f18df175c7ca)
* Update Hebrew translationYaron Shahrabani2021-09-051-804/+908
|
* Merge branch 'better-font-rendering-demo' into 'master'Matthias Clasen2021-09-052-48/+232
|\ | | | | | | | | gtk-demo: Improve the font rendering demo See merge request GNOME/gtk!3923
| * gtk-demo: Font rendering - Add some blingMatthias Clasen2021-09-041-35/+98
| | | | | | | | Fade the outlines and pixels in and out.
| * gtk-demo: Font rendering - expand docsMatthias Clasen2021-09-041-1/+6
| |
| * gtk-demo: Font rendering - Add keynavMatthias Clasen2021-09-042-12/+47
| | | | | | | | | | Add mnemonics to most controls, and make Ctrl+/- change the zoom.
| * gtk-demo: Font rendering - add outlinesMatthias Clasen2021-09-042-30/+102
| | | | | | | | Should outlines as well.
| * gtk-demo: Font rendering - better startMatthias Clasen2021-09-041-2/+1
| | | | | | | | | | | | Turn antialiasing on initially, and turn the extents and grid off. Otherwise we show pretty shocking rendering right from the start.
| * gtk-demo: Font rendering - improve the gridMatthias Clasen2021-09-041-4/+19
| | | | | | | | Allow changing the character shown in the grid.
| * CosmeticsMatthias Clasen2021-09-041-5/+0
| | | | | | | | | | Remove an unused object from the font rendering demo ui file.
* | Merge branch 'ebassi/accel-parse-doc' into 'master'Matthias Clasen2021-09-041-6/+17
|\ \ | |/ |/| | | | | Improve the gtk_accelerator_parse() docs See merge request GNOME/gtk!3921