[mutter/gbsneto/shader-effect-fix: 1/2] clutter/offscreen-effect: Remove clutter_offscreen_effect_get_target_size
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/shader-effect-fix: 1/2] clutter/offscreen-effect: Remove clutter_offscreen_effect_get_target_size
- Date: Fri, 11 Oct 2019 13:51:12 +0000 (UTC)
commit ff4398115ec3fecb52a324b451d59096fff806a0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Oct 9 21:20:56 2019 -0300
clutter/offscreen-effect: Remove clutter_offscreen_effect_get_target_size
It is deprecated, and effectively unused.
clutter/clutter/clutter-offscreen-effect.c | 43 ------------------------------
clutter/clutter/clutter-offscreen-effect.h | 5 ----
2 files changed, 48 deletions(-)
---
diff --git a/clutter/clutter/clutter-offscreen-effect.c b/clutter/clutter/clutter-offscreen-effect.c
index cb554f44c..ba712bc4b 100644
--- a/clutter/clutter/clutter-offscreen-effect.c
+++ b/clutter/clutter/clutter-offscreen-effect.c
@@ -620,49 +620,6 @@ clutter_offscreen_effect_create_texture (ClutterOffscreenEffect *effect,
height);
}
-/**
- * clutter_offscreen_effect_get_target_size:
- * @effect: a #ClutterOffscreenEffect
- * @width: (out): return location for the target width, or %NULL
- * @height: (out): return location for the target height, or %NULL
- *
- * Retrieves the size of the offscreen buffer used by @effect to
- * paint the actor to which it has been applied.
- *
- * This function should only be called by #ClutterOffscreenEffect
- * implementations, from within the #ClutterOffscreenEffectClass.paint_target()
- * virtual function.
- *
- * Return value: %TRUE if the offscreen buffer has a valid size,
- * and %FALSE otherwise
- *
- * Since: 1.8
- *
- * Deprecated: 1.14: Use clutter_offscreen_effect_get_target_rect() instead
- */
-gboolean
-clutter_offscreen_effect_get_target_size (ClutterOffscreenEffect *effect,
- gfloat *width,
- gfloat *height)
-{
- ClutterOffscreenEffectPrivate *priv;
-
- g_return_val_if_fail (CLUTTER_IS_OFFSCREEN_EFFECT (effect), FALSE);
-
- priv = effect->priv;
-
- if (priv->texture == NULL)
- return FALSE;
-
- if (width)
- *width = cogl_texture_get_width (priv->texture);
-
- if (height)
- *height = cogl_texture_get_height (priv->texture);
-
- return TRUE;
-}
-
/**
* clutter_offscreen_effect_get_target_rect:
* @effect: a #ClutterOffscreenEffect
diff --git a/clutter/clutter/clutter-offscreen-effect.h b/clutter/clutter/clutter-offscreen-effect.h
index 07619441e..4ac2187e4 100644
--- a/clutter/clutter/clutter-offscreen-effect.h
+++ b/clutter/clutter/clutter-offscreen-effect.h
@@ -107,11 +107,6 @@ CoglHandle clutter_offscreen_effect_create_texture (ClutterOffscree
gfloat width,
gfloat height);
-CLUTTER_DEPRECATED_FOR (clutter_offscreen_effect_get_target_rect)
-gboolean clutter_offscreen_effect_get_target_size (ClutterOffscreenEffect *effect,
- gfloat *width,
- gfloat *height);
-
CLUTTER_EXPORT
gboolean clutter_offscreen_effect_get_target_rect (ClutterOffscreenEffect *effect,
ClutterRect *rect);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]