From 1453d8b44ffe2ae0fd9b5c2486b21ab7e8664c3c Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Fri, 7 Nov 2008 17:00:54 +0000 Subject: [PATCH] 2008-11-07 Matthew Allum Bug 1238 - [PATCH] Pack bitfields in ClutterTexturePrivate * clutter/clutter-texture.c: Using 'guint my_field : 1' for booleans to save space only makes sense if you group all such fields together. Fix grouping for ClutterTexturePrivate. Thanks to Owen Taylor for patch. --- ChangeLog | 11 +++++++++++ clutter/clutter-texture.c | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5287072e2..2fcc6a534 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2008-11-07 Matthew Allum + + Bug 1238 - [PATCH] Pack bitfields in ClutterTexturePrivate + + * clutter/clutter-texture.c: + + Using 'guint my_field : 1' for booleans to save space only + makes sense if you group all such fields together. Fix + grouping for ClutterTexturePrivate. Thanks to Owen Taylor for + patch. + 2008-11-07 Matthew Allum Bug 1237 - clutter_texture_set_filter_quality calls diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c index 187df6f43..31aebfa4a 100644 --- a/clutter/clutter-texture.c +++ b/clutter/clutter-texture.c @@ -77,11 +77,8 @@ struct _ClutterTexturePrivate { gint width; gint height; - guint sync_actor_size : 1; gint max_tile_waste; ClutterTextureQuality filter_quality; - guint repeat_x : 1; - guint repeat_y : 1; CoglHandle texture; gboolean no_slice; @@ -94,6 +91,9 @@ struct _ClutterTexturePrivate guint local_data_has_alpha; guchar *local_data; + guint sync_actor_size : 1; + guint repeat_x : 1; + guint repeat_y : 1; guint in_dispose : 1; guint keep_aspect_ratio : 1; };