Lines Matching refs:item
80 const RingBufferItem& item = *it; in pinSelectedBuffer() local
82 cur.mCrop = item.mCrop; in pinSelectedBuffer()
83 cur.mTransform = item.mTransform; in pinSelectedBuffer()
84 cur.mScalingMode = item.mScalingMode; in pinSelectedBuffer()
85 cur.mTimestamp = item.mTimestamp; in pinSelectedBuffer()
86 cur.mFrameNumber = item.mFrameNumber; in pinSelectedBuffer()
87 cur.mPinned = item.mPinCount > 0; in pinSelectedBuffer()
165 void RingBufferConsumer::pinBufferLocked(const BufferItem& item) { in pinBufferLocked() argument
173 if (item.mGraphicBuffer == find.mGraphicBuffer) { in pinBufferLocked()
181 item.mTimestamp, item.mFrameNumber); in pinBufferLocked()
184 item.mFrameNumber, item.mTimestamp); in pinBufferLocked()
225 RingBufferItem& item = *accIt; in releaseOldestBufferLocked() local
233 err = addReleaseFenceLocked(item.mSlot, in releaseOldestBufferLocked()
234 item.mGraphicBuffer, item.mFence); in releaseOldestBufferLocked()
239 item.mTimestamp, item.mFrameNumber); in releaseOldestBufferLocked()
244 item.mTimestamp, item.mFrameNumber); in releaseOldestBufferLocked()
248 err = releaseBufferLocked(item.mSlot, item.mGraphicBuffer, in releaseOldestBufferLocked()
258 item.mTimestamp, item.mFrameNumber); in releaseOldestBufferLocked()
270 void RingBufferConsumer::onFrameAvailable(const BufferItem& item) { in onFrameAvailable() argument
292 RingBufferItem& item = *mBufferItemList.insert(mBufferItemList.end(), in onFrameAvailable() local
298 err = acquireBufferLocked(&item, 0); in onFrameAvailable()
310 item.mTimestamp, in onFrameAvailable()
313 if (item.mTimestamp < mLatestTimestamp) { in onFrameAvailable()
315 mLatestTimestamp, item.mTimestamp); in onFrameAvailable()
318 mLatestTimestamp = item.mTimestamp; in onFrameAvailable()
320 item.mGraphicBuffer = mSlots[item.mSlot].mGraphicBuffer; in onFrameAvailable()
323 ConsumerBase::onFrameAvailable(item); in onFrameAvailable()
326 void RingBufferConsumer::unpinBuffer(const BufferItem& item) { in unpinBuffer() argument
336 if (item.mGraphicBuffer == find.mGraphicBuffer) { in unpinBuffer()
337 status_t res = addReleaseFenceLocked(item.mSlot, in unpinBuffer()
338 item.mGraphicBuffer, item.mFence); in unpinBuffer()
343 item.mTimestamp, item.mFrameNumber); in unpinBuffer()
355 item.mTimestamp, item.mFrameNumber); in unpinBuffer()
358 item.mTimestamp, item.mFrameNumber); in unpinBuffer()