summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2015-05-22 10:54:25 -0700
committerChong Zhang <chz@google.com>2015-05-22 10:54:25 -0700
commit47f674dfeca31b29810ecb90f1277918b67c4cf8 (patch)
tree804ca63f9704fb2e6113a90eec473f2c0476ce0e /include/gui
parent3db36803b247bfbb582632be58416a0a11d1227b (diff)
downloadframeworks_native-47f674dfeca31b29810ecb90f1277918b67c4cf8.zip
frameworks_native-47f674dfeca31b29810ecb90f1277918b67c4cf8.tar.gz
frameworks_native-47f674dfeca31b29810ecb90f1277918b67c4cf8.tar.bz2
fix BufferItem flatten/unflatten alignment
bug: 21370100 Change-Id: Ia3991dc591c176bdbd1d78d1804aa22777525b62
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/BufferItem.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/gui/BufferItem.h b/include/gui/BufferItem.h
index 000ef0e..145efe6 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).