From 5beba8b99bed35f22e3a19e6d955cad4a52c864b Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 10 May 2021 16:13:25 +0200 Subject: [PATCH] clutter: Make ClutterDamageHistory API public to mutter We are moving things to src/backends, make this helper object able to be used there. This is a temporary measure as ClutterDamageHistory itself should be moved too. Part-of: --- clutter/clutter/clutter-damage-history.h | 8 ++++++++ clutter/clutter/clutter-mutter.h | 1 + 2 files changed, 9 insertions(+) diff --git a/clutter/clutter/clutter-damage-history.h b/clutter/clutter/clutter-damage-history.h index e29c3f1cb..b249d2e17 100644 --- a/clutter/clutter/clutter-damage-history.h +++ b/clutter/clutter/clutter-damage-history.h @@ -22,20 +22,28 @@ #include #include +#include "clutter-macros.h" + typedef struct _ClutterDamageHistory ClutterDamageHistory; +CLUTTER_EXPORT ClutterDamageHistory * clutter_damage_history_new (void); +CLUTTER_EXPORT void clutter_damage_history_free (ClutterDamageHistory *history); +CLUTTER_EXPORT gboolean clutter_damage_history_is_age_valid (ClutterDamageHistory *history, int age); +CLUTTER_EXPORT void clutter_damage_history_record (ClutterDamageHistory *history, const cairo_region_t *damage); +CLUTTER_EXPORT void clutter_damage_history_step (ClutterDamageHistory *history); +CLUTTER_EXPORT const cairo_region_t * clutter_damage_history_lookup (ClutterDamageHistory *history, int age); diff --git a/clutter/clutter/clutter-mutter.h b/clutter/clutter/clutter-mutter.h index 91e153586..08a462929 100644 --- a/clutter/clutter/clutter-mutter.h +++ b/clutter/clutter/clutter-mutter.h @@ -26,6 +26,7 @@ #define __CLUTTER_H_INSIDE__ #include "clutter-backend.h" +#include "clutter-damage-history.h" #include "clutter-event-private.h" #include "clutter-input-device-private.h" #include "clutter-input-pointer-a11y-private.h"