From f2a4052af7b2645475edbde805f9d563799a3832 Mon Sep 17 00:00:00 2001 From: sunghyun kim Date: Wed, 4 Sep 2024 17:41:45 +0900 Subject: [PATCH] Deprecate cairo in tizen Change-Id: Ibad1606544c318218a089360fb3744b1fd601bd9 --- doc/cairo-evas-gl_doc.h | 2 +- src/cairo-evas-gl.h | 9 +++++++++ src/cairo.h | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/cairo-evas-gl_doc.h b/doc/cairo-evas-gl_doc.h index d029ad09a..3522f8692 100755 --- a/doc/cairo-evas-gl_doc.h +++ b/doc/cairo-evas-gl_doc.h @@ -35,7 +35,7 @@ #define __TIZEN_CAIRO_EVAS_GL_DOC_H__ /** - * @defgroup CAPI_CAIRO_EVAS_GL_MODULE Cairo GL + * @defgroup CAPI_CAIRO_EVAS_GL_MODULE Cairo GL (Deprecated) * @brief Cairo GL/Evas_GL APIs are official APIs for Tizen. * @ingroup OPENSRC_CAIRO_FRAMEWORK * diff --git a/src/cairo-evas-gl.h b/src/cairo-evas-gl.h index bfd93ba94..436056338 100755 --- a/src/cairo-evas-gl.h +++ b/src/cairo-evas-gl.h @@ -80,6 +80,7 @@ typedef char GLchar; /* Cairo-gl API, which is Open-source, can be used at the Cairo_EvasGL backend */ /** + * @deprecated Deprecated since 9.0. * @brief Create a cairo GL surface using the device as the underlying rendering system. * * @since_tizen 2.3.1 @@ -99,6 +100,7 @@ cairo_gl_surface_create (cairo_device_t *device, int width, int height); /** + * @deprecated Deprecated since 9.0. * @brief Create a cairo GL surface using the texture as the render target, and the device as the underlying rendering system.\n * The content must match the format of the texture\n * CAIRO_CONTENT_ALPHA <-> GL_ALPHA\n @@ -124,6 +126,7 @@ cairo_gl_surface_create_for_texture (cairo_device_t *abstract_device, int width, int height); /** + * @deprecated Deprecated since 9.0. * @brief Returns the width of given cairo surface object * * @since_tizen 2.3.1 @@ -138,6 +141,7 @@ cairo_public int cairo_gl_surface_get_width (cairo_surface_t *abstract_surface); /** + * @deprecated Deprecated since 9.0. * @brief Returns the height of given cairo surface object * * @since_tizen 2.3.1 @@ -152,6 +156,7 @@ cairo_public int cairo_gl_surface_get_height (cairo_surface_t *abstract_surface); /** + * @deprecated Deprecated since 9.0. * @brief Cairo can be used in multithreaded environment.\n * By default, cairo switches out the current GL context after each draw finishes.\n * This API tells cairo not to switch GL context if no other thread uses cairo for rendering.\n @@ -168,6 +173,7 @@ cairo_gl_device_set_thread_aware (cairo_device_t *device, cairo_bool_t thread_aware); /** + * @deprecated Deprecated since 9.0. * @brief Creates and returns a new cairo_device structure for interface to underlying rendering system. * * @since_tizen 2.3.1 @@ -188,6 +194,7 @@ cairo_evas_gl_device_create (Evas_GL *evas_gl, Evas_GL_Context *evas_context); /** + * @deprecated Deprecated since 9.0. * @brief Creates and returns a new cairo_surface structure for representing Evas_GL_Surface object that cairo can render to. * * @since_tizen 2.3.1 @@ -214,6 +221,7 @@ cairo_gl_surface_create_for_evas_gl (cairo_device_t *device, int height); /** + * @deprecated Deprecated since 9.0. * @brief Returns the underlying Evas_GL object used to create cairo device object * * @since_tizen 2.3.1 @@ -228,6 +236,7 @@ cairo_public Evas_GL * cairo_evas_gl_device_get_gl (cairo_device_t *device); /** + * @deprecated Deprecated since 9.0. * @brief Returns the underlying Evas_GL_Context object used to create cairo device object. * * @since_tizen 2.3.1 diff --git a/src/cairo.h b/src/cairo.h index c1649dbe5..43121ac4f 100644 --- a/src/cairo.h +++ b/src/cairo.h @@ -479,6 +479,7 @@ typedef struct _cairo_rectangle_int { /* Functions for manipulating state objects */ +// @deprecated Deprecated since 9.0. cairo_public cairo_t * cairo_create (cairo_surface_t *target); -- 2.34.1