object: Reorder the CoglObject members by size
This moves the pointer members of CoglObject to the top and the int members to the bottom so that there won't be any padding inserted on 64-bit machines. This reduces the size of the struct from 80 bytes to 72. Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
417878538b
commit
c39333a2c6
@ -73,14 +73,14 @@ typedef struct
|
||||
*/
|
||||
struct _CoglObject
|
||||
{
|
||||
unsigned int ref_count;
|
||||
CoglObjectClass *klass;
|
||||
|
||||
CoglUserDataEntry user_data_entry[
|
||||
COGL_OBJECT_N_PRE_ALLOCATED_USER_DATA_ENTRIES];
|
||||
GArray *user_data_array;
|
||||
int n_user_data_entries;
|
||||
|
||||
CoglObjectClass *klass;
|
||||
unsigned int ref_count;
|
||||
};
|
||||
|
||||
/* Helper macro to encapsulate the common code for COGL reference
|
||||
|
Loading…
Reference in New Issue
Block a user