Loading services/surfaceflinger/SurfaceFlinger.cpp +6 −5 Original line number Diff line number Diff line Loading @@ -2519,6 +2519,8 @@ bool SurfaceFlinger::commit(TimePoint frameTime, VsyncId vsyncId, TimePoint expe } updateCursorAsync(); updateInputFlinger(); if (mLayerTracingEnabled && !mLayerTracing.flagIsSet(LayerTracing::TRACE_COMPOSITION)) { // This will block and tracing should only be enabled for debugging. addToLayerTracing(mVisibleRegionsDirty, frameTime.ns(), vsyncId.value); Loading Loading @@ -2859,11 +2861,6 @@ void SurfaceFlinger::postComposition(nsecs_t callTime) { layer->releasePendingBuffer(presentTime.ns()); } mTransactionCallbackInvoker.addPresentFence(std::move(presentFence)); mTransactionCallbackInvoker.sendCallbacks(false /* onCommitOnly */); mTransactionCallbackInvoker.clearCompletedTransactions(); updateInputFlinger(); std::vector<std::pair<std::shared_ptr<compositionengine::Display>, sp<HdrLayerInfoReporter>>> hdrInfoListeners; bool haveNewListeners = false; Loading Loading @@ -2923,6 +2920,10 @@ void SurfaceFlinger::postComposition(nsecs_t callTime) { mHdrLayerInfoChanged = false; mTransactionCallbackInvoker.addPresentFence(std::move(presentFence)); mTransactionCallbackInvoker.sendCallbacks(false /* onCommitOnly */); mTransactionCallbackInvoker.clearCompletedTransactions(); mTimeStats->incrementTotalFrames(); mTimeStats->setPresentFenceGlobal(presentFenceTime); Loading Loading
services/surfaceflinger/SurfaceFlinger.cpp +6 −5 Original line number Diff line number Diff line Loading @@ -2519,6 +2519,8 @@ bool SurfaceFlinger::commit(TimePoint frameTime, VsyncId vsyncId, TimePoint expe } updateCursorAsync(); updateInputFlinger(); if (mLayerTracingEnabled && !mLayerTracing.flagIsSet(LayerTracing::TRACE_COMPOSITION)) { // This will block and tracing should only be enabled for debugging. addToLayerTracing(mVisibleRegionsDirty, frameTime.ns(), vsyncId.value); Loading Loading @@ -2859,11 +2861,6 @@ void SurfaceFlinger::postComposition(nsecs_t callTime) { layer->releasePendingBuffer(presentTime.ns()); } mTransactionCallbackInvoker.addPresentFence(std::move(presentFence)); mTransactionCallbackInvoker.sendCallbacks(false /* onCommitOnly */); mTransactionCallbackInvoker.clearCompletedTransactions(); updateInputFlinger(); std::vector<std::pair<std::shared_ptr<compositionengine::Display>, sp<HdrLayerInfoReporter>>> hdrInfoListeners; bool haveNewListeners = false; Loading Loading @@ -2923,6 +2920,10 @@ void SurfaceFlinger::postComposition(nsecs_t callTime) { mHdrLayerInfoChanged = false; mTransactionCallbackInvoker.addPresentFence(std::move(presentFence)); mTransactionCallbackInvoker.sendCallbacks(false /* onCommitOnly */); mTransactionCallbackInvoker.clearCompletedTransactions(); mTimeStats->incrementTotalFrames(); mTimeStats->setPresentFenceGlobal(presentFenceTime); Loading