diff options
author | Pekka Paalanen <ppaalanen@gmail.com> | 2013-03-08 14:56:49 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-03-18 22:19:57 -0400 |
commit | c3ce738653961e5e98e57aceec9c79d2446219d1 (patch) | |
tree | acbb3c4df974250c5c3ce1378d24e84faecc7798 /src/animation.c | |
parent | f1f48cfa35cc4068388069e6ac3b688a2716a1de (diff) | |
download | weston-c3ce738653961e5e98e57aceec9c79d2446219d1.tar.gz |
compositor: introduce weston_surface_geometry_dirty()
Instead of directly setting the dirty flag on weston_surface geometry,
use a function for that.
This allows us to hook into geometry dirtying in a following patch.
Also add comments to weston_surface fields, whose modification causes
transform state to become outdated.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'src/animation.c')
-rw-r--r-- | src/animation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animation.c b/src/animation.c index 9e2ad4ec..229946fe 100644 --- a/src/animation.c +++ b/src/animation.c @@ -116,7 +116,7 @@ weston_surface_animation_destroy(struct weston_surface_animation *animation) wl_list_remove(&animation->animation.link); wl_list_remove(&animation->listener.link); wl_list_remove(&animation->transform.link); - animation->surface->geometry.dirty = 1; + weston_surface_geometry_dirty(animation->surface); if (animation->done) animation->done(animation, animation->data); free(animation); @@ -153,7 +153,7 @@ weston_surface_animation_frame(struct weston_animation *base, if (animation->frame) animation->frame(animation); - animation->surface->geometry.dirty = 1; + weston_surface_geometry_dirty(animation->surface); weston_compositor_schedule_repaint(animation->surface->compositor); } |