| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The primary goal here was to cleanup the current GL renderer to make
maintenance easier going forward. Furthermore, it tracks state to allow
us to implement more advanced renderer features going forward.
## Reordering
This renderer will reorder batches by render target to reduce the number
of times render targets are changed.
In the future, we could also reorder by program within the render target
if we can determine that vertices do not overlap.
## Uniform Snapshots
To allow for reordering of batches all uniforms need to be tracked for
the programs. This allows us to create the full uniform state when the
batch has been moved into a new position.
Some care was taken as it can be performance sensitive.
## Attachment Snapshots
Similar to uniform snapshots, we need to know all of the texture
attachments so that we can rebind them when necessary.
## Render Jobs
To help isolate the process of creating GL commands from the renderer
abstraction a render job abstraction was added. This could be extended
in the future if we decided to do tiling.
## Command Queue
Render jobs create batches using the command queue. The command queue
will snapshot uniform and attachment state so that it can reorder
batches right before executing them.
Currently, the only reordering done is to ensure that we only visit
each render target once. We could extend this by tracking vertices,
attachments, and others.
This code currently uses an inline array helper to reduce overhead
from GArray which was showing up on profiles. It could be changed to
use GdkArray without too much work, but had roughly double the
instructions. Cycle counts have not yet been determined.
## GLSL Programs
This was simplified to use XMACROS so that we can just extend one file
(gskglprograms.defs) instead of multiple places. The programs are added
as fields in the driver for easy access.
## Driver
The driver manages textures, render targets, access to atlases,
programs, and more. There is one driver per display, by using the
shared GL context.
Some work could be done here to batch uploads so that we make fewer
calls to upload when sending icon theme data to the GPU. We'd need
to keep a copy of the atlas data for such purposes.
|
|\
| |
| |
| |
| | |
Unintrusive compose preedit
See merge request GNOME/gtk!3220
|
| |
| |
| |
| |
| |
| |
| | |
Tweak the preedit text we get from IBus (via the compositor) to
match what GtkIMContextSimple produces for Compose sequences now.
This provides a unified experience.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Tweak the preedit display for Compose sequences to
be not so distracting. We only show the Compose key
when it occurs in the middle of the sequence or is
the only key so far, and use · instead of ⎄ for it.
Also, make sure to display dead keys more adequately.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
gdk/wayland: Look for font settings recursively
Closes #3680
See merge request GNOME/gtk!3218
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
Use the infrastructure already available to look up keys, instead.
This does the right thing and looks up the setting across all
sources.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3680
|
|\ \
| |/
|/|
| |
| | |
widget: Don't assume GtkWindow root in gtk_widget_propagate_state()
See merge request GNOME/gtk!3217
|
|/
|
|
| |
Avoid crashes with GtkDragIcon children.
|
|\
| |
| |
| |
| |
| |
| | |
Matthiasc/for master
Closes #3679 and #3678
See merge request GNOME/gtk!3216
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In some cases, we were inadvertedly merging the
preedit attributes into priv->attrs, instead of
keeping them separate. This was causing the underlines
to grow beyond the preedit and never go away. One
place where this was showing up is the fontchooser
preview.
Fixes: #3679
|
| |
| |
| |
| |
| |
| | |
It should not matter, but it is the right thing to
do to limit the preedit attributes to the length
of the preedit text.
|
| |
| |
| |
| |
| |
| | |
Not doing so only invites hexboxes.
Fixes: #3678
|
| |
| |
| |
| |
| |
| |
| | |
Instead of bending GtkGizmo to the breaking point,
split off a GtkPanedHandle class that just does
what is needed here. Its simpler, and lets us keep
GtkGizmo simpler too. Everybody wins.
|
|/
|
|
|
| |
Forgot to include config.h. Oops, and we make things
a bit shorter still.
|
|\
| |
| |
| |
| |
| |
| | |
Matthiasc/for master
Closes #3676 and #3675
See merge request GNOME/gtk!3215
|
| |
| |
| |
| |
| |
| |
| | |
Putting non-exported symbols in public headers can
only lead to confusion and day drinking. Don't do it.
Fixes: #3676
|
|/
|
|
|
|
|
| |
gsk_text_node_has_color_glyphs was not properlty exported,
by accident.
Fixes: #3675
|
|\
| |
| |
| |
| | |
Matthiasc/for master
See merge request GNOME/gtk!3214
|
| |
| |
| |
| | |
This reverts commit 39f72b38341d2ff2d67c2043ce04915797d24fb8.
|
| |
| |
| |
| | |
This reverts commit bb0a1b0cfe74d74c97ba2711d1827843d21a2c81.
|
|/
|
|
|
|
|
| |
Instead of bending GtkGizmo to the breaking point,
split off a GtkPopoverContent class that just does
what is needed here. Its simpler, and lets us keep
GtkGizmo simpler too.
|
|\
| |
| |
| |
| | |
Reduce duplication in reftests
See merge request GNOME/gtk!3203
|
| |
| |
| |
| |
| |
| |
| | |
The only non-whitespace difference is that the copy in GSK does not
set the symbol's visibility.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
| |
| |
| |
| |
| |
| |
| | |
This is the only non-whitespace difference between the copies in
testsuite/reftests/ and testsuite/gsk/.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Adwaita: control surface for resize tiled windows
Closes #3670
See merge request GNOME/gtk!3211
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
- window resizing control area is implemented as where the shadows are drawn
- create a 'fake' shadow for the tiled case to allow easier resizing of
the tiled window ratio even if it's offset to the side of the border
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3670
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Adwaita: avoid fine-tune scrollbars jumping
Closes #3672
See merge request GNOME/gtk!3208
|
|/ /
| |
| |
| | |
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3672
|
|\ \
| | |
| | |
| | |
| | | |
wayland: Complete our buffer format listing
See merge request GNOME/gtk!3207
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The debug spew for printing out supported buffer
formats was missing a bunch, among them the fp16
formats that are interesting for HDR support.
Add them.
Note that we still only support ARGB8888. But
at least we can print out what don't support.
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
gizmo: Chain up in css_changed
See merge request GNOME/gtk!3206
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
css_changed is a vfunc that *must* chain up.
Failure to do so broke the resizing of overlay scrollbars,
amongst other things.
This bug was introduced in 39f72b38341d2ff2d67.
|
|\ \
| | |
| | |
| | |
| | | |
imcontext: Be more lenient in parsing Compose
See merge request GNOME/gtk!3201
|
| | |
| | |
| | |
| | |
| | |
| | | |
Avoid leaking value in error cases, and actually
emit a warning for a missing quote. Pointed out
by Peter Bloomfield.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
X11 allows keysyms to be specified in addition to strings.
We only support the strings. In the past, we ignored everything
after the string. Go back to doing that, but issue a warning
that we've ignored the keysym.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Adwaita: Scrollbar transitions and size
Closes #1886
See merge request GNOME/gtk!3204
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- tone down the size of the controller again
- transition between the indicator and control fluidly
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/1886
|
| |/ /
|/| | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix compose comments
Closes #3664
See merge request GNOME/gtk!3199
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We accidentally dropped the handing of # comments.
Bring it back. Test included.
Fixes: #3664
|
| | |/
| |/| |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Support shadows on popovers
See merge request GNOME/gtk!3089
|
| | | |
| | | |
| | | |
| | | | |
Mention more of the supported style classes.
|
| | | |
| | | |
| | | |
| | | | |
Mention that shadows are now possible.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
When the box-shadow css property of the contents
widget changes, queue a resize on the popover.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
In a break from the current gizmo api, add a separate
setter, since the calls with long argument lists full
of NULL are getting out of hand.
|