Bilal Elmoussaoui
82ca43c3b6
cogl: Port (OnscreenDirtyClosure|FrameClosure) away from Cogl boxed type
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
60dbceac4f
cogl/object: Drop no longer used Handle macros
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
bbdc0b42fc
cogl: Port Program away from CoglObject
...
This also switches from using CoglHandle to CoglProgram where
appropriate
which allowed dropping a duplicated function that had the wrong
signature...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
3aaae11d6b
cogl: Port Shader away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
c1e6948e42
cogl: Port Bitmap away from CoglObject
...
We still need to use set_qdata_full as CoglBitmapPixbuf would free
the data itself by unrefing the pixbuf
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
3c6c6a0ea5
cogl: Port Output away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
946b6c945a
cogl: Port Color to GBoxed
...
Also removes a part of the docs in the private structure as it ends up
being detected as the docs for the public structure causing conflict
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
4afc187062
cogl: Port MatrixStack away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
d71fe5c55e
cogl: Port OnscreenTemplate away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
df8ae83040
cogl: Port Indices away from CoglObject
...
Also renames Indices.get_type to Indices.get_indices_type to avoid
a conflict with the generated Object.get_type function
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
4ea3593ebf
cogl: Port Atlas away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
f0923aab44
cogl: Port Attribute away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
9d71949b26
cogl: Port SwapChain away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
312d5c367e
cogl: Port Snippet away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
1da42dc3c0
cogl: Port Context away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
0f54700101
cogl: Port Display away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
748c1fb9f4
cogl: Port FrameInfo away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Robert Mader
de8f69c787
cogl: Clean up HAVE_COGL_GL(ES2) checks
...
These were leftovers from times when GL(ES) 1.x was still supported.
As we require HAVE_COGL_GL and/or HAVE_COGL_GLES2 to be defined, all
cases for checking both are now redundant.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3338 >
2023-10-27 16:13:37 +00:00
Robert Mader
81c6269ca7
cogl/driver/gl: Clean up pre-3.1 checks
...
They were just leftovers from times when we didn't require a 3.1
context.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3338 >
2023-10-27 16:13:37 +00:00
Robert Mader
898044b9a5
cogl/driver: Remove pixel_format_from_gl_internal
...
It's unused.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3338 >
2023-10-27 16:13:37 +00:00
Robert Mader
26c3686162
cogl: Remove some unused files
...
Note that the .gitignore may prevented other files from being removed in
older checkouts.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3338 >
2023-10-27 16:13:37 +00:00
Michel Dänzer
e3749ac871
Remove unused _cogl_texture_2d_nop_* functions
...
Never used in mutter AFAICT.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178 >
2023-10-26 09:49:29 +00:00
Michel Dänzer
3f0184982d
Remove unused _cogl_poll_renderer_remove_source
...
Never used in mutter AFAICT.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178 >
2023-10-26 09:49:29 +00:00
Michel Dänzer
e803e7718d
Remove unused _cogl_poll_renderer_modify_fd
...
Unused since 865da1457a
("renderer: drop wayland client support").
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178 >
2023-10-26 09:49:29 +00:00
Michel Dänzer
8511041c9e
Remove unused _cogl_pipeline_get_layer_min/mag_filter
...
Unused since 9b16b74b5d
("cogl: Remove unused stuff from
cogl-material-compat.[ch]").
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178 >
2023-10-26 09:49:29 +00:00
Michel Dänzer
0363f68561
Remove unused _cogl_memory_stack_rewind
...
Never used in mutter AFAICT.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178 >
2023-10-26 09:49:29 +00:00
Michel Dänzer
935cb48f71
Remove unused _cogl_framebuffer_get_winsys
...
Unused since 4f3b57c841
("cogl/onscreen: Move buffer age getter vfunc
to class").
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178 >
2023-10-26 09:49:29 +00:00
Michel Dänzer
600bcca747
Remove unused _cogl_pipeline_has_fragment_snippets
...
Unused since 8f58ad02fb
("cogl: Remove fixed pipeline support").
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178 >
2023-10-26 09:49:28 +00:00
Bilal Elmoussaoui
98bd2aa2c2
clutter: Move cairo pixel format to cogl
...
As Cogl already defines a pixel format enum, it makes sense to move such
endian dependant pixel format there
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3086 >
2023-10-25 20:03:08 +00:00
Bilal Elmoussaoui
7bd4e18231
cogl/cleanup: Drop no longer used CoglAngle
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3288 >
2023-10-25 19:06:47 +00:00
Bilal Elmoussaoui
b78951ad09
cogl: Drop can_convert_in_place from TextureLoader
...
As nothing really sets it (see previous commits)
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3097 >
2023-10-23 16:32:35 +00:00
Bilal Elmoussaoui
d492dc7687
cogl: Drop various private constructors
...
They are only useful for passing a different value for convert_in_place
but none of these are used
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3097 >
2023-10-23 16:32:35 +00:00
Bilal Elmoussaoui
138767fa7c
cogl: Drop unnused functions
...
These functions ends-up calling gdk-pixbuf for loading textures/bitmaps
from a file and they don't seem to be used anywhere.
These changes are only useful with the following up commit.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3097 >
2023-10-23 16:32:35 +00:00
Barnabás Pőcze
c58312e249
cogl/onscreen: Add missing error untrap calls
...
Every `mtk_x11_error_trap_push()` must be paired
with an `mtk_x11_error_trap_pop[_with_return]()` call
otherwise all future errors will be caught and ignored
even if they shouldn't be.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3328 >
2023-10-16 15:27:14 +02:00
Ivan Molodetskikh
6cfdbef3c2
cogl/trace: Correct dummy define name
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3317 >
2023-10-09 11:13:10 +04:00
Ivan Molodetskikh
ad3c40cbd0
cogl: Replace HAVE_TRACING with COGL_HAS_TRACING
...
The former was only used in the .c file, everything else uses the latter.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3313 >
2023-10-06 08:38:54 +04:00
Robert Mader
15320b5a66
cogl/pixel-format: Add G16 and RG1616 pixel formats
...
They are needed as "subformats" for higher bit YCbCr formats, such as
P010, and we don't plan to use or expose them otherwise. Thus don't
implement any conversion or packing features.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3244 >
2023-09-13 14:11:27 +02:00
Robert Mader
4c5b2e0e48
cogl: More explicitly mark formats as not supported
...
To ensure they don't get used by accident.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3244 >
2023-09-13 14:11:27 +02:00
Daniel van Vugt
3f7c1be59a
cogl: Remember to bind the GLX context to our drawable before querying
...
Or else `glXQueryDrawable` will fail per the `GLX_EXT_buffer_age` spec:
> If querying GLX_BACK_BUFFER_AGE_EXT and <draw> is not bound to
> the calling thread's current context a GLXBadDrawable error is
> generated.
This mistake went unnoticed until `mtk_x11_error_trap_push` was introduced
(55e3b2e519
) because for some reason it is incapable of trapping
`glXQueryDrawable`. Prior to that it seems
`cogl_onscreen_glx_get_buffer_age` would trap and so always returned zero.
This means we're reenabling clipped redraws on X11 here for the first
time in a long time.
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3007
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3255 >
2023-09-12 13:14:27 +00:00
Carlos Garnacho
55e3b2e519
cogl: Replace xlib error traps with Mtk ones
...
Replace these with Mtk error traps altogether, and avoid stacking
one API over the other here.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3230 >
2023-09-02 09:52:54 +00:00
Daniel van Vugt
025e5d5327
Remove unused *.pc.in
...
It seems *.pc are instead now entirely generated from meson.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3226 >
2023-08-31 09:47:50 +00:00
Bilal Elmoussaoui
7ee5b0c3e6
cogl: Replace cairo_rectangle_int_t with MtkRectangle
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3128 >
2023-08-30 16:46:13 +02:00
Sandro Bonazzola
ff4d87727b
Update license access method
...
Dropped obsolete Free Software Foundation address pointing
to the FSF website instead as suggested by
https://www.gnu.org/licenses/gpl-howto.html
keeping intact the important part of the historical notice
as requested by the license.
Resolving rpmlint reported issue E: incorrect-fsf-address.
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3155 >
2023-08-30 08:48:23 +02:00
Niels De Graef
814a9de9d8
cogl: Chain up to dispose()
...
We forgot to chain up to the parent class' `dispose()` vfunc in both
`CoglPangoRenderer` and `CoglFrameBuffer`. Plugs 2 (probably tiny)
memory leaks.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3203 >
2023-08-22 21:55:17 +02:00
Bilal Elmoussaoui
d10533cc1c
cogl/pango: Fix wrong unref function
...
PangoRenderer is a GObject not a CoglObject
Noticed while working on
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3197 >
2023-08-21 15:55:18 +00:00
Georges Basile Stavracas Neto
fdc3f3fec3
cogl/renderer: Pass pixel format to DMA-BUF constructor
...
In future commits, we will want to create DMA-BUFs with pixel
formats other than COGL_PIXEL_FORMAT_BGRX_8888. In preparation
for that, let's start passing a new pixel format parameter to
this function, and the corresponding winsys vfunc.
All callers of this function pass COGL_PIXEL_FORMAT_BGRX_8888
for now. Next commits will change that.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3175 >
2023-08-19 23:00:28 -03:00
Bilal Elmoussaoui
cd27cb5c85
cleanup: Fix various typos
...
Using the typos cli app
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3169 >
2023-08-12 20:13:37 +00:00
Bilal Elmoussaoui
f2f9e63568
build/gi: Set header & pkgconfig names
...
So that the docs generated by gi-docgen contains them
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3087 >
2023-08-12 19:34:20 +00:00
Jonas Ådahl
dec8577e4b
cogl/framebuffer: Fix blitting from premult to opaque
...
We stopped putting "premultiplied" in opaque formats - that broke the
condition in cogl_blit_framebuffer() if the source was ARGB, but the
target was XRGB.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3159 >
2023-08-09 11:07:46 +00:00
Bilal Elmoussaoui
a955f0e47c
cleanup: Make include macro usages consistent
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3157 >
2023-08-07 22:24:36 +00:00