Bilal Elmoussaoui
1d47e809e4
cogl/cleanup: Use construct-only properties instead of a custom init function
...
It only made sense pre-GObjectified Texture types
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
863163cc6e
cogl: Port Texture* away from CoglObject
...
- Make Texture a parent GObject class and move the vtable funcs as vfuncs
instead of an interface as we would like to have dispose free the TextureLoader.
- Make the various texture sub-types inherit from it.
- Make all the sub-types constructors return a CoglTexture instead of their respective
specific type. As most of the times, the used functions accept a CoglTexture,
like all the GTK widgets constructors returning GtkWidget.
- Fix up the basics of gi-docgen for all these types.
- Remove CoglPrimitiveTexture as it is useless: It is just a texture underhood.
- Remove CoglMetaTexture: for the exact same reason as above.
- Switch various memory management functions to use g_ variant instead of the cogl_ one
Note we would still want to get rid of the _cogl_texture_init which is something
for the next commit
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
586c43d5a9
clutter/cogl: Use more of memory management helpers
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
75023d96bc
cogl: Port Renderer away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
4792db371a
cogl/cleanup: Stop using CoglHandle
...
We use a GParamSpecPointer for CoglPipeline until that
gets ported from CoglObject
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
c8b4568973
cogl: Drop no longer used define boxed macro
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
93216b3c11
cogl: Port MatrixEntry 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
686081077a
cogl: Port Journal away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
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
Bilal Elmoussaoui
f2c55d6479
cleanup: Remove header only functions
...
The functions are defined only in the header file and don't have
an actual implementation
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3352 >
2023-10-28 12:37:31 +02: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
Bilal Elmoussaoui
f84e789e4a
clutter: Drop LayerNode.new constructor
...
My motivation was at first to replace cairo_rectangle_t with graphene_rect_t
but noticed nothing uses it anywhere: Shell/Kiosk/Gala; so it is safe
to just drop and people could still use the new_to_framebuffer ctor
and handle setting up things themselves if needed.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3240 >
2023-10-26 17:31:13 +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
4238a4c30b
Remove unused _clutter_stage_window_set_title
...
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
f128bb4db1
Remove unused _clutter_stage_window_get_wrapper
...
Unused since 89daa8d4fa
("wayland: drop wayland backend").
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178 >
2023-10-26 09:49:29 +00:00
Michel Dänzer
adb53e5745
Remove unused _clutter_stage_get_default_window
...
Unused since 28cb025190
("clutter: Remove DELETE event, signal and vfunc").
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178 >
2023-10-26 09:49:29 +00:00
Michel Dänzer
4263db65e3
Remove unused clutter_set_allowed_drivers
...
Unused since d1c62d882a
("clutter: Do not read settings from ini file").
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3178 >
2023-10-26 09:49:29 +00:00
Michel Dänzer
d2058255b3
Remove unused CBZ_L2T_INTERPOLATION
...
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
e00424f4dd
Remove unused _clutter_bezier_clone_and_move
...
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
f045475b7f
Remove unused _clutter_bezier_adjust
...
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
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
Sebastian Wick
cfb3a20215
core/window: Don't mark comment as documentation
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3347 >
2023-10-25 20:45:10 +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
b65f333483
clutter: Drop cairo_clear helper
...
It is used once in gnome-shell, so it is better to just move it content
there.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3086 >
2023-10-25 20:03:08 +00:00
Bilal Elmoussaoui
c0fdf0a470
clutter: Drop set_source_color helper
...
The helper doesn't do anything that makes it worth
to be exposed as public API. End-users, such as GNOME Shell could have
an in-tree helper if they end up using it that much.
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