Loading libs/gui/tests/Surface_test.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1341,7 +1341,7 @@ protected: newFrame->mRefreshes[0].mGpuCompositionDone.mFenceTime : FenceTime::NO_FENCE; // HWC2 releases the previous buffer after a new latch just before // calling postComposition. // calling onCompositionPresented. if (oldFrame != nullptr) { mCfeh->addRelease(nOldFrame, oldFrame->kDequeueReadyTime, std::shared_ptr<FenceTime>(oldFrame->mRelease.mFenceTime)); Loading services/surfaceflinger/Layer.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -4024,7 +4024,7 @@ bool Layer::isVisible() const { return getAlpha() > 0.0f || hasBlur(); } void Layer::onPostComposition(const DisplayDevice* display, void Layer::onCompositionPresented(const DisplayDevice* display, const std::shared_ptr<FenceTime>& glDoneFence, const std::shared_ptr<FenceTime>& presentFence, const CompositorTiming& compositorTiming) { Loading services/surfaceflinger/Layer.h +4 −7 Original line number Diff line number Diff line Loading @@ -435,11 +435,8 @@ public: void updateCloneBufferInfo(); uint64_t mPreviousFrameNumber = 0; /* * called after composition. * returns true if the layer latched a new buffer this frame. */ void onPostComposition(const DisplayDevice*, const std::shared_ptr<FenceTime>& /*glDoneFence*/, void onCompositionPresented(const DisplayDevice*, const std::shared_ptr<FenceTime>& /*glDoneFence*/, const std::shared_ptr<FenceTime>& /*presentFence*/, const CompositorTiming&); Loading services/surfaceflinger/Scheduler/Scheduler.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1165,7 +1165,7 @@ void Scheduler::onNewVsyncPeriodChangeTimeline(const hal::VsyncPeriodChangeTimel } } bool Scheduler::onPostComposition(nsecs_t presentTime) { bool Scheduler::onCompositionPresented(nsecs_t presentTime) { std::lock_guard<std::mutex> lock(mVsyncTimelineLock); if (mLastVsyncPeriodChangeTimeline && mLastVsyncPeriodChangeTimeline->refreshRequired) { if (presentTime < mLastVsyncPeriodChangeTimeline->refreshTimeNanos) { Loading services/surfaceflinger/Scheduler/Scheduler.h +2 −2 Original line number Diff line number Diff line Loading @@ -281,8 +281,8 @@ public: // Notifies the scheduler about a refresh rate timeline change. void onNewVsyncPeriodChangeTimeline(const hal::VsyncPeriodChangeTimeline& timeline); // Notifies the scheduler post composition. Returns if recomposite is needed. bool onPostComposition(nsecs_t presentTime); // Notifies the scheduler once the composition is presented. Returns if recomposite is needed. bool onCompositionPresented(nsecs_t presentTime); // Notifies the scheduler when the display size has changed. Called from SF's main thread void onActiveDisplayAreaChanged(uint32_t displayArea); Loading Loading
libs/gui/tests/Surface_test.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1341,7 +1341,7 @@ protected: newFrame->mRefreshes[0].mGpuCompositionDone.mFenceTime : FenceTime::NO_FENCE; // HWC2 releases the previous buffer after a new latch just before // calling postComposition. // calling onCompositionPresented. if (oldFrame != nullptr) { mCfeh->addRelease(nOldFrame, oldFrame->kDequeueReadyTime, std::shared_ptr<FenceTime>(oldFrame->mRelease.mFenceTime)); Loading
services/surfaceflinger/Layer.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -4024,7 +4024,7 @@ bool Layer::isVisible() const { return getAlpha() > 0.0f || hasBlur(); } void Layer::onPostComposition(const DisplayDevice* display, void Layer::onCompositionPresented(const DisplayDevice* display, const std::shared_ptr<FenceTime>& glDoneFence, const std::shared_ptr<FenceTime>& presentFence, const CompositorTiming& compositorTiming) { Loading
services/surfaceflinger/Layer.h +4 −7 Original line number Diff line number Diff line Loading @@ -435,11 +435,8 @@ public: void updateCloneBufferInfo(); uint64_t mPreviousFrameNumber = 0; /* * called after composition. * returns true if the layer latched a new buffer this frame. */ void onPostComposition(const DisplayDevice*, const std::shared_ptr<FenceTime>& /*glDoneFence*/, void onCompositionPresented(const DisplayDevice*, const std::shared_ptr<FenceTime>& /*glDoneFence*/, const std::shared_ptr<FenceTime>& /*presentFence*/, const CompositorTiming&); Loading
services/surfaceflinger/Scheduler/Scheduler.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1165,7 +1165,7 @@ void Scheduler::onNewVsyncPeriodChangeTimeline(const hal::VsyncPeriodChangeTimel } } bool Scheduler::onPostComposition(nsecs_t presentTime) { bool Scheduler::onCompositionPresented(nsecs_t presentTime) { std::lock_guard<std::mutex> lock(mVsyncTimelineLock); if (mLastVsyncPeriodChangeTimeline && mLastVsyncPeriodChangeTimeline->refreshRequired) { if (presentTime < mLastVsyncPeriodChangeTimeline->refreshTimeNanos) { Loading
services/surfaceflinger/Scheduler/Scheduler.h +2 −2 Original line number Diff line number Diff line Loading @@ -281,8 +281,8 @@ public: // Notifies the scheduler about a refresh rate timeline change. void onNewVsyncPeriodChangeTimeline(const hal::VsyncPeriodChangeTimeline& timeline); // Notifies the scheduler post composition. Returns if recomposite is needed. bool onPostComposition(nsecs_t presentTime); // Notifies the scheduler once the composition is presented. Returns if recomposite is needed. bool onCompositionPresented(nsecs_t presentTime); // Notifies the scheduler when the display size has changed. Called from SF's main thread void onActiveDisplayAreaChanged(uint32_t displayArea); Loading