clutter: Add clutter_actor_has_damage() API

Will be used to check whether there are any damage to an actor.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/413
This commit is contained in:
Jonas Ådahl 2019-01-23 18:40:07 +01:00
parent c80ba819e7
commit 6372e3e4db
2 changed files with 10 additions and 0 deletions

View File

@ -635,6 +635,7 @@
#include "clutter-interval.h" #include "clutter-interval.h"
#include "clutter-main.h" #include "clutter-main.h"
#include "clutter-marshal.h" #include "clutter-marshal.h"
#include "clutter-mutter.h"
#include "clutter-paint-nodes.h" #include "clutter-paint-nodes.h"
#include "clutter-paint-node-private.h" #include "clutter-paint-node-private.h"
#include "clutter-paint-volume-private.h" #include "clutter-paint-volume-private.h"
@ -16467,6 +16468,12 @@ clutter_actor_is_in_clone_paint (ClutterActor *self)
return FALSE; return FALSE;
} }
gboolean
clutter_actor_has_damage (ClutterActor *actor)
{
return actor->priv->is_dirty;
}
static gboolean static gboolean
set_direction_recursive (ClutterActor *actor, set_direction_recursive (ClutterActor *actor,
gpointer user_data) gpointer user_data)

View File

@ -49,6 +49,9 @@ void clutter_stage_freeze_updates (ClutterStage *stage);
CLUTTER_EXPORT CLUTTER_EXPORT
void clutter_stage_thaw_updates (ClutterStage *stage); void clutter_stage_thaw_updates (ClutterStage *stage);
CLUTTER_EXPORT
gboolean clutter_actor_has_damage (ClutterActor *actor);
#undef __CLUTTER_H_INSIDE__ #undef __CLUTTER_H_INSIDE__
#endif /* __CLUTTER_MUTTER_H__ */ #endif /* __CLUTTER_MUTTER_H__ */