diff options
author | Chong Zhang <chz@google.com> | 2015-05-22 10:54:25 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2015-05-22 10:54:25 -0700 |
commit | 47f674dfeca31b29810ecb90f1277918b67c4cf8 (patch) | |
tree | 804ca63f9704fb2e6113a90eec473f2c0476ce0e /include | |
parent | 3db36803b247bfbb582632be58416a0a11d1227b (diff) | |
download | frameworks_native-47f674dfeca31b29810ecb90f1277918b67c4cf8.tar.gz frameworks_native-47f674dfeca31b29810ecb90f1277918b67c4cf8.tar.bz2 frameworks_native-47f674dfeca31b29810ecb90f1277918b67c4cf8.zip |
fix BufferItem flatten/unflatten alignment
bug: 21370100
Change-Id: Ia3991dc591c176bdbd1d78d1804aa22777525b62
Diffstat (limited to 'include')
-rw-r--r-- | include/gui/BufferItem.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/gui/BufferItem.h b/include/gui/BufferItem.h index 000ef0e87..145efe6f6 100644 --- a/include/gui/BufferItem.h +++ b/include/gui/BufferItem.h @@ -72,7 +72,13 @@ class BufferItem : public Flattenable<BufferItem> { // to set by queueBuffer each time this slot is queued. This value // is guaranteed to be monotonically increasing for each newly // acquired buffer. - int64_t mTimestamp; + union { + int64_t mTimestamp; + struct { + uint32_t mTimestampLo; + uint32_t mTimestampHi; + }; + }; // mIsAutoTimestamp indicates whether mTimestamp was generated // automatically when the buffer was queued. @@ -84,7 +90,13 @@ class BufferItem : public Flattenable<BufferItem> { android_dataspace mDataSpace; // mFrameNumber is the number of the queued frame for this slot. - uint64_t mFrameNumber; + union { + uint64_t mFrameNumber; + struct { + uint32_t mFrameNumberLo; + uint32_t mFrameNumberHi; + }; + }; union { // mSlot is the slot index of this buffer (default INVALID_BUFFER_SLOT). |