mutter/cogl/cogl
Jonas Ådahl 9117419940 cogl/texture: Type check introspected calls
CoglTexture can be used by e.g. Javascript, and the convention is to be
more forgiving regarding passed input so that invalid Javascript calls
doesn't cause actual SIGSEGV/SIGABRT. As elsewhere, do this by
sprinkeling g_return(_val)_if_fail() on introspected functions.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=2124322
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2616>
2022-09-20 13:38:41 +00:00
..
deprecated cogl: Drop CoglHandleObject and CoglHandleClass 2022-05-31 16:28:16 -03:00
driver cogl: Don't check glGetError for functions that don't return errors 2022-09-19 14:24:39 +00:00
gl-prototypes cogl: Fix GL_EXT_discard_framebuffer extension check 2021-08-24 18:33:09 +02:00
winsys cogl: Remove version 2022-08-08 21:59:12 +00:00
cogl1-context.h cogl: Remove cogl_get_option_group 2022-05-31 16:25:11 -03:00
cogl-atlas-texture-private.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-atlas-texture.c *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
cogl-atlas-texture.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-atlas.c cogl: Remove unneeded driver/ includes from the core 2019-10-21 16:32:46 -04:00
cogl-atlas.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-attribute-buffer-private.h
cogl-attribute-buffer.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-attribute-buffer.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-attribute-private.h cogl: Remove the framebuffer and source stacks 2019-12-03 19:02:14 +00:00
cogl-attribute.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-attribute.h *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
cogl-bitmap-conversion.c cogl: Add XRGB_FP_16161616 and XBGR_FP_16161616 formats 2021-09-20 14:39:20 +00:00
cogl-bitmap-packing.h cogl: Add XRGB_FP_16161616 and XBGR_FP_16161616 formats 2021-09-20 14:39:20 +00:00
cogl-bitmap-pixbuf.c *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
cogl-bitmap-private.h cogl: Move _cogl_bitmap_gl_{,un}bind into the GL driver 2019-10-21 16:32:46 -04:00
cogl-bitmap.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-bitmap.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-bitmask.c cogl: Move out bitmask unit test to separate file 2022-08-08 21:59:13 +00:00
cogl-bitmask.h cogl: Move out bitmask unit test to separate file 2022-08-08 21:59:13 +00:00
cogl-blend-string.c Use G_GNUC_FALLTHROUGH instead of comments 2020-01-09 17:58:29 +01:00
cogl-blend-string.h
cogl-blit.c cogl: Turn CoglFramebuffer, CoglOffscreen and CoglOnscreen into GObjects 2020-10-16 16:17:38 +00:00
cogl-blit.h
cogl-boxed-value.c Change all g_memdup() to g_memdup2() 2021-02-04 19:16:28 +01:00
cogl-boxed-value.h
cogl-buffer-private.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-buffer.c *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
cogl-buffer.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-clip-stack.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-clip-stack.h Remove CoglMatrix 2020-10-06 15:34:48 +00:00
cogl-closure-list-private.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-closure-list.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-color-private.h
cogl-color.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-color.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-context-private.h cogl: Remove deprecated backface_culing API 2021-12-07 15:32:21 +00:00
cogl-context.c cogl/context: Add transfer full annotation to destroy timestamp query 2022-04-05 12:40:56 +02:00
cogl-context.h cogl: Merge FEATURE_ID_GET_GPU_TIME into FEATURE_ID_TIMESTAMP_QUERY 2022-01-27 22:58:59 +00:00
cogl-debug-options.h cogl: Add new option COGL_DEBUG=stencilling to disable optimizations 2021-06-01 15:42:52 +08:00
cogl-debug.c cogl: Remove cogl_get_option_group 2022-05-31 16:25:11 -03:00
cogl-debug.h cogl: Add new option COGL_DEBUG=stencilling to disable optimizations 2021-06-01 15:42:52 +08:00
cogl-defines.h.in
cogl-defines.h.meson cogl: Unify HAS_X11/HAS_XLIB build configs 2022-05-25 16:42:04 +02:00
cogl-depth-state-private.h
cogl-depth-state.c
cogl-depth-state.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-display-private.h cogl: Remove ability to bind Wayland EGL display 2021-05-18 14:03:22 +00:00
cogl-display.c cogl: Remove ability to bind Wayland EGL display 2021-05-18 14:03:22 +00:00
cogl-display.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-dma-buf-handle.c cogl: Turn CoglFramebuffer, CoglOffscreen and CoglOnscreen into GObjects 2020-10-16 16:17:38 +00:00
cogl-dma-buf-handle.h screen-cast: Test allocate DMA buffer with implicit API 2022-04-22 12:08:04 +00:00
cogl-driver.h cogl: Fix build without X11 2022-05-25 16:42:04 +02:00
cogl-egl-defines.h.in
cogl-egl-private.h
cogl-egl.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-feature-private.c cogl: Remove unused CoglFeatureFlags 2019-10-21 21:43:08 +00:00
cogl-feature-private.h cogl: Remove unused CoglFeatureFlags 2019-10-21 21:43:08 +00:00
cogl-fence-private.h
cogl-fence.c cogl: Fix build without X11 2022-05-25 16:42:04 +02:00
cogl-fence.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-flags.h
cogl-frame-info-private.h cogl: Add CPU swap time and GPU rendering query to CoglFrameInfo 2021-07-13 08:09:42 +00:00
cogl-frame-info.c cogl: Store CPU and GPU rendering timestamps in frame info 2021-07-13 08:09:42 +00:00
cogl-frame-info.h cogl: Add CPU swap time and GPU rendering query to CoglFrameInfo 2021-07-13 08:09:42 +00:00
cogl-framebuffer-driver.c cogl/framebuffer: Move read_pixels_into_bitmap() to driver class 2021-01-30 09:11:46 +00:00
cogl-framebuffer-driver.h cogl/framebuffer: Move read_pixels_into_bitmap() to driver class 2021-01-30 09:11:46 +00:00
cogl-framebuffer-private.h cogl/pipeline/opengl: Move out unit test to separate file 2022-08-08 21:59:13 +00:00
cogl-framebuffer.c cogl/journal: Make CoglJournal a free-form struct 2022-05-31 16:28:16 -03:00
cogl-framebuffer.h cogl: Remove usages of framebuffer_draw_primitive 2021-12-07 15:32:21 +00:00
cogl-gl-header.h.in
cogl-glib-source.c Name unnamed sources 2022-03-04 10:10:05 +03:00
cogl-glib-source.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-glsl-shader-boilerplate.h
cogl-graphene.c cogl/graphene: Fix license header 2021-01-28 20:33:01 +00:00
cogl-graphene.h cogl/graphene: Fix license header 2021-01-28 20:33:01 +00:00
cogl-gtype-private.h cogl: Drop "volatile" from static GTypes in manual registration 2021-03-22 10:47:51 +00:00
cogl-gtype.c
cogl-i18n-private.h
cogl-index-buffer-private.h
cogl-index-buffer.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-index-buffer.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-indices-private.h
cogl-indices.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-indices.h *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
cogl-journal-private.h cogl/journal: Make CoglJournal a free-form struct 2022-05-31 16:28:16 -03:00
cogl-journal.c cogl/journal: Make CoglJournal a free-form struct 2022-05-31 16:28:16 -03:00
cogl-list.c
cogl-list.h
cogl-macros.h tests/cogl: Add unit test framework 2022-08-08 21:59:13 +00:00
cogl-magazine-private.h
cogl-magazine.c
cogl-matrix-stack-private.h cogl/matrix-stack: Embed graphene matrices in entry structs 2020-10-06 15:34:48 +00:00
cogl-matrix-stack.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-matrix-stack.h Remove CoglMatrix 2020-10-06 15:34:48 +00:00
cogl-memory-stack-private.h
cogl-memory-stack.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-meta-texture.c Remove CoglMatrix 2020-10-06 15:34:48 +00:00
cogl-meta-texture.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-mutter.h cogl: Unify HAS_X11/HAS_XLIB build configs 2022-05-25 16:42:04 +02:00
cogl-node-private.h *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
cogl-node.c
cogl-object-private.h cogl: Drop CoglHandleObject and CoglHandleClass 2022-05-31 16:28:16 -03:00
cogl-object.c *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
cogl-object.h *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
cogl-offscreen-private.h cogl/offscreen: Move struct to C file 2021-01-30 09:11:46 +00:00
cogl-offscreen.c cogl/gl-framebuffer: Split up into FBO and back drivers 2021-01-30 09:11:46 +00:00
cogl-offscreen.h cogl: Turn CoglFramebuffer, CoglOffscreen and CoglOnscreen into GObjects 2020-10-16 16:17:38 +00:00
cogl-onscreen-private.h cogl/onscreen: Remove explicit 'resizable':ness 2021-01-30 09:11:46 +00:00
cogl-onscreen-template-private.h
cogl-onscreen-template.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-onscreen-template.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-onscreen.c cogl: Add support for partial update 2021-10-26 16:56:39 +00:00
cogl-onscreen.h cogl: Add support for partial update 2021-10-26 16:56:39 +00:00
cogl-output-private.h
cogl-output.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-output.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-pipeline-cache-private.h cogl/pipeline-cache: Move unit test to its own file 2022-08-08 21:59:13 +00:00
cogl-pipeline-cache.c cogl/pipeline-cache: Move unit test to its own file 2022-08-08 21:59:13 +00:00
cogl-pipeline-cache.h
cogl-pipeline-debug.c cogl: Plug possible GString leaks 2021-10-25 15:45:35 +02:00
cogl-pipeline-hash-table.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-pipeline-hash-table.h
cogl-pipeline-layer-private.h Remove CoglMatrix 2020-10-06 15:34:48 +00:00
cogl-pipeline-layer-state-private.h
cogl-pipeline-layer-state.c Remove CoglMatrix 2020-10-06 15:34:48 +00:00
cogl-pipeline-layer-state.h cogl/pipeline: Make Snippet API introspectable 2022-05-31 11:38:20 +00:00
cogl-pipeline-layer.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-pipeline-private.h cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-pipeline-snippet-private.h
cogl-pipeline-snippet.c
cogl-pipeline-state-private.h cogl: Remove unused explicit blend-enable controls 2019-12-18 15:58:52 +00:00
cogl-pipeline-state.c cogl/pipeline-state: Move out working unit test to separate file 2022-08-08 21:59:13 +00:00
cogl-pipeline-state.h cogl/pipeline: Make Snippet API introspectable 2022-05-31 11:38:20 +00:00
cogl-pipeline.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-pipeline.h *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
cogl-pixel-buffer-private.h
cogl-pixel-buffer.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-pixel-buffer.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-pixel-format.c cogl: Add XRGB_FP_16161616 and XBGR_FP_16161616 formats 2021-09-20 14:39:20 +00:00
cogl-pixel-format.h cogl: Add XRGB_FP_16161616 and XBGR_FP_16161616 formats 2021-09-20 14:39:20 +00:00
cogl-point-in-poly-private.h
cogl-point-in-poly.c
cogl-poll-private.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-poll.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-poll.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-primitive-private.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-primitive-texture.c
cogl-primitive-texture.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-primitive.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-primitive.h cogl: Drop cogl_texture_new_from_data 2022-05-31 16:28:16 -03:00
cogl-primitives-private.h cogl: Add function cogl_2d_primitives_immediate 2019-12-18 11:46:54 +08:00
cogl-primitives.c cogl/framebuffer: Move public struct fields to private struct 2020-10-16 16:17:38 +00:00
cogl-private.h cogl: Add a quirk on Mali to glFlush before glGenerateMipmap 2022-09-19 13:57:05 +00:00
cogl-profile.c
cogl-profile.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-rectangle-map.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-rectangle-map.h
cogl-renderer-private.h cogl: Unify HAS_X11/HAS_XLIB build configs 2022-05-25 16:42:04 +02:00
cogl-renderer.c cogl: Unify HAS_X11/HAS_XLIB build configs 2022-05-25 16:42:04 +02:00
cogl-renderer.h cogl/renderer: Add 'is_dma_buf_supported()' vfunc 2022-02-07 10:56:57 +00:00
cogl-sampler-cache-private.h cogl: Remove unused p-axis texture wrap mode 2020-01-31 17:26:25 +00:00
cogl-sampler-cache.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-scanout.c cogl: Fix license header in cogl-scanout and cogl-trace 2021-01-28 20:33:01 +00:00
cogl-scanout.h cogl: Fix license header in cogl-scanout and cogl-trace 2021-01-28 20:33:01 +00:00
cogl-snippet-private.h
cogl-snippet.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-snippet.h cogl/snippet: Use "Returns:" for introspection annotations 2022-05-31 11:38:20 +00:00
cogl-spans.c
cogl-spans.h
cogl-sub-texture-private.h
cogl-sub-texture.c cogl: Remove unused p-axis texture wrap mode 2020-01-31 17:26:25 +00:00
cogl-sub-texture.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-swap-chain-private.h clutter: Remove support for transparent windows 2020-08-13 14:45:10 +02:00
cogl-swap-chain.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-swap-chain.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-texture-2d-private.h cogl: Remove cogl_texture_2d_gl_new_from_foreign 2019-11-07 12:47:23 +00:00
cogl-texture-2d-sliced-private.h cogl: Remove cogl_texture_2d_gl_new_from_foreign 2019-11-07 12:47:23 +00:00
cogl-texture-2d-sliced.c cogl/texture-2d-sliced: Don't double-free slice array when alloc failed 2020-12-18 16:19:05 +00:00
cogl-texture-2d-sliced.h *: Fix spelling mistakes found by codespell 2020-08-29 09:10:31 +00:00
cogl-texture-2d.c cogl: Add a quirk on Mali to glFlush before glGenerateMipmap 2022-09-19 13:57:05 +00:00
cogl-texture-2d.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-texture-driver.h cogl: Add API to check whether a format is supported by the driver 2020-08-07 09:02:49 +00:00
cogl-texture-private.h cogl: Add new function cogl_pipeline_set_layer_max_mipmap_level() 2020-05-13 09:37:31 +00:00
cogl-texture.c cogl/texture: Type check introspected calls 2022-09-20 13:38:41 +00:00
cogl-texture.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-trace.c cogl/trace: Add way to add a description to trace 2021-07-29 15:16:48 +02:00
cogl-trace.h cogl/trace: Add getter for trace enabled state 2021-07-29 15:16:48 +02:00
cogl-types.h cogl: Drop cogl_texture_new_from_data 2022-05-31 16:28:16 -03:00
cogl-util.c cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-util.h
cogl-x11-onscreen.c cogl: Add CoglX11Onscreen interface 2021-01-30 09:11:46 +00:00
cogl-x11-onscreen.h cogl: Add CoglX11Onscreen interface 2021-01-30 09:11:46 +00:00
cogl-x11-renderer-private.h
cogl-xlib-private.h cogl: Move _cogl_xlib_get_damage_base near its only consumer 2019-10-24 16:52:46 -04:00
cogl-xlib-renderer-private.h cogl: Remove unused _cogl_xlib_renderer_get_dispatch_timeout 2019-10-24 16:52:53 -04:00
cogl-xlib-renderer.c cogl: Stop using GSlice 2021-02-22 13:51:30 +01:00
cogl-xlib-renderer.h cogl: Mark exported cogl symbols using COGL_EXPORT 2020-03-26 09:05:38 +01:00
cogl-xlib.h cogl: Remove unused cogl_xlib_renderer_get_visual_info 2019-10-24 16:52:47 -04:00
cogl.c cogl: Remove deprecated backface_culing API 2021-12-07 15:32:21 +00:00
cogl.h cogl: Remove version 2022-08-08 21:59:12 +00:00
meson.build cogl: Remove the now unused test framework 2022-08-08 21:59:13 +00:00
mutter-cogl.pc.in