| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
All tests pass with the renderer now, so we can remove useof the
fallback.
|
|
|
|
| |
the GL renderer can't deal with non-integers
|
|
|
|
|
|
| |
Color values must be divisible by 15 to be convertible into U8 and U16
values with the same result. 0x80 is not one of these values, so switch
it to 0x99.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We avoid an offscreen if we know the child node
can 'handle' the transform. Shadow nodes can if their
child node does - either the child node is a text node
in which case the shortcuts we take for shadow nodes
will work fine with the transform (we just render the
text node offset), or the child is not a text node,
in which case we render the shadow to an offscreen
anyway.
This change makes the label-shadows reftest pass with
the GL renderer, not by fixing the issue but by avoiding
it.
|
|
|
|
|
|
|
|
| |
For shadow nodes, we try pretty hard to avoid
rendering shadows, and and we have a shortcut
that just renders text offset, but we can try
harder to do nothing - if the text is offset
by zero, we don't need to draw it at all.
|
|
|
|
|
|
| |
The wrong index was used for offsetting the bottom border rect.
Test included.
|
|
|
|
|
| |
llvmpipe doesn't loike compositing semitransparent khaki onto solid
khaki without rounding errors.
|
|
|
|
| |
All image comparisons are done on textures now.
|
|
|
|
| |
See previous commit about rounding
|
|
|
|
|
| |
0.5 leads to some GL renderers computing 0.5 * 0xFF as 0x7F and
others 0x80, while 0.6 * 0xFF (255 is divisible by 5) is always 0x99.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Tests that overdrawing of content inside an opacity node happens before
the opacity is applied.
This is broken in the GL renderer and causes the opacity.ui reftest to
fail.
|
|
|
|
|
|
|
|
| |
We need to use an offscreen whenever there is overlapping
children somewhere in the tree below, just checking the
direct child of the opacity node is not enough.
Fixes: #4261
|
|
|
|
|
|
|
|
| |
This also switches the rendering code from using gsk_render_node_draw()
to gsk_renderer_render_texture().
Some tests are broken with the GL renderer, so this patch forces the
Cairo renderer until they get fixed.
|
|
|
|
|
| |
We had pixels that did not differ in alpha and we then set 0 alpha
difference hich made the pixel invisible. Oops.
|
|
|
|
|
|
|
|
|
|
| |
The test used to test that GtkBox ordered it's children left-to-right in
CSS, no matter the text direction or pack-type.
But there is neither a pack-type anymore nor does GTK4 do that.
So that test has been broken for yers, it just didn't render anything
wrong.
|
|
|
|
|
| |
There are quite a few places where we can make use of it, in particular
in the testsuite and icontheme.
|
|
|
|
| |
Threads are evil, yo.
|
|
|
|
|
|
|
|
| |
GLES only allows downloading float if the texture matches specific
criteria and I'm too lazy to determine them, so always fall back.
And the custom stride fallback code isn't necessary, because falling
back does exactly that step already.
|
|
|
|
|
| |
GLES can't do glGetTexImage(), so implement a version that does
glReadPixels() on GLES.
|
|
|
|
|
| |
The test randomly fails on CI, so try to be more helpful in debugging
them.
|
|\
| |
| |
| |
| | |
Do not require wayland-protocols as dependency in the .pc files
See merge request GNOME/gtk!3960
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Basically, I was building some packages on Guix. I figured out that
wayland-protocols was listed among propagated-inputs for gtk+ package
(gtk-3-24). propagated-inputs holds a list of runtime dependencies,
that should be available to any other package that depends on gtk+.
While discussing we clarified that wayland-protocols is not runtime
dependency. So I moved it to native-inputs of gtk+ package, which
means that, this dependency will be available only to gtk+ package and
only at build time. Once moved, building of other applications that
depening on gtk+ started to fail.
Investigation showed that, all .pc (pkg-config) files prepared by gtk+
package, was including:
Requires.private: ... wayland-protocols ...
Since it becomes requirement, other applications was failing with
missing dependency wayland-protocols of dependency gtk+, for instance:
-- Checking for module 'gtk+-3.0'
-- Package 'wayland-protocols', required by 'gdk-3.0', not found
While actually wayland-protocols is not even a build time dependency
of application that depends on gtk+. Advertisement of such
requirement, is a bit misleading, because one does not need it at
runtime, especially applications based on gtk.
|
|\
| |
| |
| |
| |
| |
| | |
theme: make toggled tbuttons in toolbars visible
Closes #4264
See merge request GNOME/gtk!3959
|
|/
|
|
|
|
| |
- do what Alex does in libadwaita
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4264
|
|\
| |
| |
| |
| | |
Add gdk_texture_new_from_bytes
See merge request GNOME/gtk!3958
|
| | |
|
| | |
|
|/
|
|
|
| |
Add this new api, and make gdk_texture_new_from_file
a wrapper around it.
|
|\
| |
| |
| |
| | |
Fix memorytexture float conversion
See merge request GNOME/gtk!3957
|
| |
| |
| |
| |
| | |
Just use a GL texture and gdk_texture_save_to_png,
it was made for this.
|
|/
|
|
| |
This was silently dropping the alpha in one case.
|
|\
| |
| |
| |
| | |
Update the README
See merge request GNOME/gtk!3956
|
| | |
|
|/
|
|
|
|
|
| |
Remove the mention of GNU (since that has not been case
for a long time, effectively), state that GTK is hosted
by the GNOME project, and point to GNOME as a place
for donations.
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Annotate gsk_rounded_rect_is_circular as pure
See merge request GNOME/gtk!3952
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Inline _gtk_css_change_for_sibling and
_gtk_css_change_for_child, and mark a few
other functions as const or malloc.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|