Lines Matching refs:mBufferInfo
239 if (mBufferInfo.mBuffer != nullptr) { in ~Layer()
241 mBufferInfo.mBuffer->getBuffer(), mBufferInfo.mFrameNumber, in ~Layer()
242 mBufferInfo.mFence); in ~Layer()
695 snapshot->hdrMetadata = mBufferInfo.mHdrMetadata; in preparePerFrameBufferCompositionState()
702 snapshot->acquireFence = mBufferInfo.mFence; in preparePerFrameBufferCompositionState()
703 snapshot->frameNumber = mBufferInfo.mFrameNumber; in preparePerFrameBufferCompositionState()
2627 mBufferInfo = clonedFrom->mBufferInfo; in updateCloneBufferInfo()
2888 if (mBufferInfo.mBuffer) { in prepareReleaseCallbacks()
2936 if (mBufferInfo.mBuffer) { in onLayerDisplayed()
3114 if (!mBufferInfo.mBuffer || in releasePreviousBuffer()
3115 (!mDrawingState.buffer->hasSameBuffer(*mBufferInfo.mBuffer) || in releasePreviousBuffer()
3116 mDrawingState.frameNumber != mBufferInfo.mFrameNumber)) { in releasePreviousBuffer()
3466 if (mBufferInfo.mBuffer == nullptr) { in getBufferSize()
3470 uint32_t bufWidth = mBufferInfo.mBuffer->getWidth(); in getBufferSize()
3471 uint32_t bufHeight = mBufferInfo.mBuffer->getHeight(); in getBufferSize()
3474 if (mBufferInfo.mTransform & ui::Transform::ROT_90) { in getBufferSize()
3489 if (mBufferInfo.mBuffer == nullptr) { in computeSourceBounds()
3552 if (bgColorOnly || mBufferInfo.mBuffer) { in updateTexImage()
3599 mPreviousReleaseCallbackId = {getCurrentBufferId(), mBufferInfo.mFrameNumber}; in gatherBufferInfo()
3600 mPreviousReleaseBufferEndpoint = mBufferInfo.mReleaseBufferEndpoint; in gatherBufferInfo()
3602 mBufferInfo = {}; in gatherBufferInfo()
3606 if ((!mBufferInfo.mBuffer || !mDrawingState.buffer->hasSameBuffer(*mBufferInfo.mBuffer))) { in gatherBufferInfo()
3610 mBufferInfo.mBuffer = mDrawingState.buffer; in gatherBufferInfo()
3611 mBufferInfo.mReleaseBufferEndpoint = mDrawingState.releaseBufferEndpoint; in gatherBufferInfo()
3612 mBufferInfo.mFence = mDrawingState.acquireFence; in gatherBufferInfo()
3613 mBufferInfo.mFrameNumber = mDrawingState.frameNumber; in gatherBufferInfo()
3614 mBufferInfo.mPixelFormat = in gatherBufferInfo()
3615 !mBufferInfo.mBuffer ? PIXEL_FORMAT_NONE : mBufferInfo.mBuffer->getPixelFormat(); in gatherBufferInfo()
3616 mBufferInfo.mFrameLatencyNeeded = true; in gatherBufferInfo()
3617 mBufferInfo.mDesiredPresentTime = mDrawingState.desiredPresentTime; in gatherBufferInfo()
3618 mBufferInfo.mFenceTime = std::make_shared<FenceTime>(mDrawingState.acquireFence); in gatherBufferInfo()
3619 mBufferInfo.mFence = mDrawingState.acquireFence; in gatherBufferInfo()
3620 mBufferInfo.mTransform = mDrawingState.bufferTransform; in gatherBufferInfo()
3621 auto lastDataspace = mBufferInfo.mDataspace; in gatherBufferInfo()
3622 mBufferInfo.mDataspace = translateDataspace(mDrawingState.dataspace); in gatherBufferInfo()
3623 if (mBufferInfo.mBuffer != nullptr) { in gatherBufferInfo()
3631 err = mapper.getDataspace(mBufferInfo.mBuffer->getBuffer()->handle, &dataspace); in gatherBufferInfo()
3633 if (err != OK || dataspace != mBufferInfo.mDataspace) { in gatherBufferInfo()
3636 err = mapper.setDataspace(mBufferInfo.mBuffer->getBuffer()->handle, in gatherBufferInfo()
3637 static_cast<ui::Dataspace>(mBufferInfo.mDataspace)); in gatherBufferInfo()
3647 mBufferInfo.mBuffer->getPixelFormat()); in gatherBufferInfo()
3655 mBufferInfo.mBuffer->remapBuffer(); in gatherBufferInfo()
3659 if (lastDataspace != mBufferInfo.mDataspace) { in gatherBufferInfo()
3662 if (mBufferInfo.mDesiredHdrSdrRatio != mDrawingState.desiredHdrSdrRatio) { in gatherBufferInfo()
3663 mBufferInfo.mDesiredHdrSdrRatio = mDrawingState.desiredHdrSdrRatio; in gatherBufferInfo()
3666 mBufferInfo.mCrop = computeBufferCrop(mDrawingState); in gatherBufferInfo()
3667 mBufferInfo.mScaleMode = NATIVE_WINDOW_SCALING_MODE_SCALE_TO_WINDOW; in gatherBufferInfo()
3668 mBufferInfo.mSurfaceDamage = mDrawingState.surfaceDamageRegion; in gatherBufferInfo()
3669 mBufferInfo.mHdrMetadata = mDrawingState.hdrMetadata; in gatherBufferInfo()
3670 mBufferInfo.mApi = mDrawingState.api; in gatherBufferInfo()
3671 mBufferInfo.mTransformToDisplayInverse = mDrawingState.transformToDisplayInverse; in gatherBufferInfo()
4006 surfaceDamageRegion = mBufferInfo.mSurfaceDamage; in useSurfaceDamage()
4036 return !isHiddenByPolicy() && (mBufferInfo.mBuffer == nullptr || getAlpha() > 0.0f); in canReceiveInput()
4057 if (!mBufferInfo.mFrameLatencyNeeded) return; in onCompositionPresented()
4065 nsecs_t desiredPresentTime = mBufferInfo.mDesiredPresentTime; in onCompositionPresented()
4086 std::shared_ptr<FenceTime> frameReadyFence = mBufferInfo.mFenceTime; in onCompositionPresented()
4130 mBufferInfo.mFrameLatencyNeeded = false; in onCompositionPresented()
4134 return !mDrawingState.buffer && mBufferInfo.mBuffer; in willReleaseBufferOnLatch()
4162 BufferInfo oldBufferInfo = mBufferInfo; in latchBufferImpl()
4168 if (mBufferInfo.mBuffer) { in latchBufferImpl()
4186 if ((mBufferInfo.mCrop != oldBufferInfo.mCrop) || in latchBufferImpl()
4187 (mBufferInfo.mTransform != oldBufferInfo.mTransform) || in latchBufferImpl()
4188 (mBufferInfo.mScaleMode != oldBufferInfo.mScaleMode) || in latchBufferImpl()
4189 (mBufferInfo.mTransformToDisplayInverse != oldBufferInfo.mTransformToDisplayInverse)) { in latchBufferImpl()
4194 uint32_t bufWidth = mBufferInfo.mBuffer->getWidth(); in latchBufferImpl()
4195 uint32_t bufHeight = mBufferInfo.mBuffer->getHeight(); in latchBufferImpl()
4214 return (mBufferInfo.mBuffer != nullptr) && in isProtected()
4215 (mBufferInfo.mBuffer->getUsage() & GRALLOC_USAGE_PROTECTED); in isProtected()
4227 return mBufferInfo.mPixelFormat; in getPixelFormat()
4231 return mBufferInfo.mTransformToDisplayInverse; in getTransformToDisplayInverse()
4237 if (!mBufferInfo.mCrop.isEmpty()) { in getBufferCrop()
4239 return mBufferInfo.mCrop; in getBufferCrop()
4240 } else if (mBufferInfo.mBuffer != nullptr) { in getBufferCrop()
4242 return mBufferInfo.mBuffer->getBounds(); in getBufferCrop()
4250 return mBufferInfo.mTransform; in getBufferTransform()
4254 return hasBufferOrSidebandStream() ? mBufferInfo.mDataspace : mDrawingState.dataspace; in getDataSpace()
4258 if (mBufferInfo.mBuffer == nullptr) { in isFrontBuffered()
4262 return mBufferInfo.mBuffer->getUsage() & AHARDWAREBUFFER_USAGE_FRONT_BUFFER; in isFrontBuffered()
4297 return mBufferInfo.mBuffer ? mBufferInfo.mBuffer->getBuffer() : nullptr; in getBuffer()
4308 return mBufferInfo.mBuffer; in getExternalTexture()
4353 ((mBufferInfo.mBuffer != nullptr) && isOpaque(mDrawingState)); in updateSnapshot()
4373 snapshot->externalTexture = mBufferInfo.mBuffer; in updateSnapshot()