[cogl/wip/cogl-1.14: 107/177] matrix-stack: move pointer to top of CoglMatrixEntry
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/cogl-1.14: 107/177] matrix-stack: move pointer to top of CoglMatrixEntry
- Date: Mon, 21 Jan 2013 15:53:55 +0000 (UTC)
commit a88f0d108b514c1087937288b596d9a4c889b276
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]