Lines Matching refs:getBE
668 getBE().mRenderEngine = in init()
673 LOG_ALWAYS_FATAL_IF(getBE().mRenderEngine == nullptr, "couldn't create RenderEngine"); in init()
677 getBE().mHwc.reset( in init()
678 new HWComposer(std::make_unique<Hwc2::impl::Composer>(getBE().mHwcServiceName))); in init()
679 getBE().mHwc->registerCallback(this, getBE().mComposerSequenceId); in init()
682 LOG_ALWAYS_FATAL_IF(!getBE().mHwc->isConnected(HWC_DISPLAY_PRIMARY), in init()
704 mVrFlinger = dvr::VrFlinger::Create(getBE().mHwc->getComposer(), in init()
705 getBE().mHwc->getHwcDisplayId(HWC_DISPLAY_PRIMARY).value_or(0), in init()
721 getBE().mRenderEngine->primeCache(); in init()
735 mLegacySrgbSaturationMatrix = getBE().mHwc->getDataspaceSaturationMatrix(HWC_DISPLAY_PRIMARY, in init()
766 return getBE().mRenderEngine->getMaxTextureSize(); in getMaxTextureSize()
770 return getBE().mRenderEngine->getMaxViewportDims(); in getMaxViewportDims()
1286 const auto& activeConfig = getBE().mHwc->getActiveConfig(HWC_DISPLAY_PRIMARY); in resyncToHardwareVsync()
1329 if (sequenceId != getBE().mComposerSequenceId) { in onVsyncReceived()
1334 if (!getBE().mHwc->onVsync(displayId, timestamp, &type)) { in onVsyncReceived()
1355 std::lock_guard<std::mutex> lock(getBE().mCompositorTimingLock); in getCompositorTiming()
1356 *compositorTiming = getBE().mCompositorTiming; in getCompositorTiming()
1365 if (sequenceId != getBE().mComposerSequenceId) { in onHotplugReceived()
1388 if (sequenceId != getBE().mComposerSequenceId) { in onRefreshReceived()
1417 if (vrFlingerRequestsDisplay == getBE().mHwc->isUsingVrComposer()) { in updateVrFlinger()
1421 if (vrFlingerRequestsDisplay && !getBE().mHwc->getComposer()->isRemote()) { in updateVrFlinger()
1439 getBE().mHwc.reset(); // Delete the current instance before creating the new one in updateVrFlinger()
1440 getBE().mHwc.reset(new HWComposer(std::make_unique<Hwc2::impl::Composer>( in updateVrFlinger()
1441 vrFlingerRequestsDisplay ? "vr" : getBE().mHwcServiceName))); in updateVrFlinger()
1442 getBE().mHwc->registerCallback(this, ++getBE().mComposerSequenceId); in updateVrFlinger()
1444 LOG_ALWAYS_FATAL_IF(!getBE().mHwc->getComposer()->isRemote(), in updateVrFlinger()
1462 const auto& activeConfig = getBE().mHwc->getActiveConfig(HWC_DISPLAY_PRIMARY); in updateVrFlinger()
1544 mPreviousPresentFence = getBE().mHwc->getPresentFence(HWC_DISPLAY_PRIMARY); in handleMessageRefresh()
1550 getBE().mHwc->hasClientComposition(displayDevice->getHwcDisplayId()); in handleMessageRefresh()
1595 status_t result = displayDevice->prepareFrame(*getBE().mHwc); in doDebugFlashRegions()
1652 getBE().mCompositePresentTimes.push({compositeTime, presentFenceTime}); in updateCompositorTiming()
1654 while (!getBE().mCompositePresentTimes.empty()) { in updateCompositorTiming()
1655 SurfaceFlingerBE::CompositePresentTime& cpt = getBE().mCompositePresentTimes.front(); in updateCompositorTiming()
1663 getBE().mCompositePresentTimes.pop(); in updateCompositorTiming()
1667 while (getBE().mCompositePresentTimes.size() > 16) { in updateCompositorTiming()
1668 getBE().mCompositePresentTimes.pop(); in updateCompositorTiming()
1700 std::lock_guard<std::mutex> lock(getBE().mCompositorTimingLock); in setCompositorTimingSnapped()
1701 getBE().mCompositorTiming.deadline = vsyncPhase - idealLatency; in setCompositorTimingSnapped()
1702 getBE().mCompositorTiming.interval = vsyncInterval; in setCompositorTimingSnapped()
1703 getBE().mCompositorTiming.presentLatency = snappedCompositeToPresentLatency; in setCompositorTimingSnapped()
1720 getBE().mGlCompositionDoneTimeline.updateSignalTimes(); in postComposition()
1722 if (hw && getBE().mHwc->hasClientComposition(HWC_DISPLAY_PRIMARY)) { in postComposition()
1725 getBE().mGlCompositionDoneTimeline.push(glCompositionDoneFenceTime); in postComposition()
1730 getBE().mDisplayTimeline.updateSignalTimes(); in postComposition()
1731 sp<Fence> presentFence = getBE().mHwc->getPresentFence(HWC_DISPLAY_PRIMARY); in postComposition()
1733 getBE().mDisplayTimeline.push(presentFenceTime); in postComposition()
1745 std::lock_guard<std::mutex> lock(getBE().mCompositorTimingLock); in postComposition()
1746 compositorTiming = getBE().mCompositorTiming; in postComposition()
1767 if (getBE().mHwc->isConnected(HWC_DISPLAY_PRIMARY) && hw->isDisplayOn()) { in postComposition()
1778 } else if (getBE().mHwc->isConnected(HWC_DISPLAY_PRIMARY)) { in postComposition()
1782 getBE().mHwc->getRefreshTimestamp(HWC_DISPLAY_PRIMARY); in postComposition()
1793 if (getBE().mHwc->isConnected(HWC_DISPLAY_PRIMARY) && in postComposition()
1802 nsecs_t elapsedTime = currentTime - getBE().mLastSwapTime; in postComposition()
1805 getBE().mFrameBuckets[numPeriods] += elapsedTime; in postComposition()
1807 getBE().mFrameBuckets[SurfaceFlingerBE::NUM_BUCKETS - 1] += elapsedTime; in postComposition()
1809 getBE().mTotalTime += elapsedTime; in postComposition()
1811 getBE().mLastSwapTime = currentTime; in postComposition()
2004 if (!layer->createHwcLayer(getBE().mHwc.get(), hwcId)) { in setUpHWComposer()
2029 status_t result = getBE().mHwc->setColorTransform(hwcId, mDrawingState.colorMatrix); in setUpHWComposer()
2072 status_t result = displayDevice->prepareFrame(*getBE().mHwc); in setUpHWComposer()
2114 getBE().mHwc->presentAndGetReleaseFences(hwcId); in postFramebuffer()
2123 sp<Fence> releaseFence = getBE().mHwc->getLayerReleaseFence(hwcId, hwcLayer); in postFramebuffer()
2142 sp<Fence> presentFence = getBE().mHwc->getPresentFence(hwcId); in postFramebuffer()
2149 getBE().mHwc->clearReleaseFences(hwcId); in postFramebuffer()
2157 if (getBE().mHwc->isConnected(HWC_DISPLAY_PRIMARY)) { in postFramebuffer()
2205 getBE().mHwc->getHwcDisplayId(DisplayDevice::DISPLAY_PRIMARY); in determineDisplayType()
2207 getBE().mHwc->getHwcDisplayId(DisplayDevice::DISPLAY_EXTERNAL); in determineDisplayType()
2229 if (getBE().mHwc->isUsingVrComposer() && displayType == DisplayDevice::DISPLAY_EXTERNAL) { in processDisplayHotplugEventsLocked()
2234 getBE().mHwc->onHotplug(event.display, displayType, event.connection); in processDisplayHotplugEventsLocked()
2435 if (mUseHwcVirtualDisplays || getBE().mHwc->isUsingVrComposer()) { in processDisplayChangesLocked()
2447 getBE().mHwc->allocateVirtualDisplay(width, height, &format, &hwcId); in processDisplayChangesLocked()
2453 new VirtualDisplaySurface(*getBE().mHwc, hwcId, state.surface, in processDisplayChangesLocked()
2467 dispSurface = new FramebufferSurface(*getBE().mHwc, hwcId, bqConsumer); in processDisplayChangesLocked()
2896 const bool hasClientComposition = getBE().mHwc->hasClientComposition(hwcId); in doComposeSurfaces()
2910 getBE().mRenderEngine->setOutputDataSpace(outputDataspace); in doComposeSurfaces()
2911 getBE().mRenderEngine->setDisplayMaxLuminance( in doComposeSurfaces()
2914 const bool hasDeviceComposition = getBE().mHwc->hasDeviceComposition(hwcId); in doComposeSurfaces()
2915 const bool skipClientColorTransform = getBE().mHwc->hasCapability( in doComposeSurfaces()
2947 getBE().mRenderEngine->clearWithColor(0, 0, 0, 0); in doComposeSurfaces()
2977 getBE().mRenderEngine->setScissor(scissor.left, height - scissor.bottom, in doComposeSurfaces()
3044 getBE().mRenderEngine->disableScissor(); in doComposeSurfaces()
3677 const auto& activeConfig = getBE().mHwc->getActiveConfig(HWC_DISPLAY_PRIMARY); in onInitializeDisplays()
3965 const auto& activeConfig = getBE().mHwc->getActiveConfig(HWC_DISPLAY_PRIMARY); in dumpStatsLocked()
4028 float bucketTimeSec = getBE().mFrameBuckets[b] / 1e9; in dumpStaticScreenStats()
4030 static_cast<float>(getBE().mFrameBuckets[b]) / getBE().mTotalTime; in dumpStaticScreenStats()
4034 float bucketTimeSec = getBE().mFrameBuckets[SurfaceFlingerBE::NUM_BUCKETS - 1] / 1e9; in dumpStaticScreenStats()
4036 … static_cast<float>(getBE().mFrameBuckets[SurfaceFlingerBE::NUM_BUCKETS - 1]) / getBE().mTotalTime; in dumpStaticScreenStats()
4043 Mutex::Autolock lock(getBE().mBufferingStatsMutex); in recordBufferingStats()
4044 auto& stats = getBE().mBufferingStats[layerName]; in recordBufferingStats()
4073 Mutex::Autolock lock(getBE().mBufferingStatsMutex); in dumpBufferingStats()
4076 for (const auto& statsPair : getBE().mBufferingStats) { in dumpBufferingStats()
4156 if (!layer->visibleRegion.isEmpty() && layer->getBE().mHwcLayers.count(hwcId)) { in dumpVisibleLayersProtoInfo()
4205 const auto& activeConfig = getBE().mHwc->getActiveConfig(HWC_DISPLAY_PRIMARY); in dumpAllLocked()
4261 getBE().mRenderEngine->dump(result); in dumpAllLocked()