[cogl/cogl-1.14: 98/174] matrix-stack: move pointer to top of CoglMatrixEntry



commit f5b95e808716186e95c704cb0e21f965d8f1e57c
Author: Robert Bragg <robert linux intel com>
Date:   Tue Nov 27 19:55:34 2012 +0000

    matrix-stack: move pointer to top of CoglMatrixEntry
    
    This moves the parent pointer member to the top of the CoglMatrixEntry
    structure since it will lead to wasted padding when we build for 64bit
    cpus.
    
    (cherry picked from commit 42b4750070286a6404b103d8a827a46efb6b344c)

 cogl/cogl-matrix-stack.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-matrix-stack.h b/cogl/cogl-matrix-stack.h
index 8b942e3..dcc3868 100644
--- a/cogl/cogl-matrix-stack.h
+++ b/cogl/cogl-matrix-stack.h
@@ -51,8 +51,8 @@ typedef struct _CoglMatrixEntry CoglMatrixEntry;
 
 struct _CoglMatrixEntry
 {
-  CoglMatrixOp op;
   CoglMatrixEntry *parent;
+  CoglMatrixOp op;
   unsigned int ref_count;
 
   /* used for performance tracing */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]