Lines Matching refs:bufferItem
553 BufferItem bufferItem; in acquireNextBufferLocked() local
556 mBufferItemConsumer->acquireBuffer(&bufferItem, 0 /* expectedPresent */, false); in acquireNextBufferLocked()
565 auto buffer = bufferItem.mGraphicBuffer; in acquireNextBufferLocked()
567 BBQ_TRACE("frame=%" PRIu64, bufferItem.mFrameNumber); in acquireNextBufferLocked()
570 mBufferItemConsumer->releaseBuffer(bufferItem, Fence::NO_FENCE); in acquireNextBufferLocked()
575 if (rejectBuffer(bufferItem)) { in acquireNextBufferLocked()
579 buffer->getWidth(), buffer->getHeight(), bufferItem.mTransform); in acquireNextBufferLocked()
580 mBufferItemConsumer->releaseBuffer(bufferItem, Fence::NO_FENCE); in acquireNextBufferLocked()
585 mLastAcquiredFrameNumber = bufferItem.mFrameNumber; in acquireNextBufferLocked()
587 mSubmitted[releaseCallbackId] = bufferItem; in acquireNextBufferLocked()
590 mBufferItemConsumer->getConnectionEvents(bufferItem.mFrameNumber, &needsDisconnect); in acquireNextBufferLocked()
603 if (mRequestedSize == getBufferSize(bufferItem) || in acquireNextBufferLocked()
604 bufferItem.mScalingMode != NATIVE_WINDOW_SCALING_MODE_FREEZE) { in acquireNextBufferLocked()
607 Rect crop = computeCrop(bufferItem); in acquireNextBufferLocked()
608 mLastBufferInfo.update(true /* hasBuffer */, bufferItem.mGraphicBuffer->getWidth(), in acquireNextBufferLocked()
609 bufferItem.mGraphicBuffer->getHeight(), bufferItem.mTransform, in acquireNextBufferLocked()
610 bufferItem.mScalingMode, crop); in acquireNextBufferLocked()
615 sp<Fence> fence = bufferItem.mFence ? new Fence(bufferItem.mFence->dup()) : Fence::NO_FENCE; in acquireNextBufferLocked()
627 t->setBuffer(mSurfaceControl, buffer, fence, bufferItem.mFrameNumber, mProducerId, in acquireNextBufferLocked()
629 t->setDataspace(mSurfaceControl, static_cast<ui::Dataspace>(bufferItem.mDataSpace)); in acquireNextBufferLocked()
630 t->setHdrMetadata(mSurfaceControl, bufferItem.mHdrMetadata); in acquireNextBufferLocked()
631 t->setSurfaceDamageRegion(mSurfaceControl, bufferItem.mSurfaceDamage); in acquireNextBufferLocked()
640 bufferItem.mScalingMode == NATIVE_WINDOW_SCALING_MODE_FREEZE; in acquireNextBufferLocked()
646 t->setTransform(mSurfaceControl, bufferItem.mTransform); in acquireNextBufferLocked()
647 t->setTransformToDisplayInverse(mSurfaceControl, bufferItem.mTransformToDisplayInverse); in acquireNextBufferLocked()
648 t->setAutoRefresh(mSurfaceControl, bufferItem.mAutoRefresh); in acquireNextBufferLocked()
649 if (!bufferItem.mIsAutoTimestamp) { in acquireNextBufferLocked()
650 t->setDesiredPresentTime(bufferItem.mTimestamp); in acquireNextBufferLocked()
655 mPendingFrameTimelines.front().first < bufferItem.mFrameNumber) { in acquireNextBufferLocked()
663 mPendingFrameTimelines.front().first == bufferItem.mFrameNumber) { in acquireNextBufferLocked()
666 bufferItem.mFrameNumber, in acquireNextBufferLocked()
672 mergePendingTransactions(t, bufferItem.mFrameNumber); in acquireNextBufferLocked()
677 mLastAppliedFrameNumber = bufferItem.mFrameNumber; in acquireNextBufferLocked()
686 mSize.width, mSize.height, bufferItem.mFrameNumber, boolToString(applyTransaction), in acquireNextBufferLocked()
687 bufferItem.mTimestamp, bufferItem.mIsAutoTimestamp ? "(auto)" : "", in acquireNextBufferLocked()
688 static_cast<uint32_t>(mPendingTransactions.size()), bufferItem.mGraphicBuffer->getId(), in acquireNextBufferLocked()
689 bufferItem.mAutoRefresh ? " mAutoRefresh" : "", bufferItem.mTransform); in acquireNextBufferLocked()
702 BufferItem bufferItem; in acquireAndReleaseBuffer() local
704 mBufferItemConsumer->acquireBuffer(&bufferItem, 0 /* expectedPresent */, false); in acquireAndReleaseBuffer()
711 mBufferItemConsumer->releaseBuffer(bufferItem, bufferItem.mFence); in acquireAndReleaseBuffer()