Loading services/surfaceflinger/SurfaceFlinger.cpp +9 −8 Original line number Original line Diff line number Diff line Loading @@ -913,6 +913,15 @@ void SurfaceFlinger::onMessageReceived(int32_t what) { ATRACE_CALL(); ATRACE_CALL(); switch (what) { switch (what) { case MessageQueue::INVALIDATE: { case MessageQueue::INVALIDATE: { bool frameMissed = !mHadClientComposition && mPreviousPresentFence != Fence::NO_FENCE && mPreviousPresentFence->getSignalTime() == INT64_MAX; ATRACE_INT("FrameMissed", static_cast<int>(frameMissed)); if (frameMissed) { signalLayerUpdate(); break; } bool refreshNeeded = handleMessageTransaction(); bool refreshNeeded = handleMessageTransaction(); refreshNeeded |= handleMessageInvalidate(); refreshNeeded |= handleMessageInvalidate(); refreshNeeded |= mRepaintEverything; refreshNeeded |= mRepaintEverything; Loading Loading @@ -942,14 +951,6 @@ bool SurfaceFlinger::handleMessageTransaction() { bool SurfaceFlinger::handleMessageInvalidate() { bool SurfaceFlinger::handleMessageInvalidate() { ATRACE_CALL(); ATRACE_CALL(); bool frameMissed = !mHadClientComposition && mPreviousPresentFence != Fence::NO_FENCE && mPreviousPresentFence->getSignalTime() == INT64_MAX; ATRACE_INT("FrameMissed", static_cast<int>(frameMissed)); if (frameMissed) { signalLayerUpdate(); return false; } return handlePageFlip(); return handlePageFlip(); } } Loading Loading
services/surfaceflinger/SurfaceFlinger.cpp +9 −8 Original line number Original line Diff line number Diff line Loading @@ -913,6 +913,15 @@ void SurfaceFlinger::onMessageReceived(int32_t what) { ATRACE_CALL(); ATRACE_CALL(); switch (what) { switch (what) { case MessageQueue::INVALIDATE: { case MessageQueue::INVALIDATE: { bool frameMissed = !mHadClientComposition && mPreviousPresentFence != Fence::NO_FENCE && mPreviousPresentFence->getSignalTime() == INT64_MAX; ATRACE_INT("FrameMissed", static_cast<int>(frameMissed)); if (frameMissed) { signalLayerUpdate(); break; } bool refreshNeeded = handleMessageTransaction(); bool refreshNeeded = handleMessageTransaction(); refreshNeeded |= handleMessageInvalidate(); refreshNeeded |= handleMessageInvalidate(); refreshNeeded |= mRepaintEverything; refreshNeeded |= mRepaintEverything; Loading Loading @@ -942,14 +951,6 @@ bool SurfaceFlinger::handleMessageTransaction() { bool SurfaceFlinger::handleMessageInvalidate() { bool SurfaceFlinger::handleMessageInvalidate() { ATRACE_CALL(); ATRACE_CALL(); bool frameMissed = !mHadClientComposition && mPreviousPresentFence != Fence::NO_FENCE && mPreviousPresentFence->getSignalTime() == INT64_MAX; ATRACE_INT("FrameMissed", static_cast<int>(frameMissed)); if (frameMissed) { signalLayerUpdate(); return false; } return handlePageFlip(); return handlePageFlip(); } } Loading