tizen_only: Leave the redundant capis until efl remove them. 61/265761/4
authorHermet Park <chuneon.park@samsung.com>
Thu, 28 Oct 2021 06:15:16 +0000 (15:15 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 28 Oct 2021 06:24:13 +0000 (15:24 +0900)
Change-Id: Ib0f76263cc233408022495056a6e9bd9e3df412b

src/bindings/capi/thorvg_capi.h
src/bindings/capi/tvgCapi.cpp

index b9f2667..0aa201f 100644 (file)
@@ -855,8 +855,8 @@ TVG_EXPORT Tvg_Paint* tvg_paint_duplicate(Tvg_Paint* paint);
 *
 * \note The bounding box doesn't indicate the actual drawing region. It's the smallest rectangle that encloses the object.
 */
-TVG_EXPORT Tvg_Result tvg_paint_get_bounds(const Tvg_Paint* paint, float* x, float* y, float* w, float* h, bool transformed);
-
+//TIZEN_ONLY: RENAME TO tvg_paint_get_bounds() AFTER DUPLICATED API IS REMOVED
+TVG_EXPORT Tvg_Result _tvg_paint_get_bounds(const Tvg_Paint* paint, float* x, float* y, float* w, float* h, bool transformed);
 
 /*!
 * \brief Sets the composition target object and the composition method.
@@ -2022,6 +2022,10 @@ TVG_EXPORT Tvg_Result tvg_saver_del(Tvg_Saver* saver);
 /** \} */   // end defgroup ThorVGCapi_Saver
 
 
+//TIZEN_ONLY: MUST BE REMOVED AFTER RESOLVING EFL USAGE
+TVG_EXPORT Tvg_Result tvg_paint_get_bounds(const Tvg_Paint* paint, float* x, float* y, float* w, float* h);
+TVG_EXPORT Tvg_Result tvg_paint_transform(Tvg_Paint* paint, const Tvg_Matrix* m);
+
 /** \} */   // end defgroup ThorVG_CAPI
 
 
index 7c2fd12..e707e43 100644 (file)
@@ -169,6 +169,12 @@ TVG_EXPORT Tvg_Result tvg_paint_set_transform(Tvg_Paint* paint, const Tvg_Matrix
 }
 
 
+//TIZEN_ONLY: MUST BE REMOVED AFTER RESOLVING EFL USAGE
+TVG_EXPORT Tvg_Result tvg_paint_transform(Tvg_Paint* paint, const Tvg_Matrix* m)
+{
+    return tvg_paint_set_transform(paint, m);
+}
+
 TVG_EXPORT Tvg_Result tvg_paint_get_transform(Tvg_Paint* paint, Tvg_Matrix* m)
 {
     if (!paint || !m) return TVG_RESULT_INVALID_ARGUMENT;
@@ -199,13 +205,21 @@ TVG_EXPORT Tvg_Result tvg_paint_get_opacity(const Tvg_Paint* paint, uint8_t* opa
 }
 
 
-TVG_EXPORT Tvg_Result tvg_paint_get_bounds(const Tvg_Paint* paint, float* x, float* y, float* w, float* h, bool transformed)
+//TIZEN_ONLY: RENAME TO tvg_paint_get_bounds() AFTER DUPLICATED API IS REMOVED
+TVG_EXPORT Tvg_Result _tvg_paint_get_bounds(const Tvg_Paint* paint, float* x, float* y, float* w, float* h, bool transformed)
 {
    if (!paint) return TVG_RESULT_INVALID_ARGUMENT;
    return (Tvg_Result) reinterpret_cast<const Paint*>(paint)->bounds(x, y, w, h, transformed);
 }
 
 
+//TIZEN_ONLY: MUST BE REMOVED AFTER RESOLVING EFL USAGE
+TVG_EXPORT Tvg_Result tvg_paint_get_bounds(const Tvg_Paint* paint, float* x, float* y, float* w, float* h)
+{
+   return _tvg_paint_get_bounds(paint, x, y, w, h, false);
+}
+
+
 TVG_EXPORT Tvg_Result tvg_paint_set_composite_method(Tvg_Paint* paint, Tvg_Paint* target, Tvg_Composite_Method method)
 {
    if (!paint) return TVG_RESULT_INVALID_ARGUMENT;