• Home
  • Raw
  • Download

Lines Matching refs:buffer

93 static void writeAligned(void*& buffer, size_t& size, T value) {  in writeAligned()  argument
94 size -= FlattenableUtils::align<alignof(T)>(buffer); in writeAligned()
95 FlattenableUtils::write(buffer, size, value); in writeAligned()
99 void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten() argument
107 uint32_t& flags = *static_cast<uint32_t*>(buffer); in flatten()
110 FlattenableUtils::advance(buffer, size, sizeof(uint32_t)); in flatten()
114 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count); in flatten()
116 size -= FlattenableUtils::align<4>(buffer); in flatten()
120 status_t err = mFence->flatten(buffer, size, fds, count); in flatten()
122 size -= FlattenableUtils::align<4>(buffer); in flatten()
126 status_t err = mSurfaceDamage.flatten(buffer, size); in flatten()
128 FlattenableUtils::advance(buffer, size, mSurfaceDamage.getFlattenedSize()); in flatten()
135 writeAligned(buffer, size, mCrop); in flatten()
136 writeAligned(buffer, size, mTransform); in flatten()
137 writeAligned(buffer, size, mScalingMode); in flatten()
138 writeAligned(buffer, size, mTimestampLo); in flatten()
139 writeAligned(buffer, size, mTimestampHi); in flatten()
140 writeAligned(buffer, size, mIsAutoTimestamp); in flatten()
141 writeAligned(buffer, size, mDataSpace); in flatten()
142 writeAligned(buffer, size, mFrameNumberLo); in flatten()
143 writeAligned(buffer, size, mFrameNumberHi); in flatten()
144 writeAligned(buffer, size, mSlot); in flatten()
145 writeAligned(buffer, size, mIsDroppable); in flatten()
146 writeAligned(buffer, size, mAcquireCalled); in flatten()
147 writeAligned(buffer, size, mTransformToDisplayInverse); in flatten()
153 static void readAligned(const void*& buffer, size_t& size, T& value) { in readAligned() argument
154 size -= FlattenableUtils::align<alignof(T)>(buffer); in readAligned()
155 FlattenableUtils::read(buffer, size, value); in readAligned()
159 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
166 FlattenableUtils::read(buffer, size, flags); in unflatten()
170 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count); in unflatten()
172 size -= FlattenableUtils::align<4>(buffer); in unflatten()
177 status_t err = mFence->unflatten(buffer, size, fds, count); in unflatten()
179 size -= FlattenableUtils::align<4>(buffer); in unflatten()
182 status_t err = mSurfaceDamage.unflatten(buffer, size); in unflatten()
184 FlattenableUtils::advance(buffer, size, mSurfaceDamage.getFlattenedSize()); in unflatten()
191 readAligned(buffer, size, mCrop); in unflatten()
192 readAligned(buffer, size, mTransform); in unflatten()
193 readAligned(buffer, size, mScalingMode); in unflatten()
194 readAligned(buffer, size, mTimestampLo); in unflatten()
195 readAligned(buffer, size, mTimestampHi); in unflatten()
196 readAligned(buffer, size, mIsAutoTimestamp); in unflatten()
197 readAligned(buffer, size, mDataSpace); in unflatten()
198 readAligned(buffer, size, mFrameNumberLo); in unflatten()
199 readAligned(buffer, size, mFrameNumberHi); in unflatten()
200 readAligned(buffer, size, mSlot); in unflatten()
201 readAligned(buffer, size, mIsDroppable); in unflatten()
202 readAligned(buffer, size, mAcquireCalled); in unflatten()
203 readAligned(buffer, size, mTransformToDisplayInverse); in unflatten()