diff options
author | Fengwei Yin <fengwei.yin@intel.com> | 2014-03-20 16:45:05 +0800 |
---|---|---|
committer | Fengwei Yin <fengwei.yin@intel.com> | 2014-03-20 16:49:06 +0800 |
commit | 0c7c81f5a62937f79b7e734668aa997fd8df1927 (patch) | |
tree | f0fdacbd3d96ffa6f5935ee56d113fe8439ae4d4 /include | |
parent | cdbf28b3f7f5327f4cb0eb95b8326bf4c24c87ba (diff) | |
download | frameworks_native-0c7c81f5a62937f79b7e734668aa997fd8df1927.zip frameworks_native-0c7c81f5a62937f79b7e734668aa997fd8df1927.tar.gz frameworks_native-0c7c81f5a62937f79b7e734668aa997fd8df1927.tar.bz2 |
make struct Event layout consistent on 32/64-bit
To make struct Event have consistent memory layout between x86
and x86_64, force nsecs_t timestamp align to 64bit because it's
not true for x86.
Change-Id: I49eaddd89e10d595cf6a5130f9762b5388c96625
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/DisplayEventReceiver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gui/DisplayEventReceiver.h b/include/gui/DisplayEventReceiver.h index f8267bf..a4718b9 100644 --- a/include/gui/DisplayEventReceiver.h +++ b/include/gui/DisplayEventReceiver.h @@ -49,7 +49,7 @@ public: struct Header { uint32_t type; uint32_t id; - nsecs_t timestamp; + nsecs_t timestamp __attribute__((aligned(8))); }; struct VSync { |