Home
last modified time | relevance | path

Searched refs:presentFence (Results 1 – 25 of 31) sorted by relevance

12

/aosp12/frameworks/native/libs/gui/include/gui/test/
H A DCallbackUtils.h37 : latchTime(time), presentFence(fence), surfaceControlStats(stats) {} in CallbackData()
40 sp<Fence> presentFence; member
93 const auto& [latchTime, presentFence, surfaceControlStats] = callbackData; in verifyCallbackData()
96 ASSERT_NE(presentFence, nullptr); in verifyCallbackData()
98 ASSERT_EQ(presentFence->wait(3000), NO_ERROR); in verifyCallbackData()
102 ASSERT_LE(presentFence->getSignalTime(), in verifyCallbackData()
105 ASSERT_EQ(presentFence->wait(3000), NO_ERROR); in verifyCallbackData()
107 ASSERT_GE(presentFence->getSignalTime(), in verifyCallbackData()
111 ASSERT_EQ(presentFence, nullptr) << "transaction shouldn't have been presented"; in verifyCallbackData()
137 const auto& [surfaceControl, latch, acquireTime, presentFence, previousReleaseFence, in verifySurfaceControlStats()
[all …]
/aosp12/frameworks/base/native/android/
H A Dsurface_control.cpp206 sp<Fence> presentFence; member
220 auto& presentFence = aSurfaceTransactionStats->presentFence; in ASurfaceTransactionStats_getPresentFenceFd() local
221 return (presentFence) ? presentFence->dup() : -1; in ASurfaceTransactionStats_getPresentFenceFd()
291 const sp<Fence>& presentFence, in ASurfaceTransaction_setOnComplete()
296 aSurfaceTransactionStats.presentFence = presentFence; in ASurfaceTransaction_setOnComplete()
301 …for (const auto& [surfaceControl, latchTime, acquireTime, presentFence, previousReleaseFence, tran… in ASurfaceTransaction_setOnComplete()
651 [surfaceControl, latchTime, acquireTime, presentFence, in ASurfaceTransaction_setOnCommit()
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/
H A DTransactionFrameTracerTest.cpp136 auto presentFence = fenceFactory.createFenceTimeForTest(fence); in BLASTTransactionSendsFrameTracerEvents() local
139 traceFence(layerId, bufferId, frameNumber, presentFence, in BLASTTransactionSendsFrameTracerEvents()
141 layer->onPostComposition(nullptr, glDoneFence, presentFence, compositorTiming); in BLASTTransactionSendsFrameTracerEvents()
H A DFrameTimelineTest.cpp320 auto presentFence = fenceFactory.createFenceTimeForTest(Fence::NO_FENCE); in TEST_F() local
333 mFrameTimeline->setSfPresent(27 + frameTimeFactor, presentFence); in TEST_F()
334 presentFence->signalForTest(32 + frameTimeFactor); in TEST_F()
343 auto presentFence = fenceFactory.createFenceTimeForTest(Fence::NO_FENCE); in TEST_F() local
355 mFrameTimeline->setSfPresent(27 + frameTimeFactor, presentFence); in TEST_F()
356 presentFence->signalForTest(32 + frameTimeFactor); in TEST_F()
385 auto presentFence = fenceFactory.createFenceTimeForTest(Fence::NO_FENCE); in TEST_F() local
386 presentFence->signalForTest(2); in TEST_F()
398 mFrameTimeline->setSfPresent(27, presentFence); in TEST_F()
415 mFrameTimeline->setSfPresent(27, presentFence); in TEST_F()
[all …]
/aosp12/frameworks/native/services/surfaceflinger/TimeStats/
H A DTimeStats.h106 const std::shared_ptr<FenceTime>& presentFence,
168 virtual void setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) = 0;
189 std::shared_ptr<FenceTime> presentFence; member
260 const std::shared_ptr<FenceTime>& presentFence, Fps displayRefreshRate,
274 void setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) override;
H A DTimeStats.cpp434 if (timeRecord->presentFence != nullptr) { in recordReadyLocked()
435 if (timeRecord->presentFence->getSignalTime() == Fence::SIGNAL_TIME_PENDING) { in recordReadyLocked()
438 if (timeRecord->presentFence->getSignalTime() != Fence::SIGNAL_TIME_INVALID) { in recordReadyLocked()
439 timeRecord->frameTime.presentTime = timeRecord->presentFence->getSignalTime(); in recordReadyLocked()
440 timeRecord->presentFence = nullptr; in recordReadyLocked()
745 const std::shared_ptr<FenceTime>& presentFence, in setPresentFence() argument
752 presentFence->getSignalTime()); in setPresentFence()
762 timeRecord.presentFence = presentFence; in setPresentFence()
995 void TimeStats::setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) { in setPresentFenceGlobal() argument
1000 if (presentFence == nullptr || !presentFence->isValid()) { in setPresentFenceGlobal()
[all …]
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/
H A DComposerCommandEngine.h288 int presentFence = -1; in executePresentOrValidateDisplay() local
293 : mHal->presentDisplay(mCurrentDisplay, &presentFence, &layers, &fences); in executePresentOrValidateDisplay()
296 mWriter->setPresentFence(presentFence); in executePresentOrValidateDisplay()
329 int presentFence = -1; in executePresentDisplay() local
332 auto err = mHal->presentDisplay(mCurrentDisplay, &presentFence, &layers, &fences); in executePresentDisplay()
334 mWriter->setPresentFence(presentFence); in executePresentDisplay()
H A DComposerClient.h420 int32_t presentFence = -1; in destroyResources()
423 mHal->presentDisplay(display, &presentFence, &releasedLayers, &releaseFences); in destroyResources()
424 if (presentFence >= 0) { in destroyResources()
425 close(presentFence); in destroyResources()
/aosp12/frameworks/native/libs/gui/
H A DITransactionCompletedListener.cpp165 if (presentFence) { in writeToParcel()
170 err = output->write(*presentFence); in writeToParcel()
195 presentFence = new Fence(); in readFromParcel()
196 err = input->read(*presentFence); in readFromParcel()
H A DBLASTBufferQueue.cpp92 const sp<Fence>& presentFence, in updateFrameTimestamps() argument
102 std::shared_ptr<FenceTime> presentFenceTime = std::make_shared<FenceTime>(presentFence); in updateFrameTimestamps()
243 const sp<Fence>& presentFence, in transactionCommittedCallbackThunk() argument
249 bq->transactionCommittedCallback(latchTime, presentFence, stats); in transactionCommittedCallbackThunk()
294 const sp<Fence>& presentFence, in transactionCallbackThunk() argument
300 bq->transactionCallback(latchTime, presentFence, stats); in transactionCallbackThunk()
329 stat.presentFence, stat.previousReleaseFence, in transactionCallback()
H A DSurfaceComposerClient.cpp297 transactionStats.presentFence, in onTransactionCompleted()
302 callbackFunction(transactionStats.latchTime, transactionStats.presentFence, in onTransactionCompleted()
322 transactionStats.presentFence, in onTransactionCompleted()
352 callbackFunction(transactionStats.latchTime, transactionStats.presentFence, in onTransactionCompleted()
378 transactionStats.presentFence, surfaceStats); in onTransactionCompleted()
/aosp12/frameworks/native/libs/gui/include/gui/
H A DBLASTBufferQueue.h52 const sp<Fence>& presentFence, const sp<Fence>& prevReleaseFence,
91 void transactionCommittedCallback(nsecs_t latchTime, const sp<Fence>& presentFence,
93 void transactionCallback(nsecs_t latchTime, const sp<Fence>& presentFence,
H A DSurfaceComposerClient.h59 const sp<Fence>& presentFence, const sp<Fence>& prevReleaseFence, in SurfaceControlStats()
64 presentFence(presentFence), in SurfaceControlStats()
73 sp<Fence> presentFence; member
H A DITransactionCompletedListener.h167 : callbackIds(ids), latchTime(latch), presentFence(present), surfaceStats(surfaces) {} in TransactionStats()
171 sp<Fence> presentFence = nullptr; variable
/aosp12/frameworks/native/services/surfaceflinger/
H A DTransactionCallbackInvoker.cpp246 void TransactionCallbackInvoker::addPresentFence(const sp<Fence>& presentFence) { in addPresentFence() argument
248 mPresentFence = presentFence; in addPresentFence()
287 transactionStats.presentFence = mPresentFence; in sendCallbacks()
H A DBufferLayer.cpp379 const std::shared_ptr<FenceTime>& presentFence, in onPostComposition() argument
388 mFrameEventHistory.addPostComposition(mCurrentFrameNumber, glDoneFence, presentFence, in onPostComposition()
428 if (presentFence->isValid()) { in onPostComposition()
429 mFlinger->mTimeStats->setPresentFence(layerId, mCurrentFrameNumber, presentFence, in onPostComposition()
435 presentFence, in onPostComposition()
437 mFrameTracker.setActualPresentFence(std::shared_ptr<FenceTime>(presentFence)); in onPostComposition()
H A DTransactionCallbackInvoker.h85 void addPresentFence(const sp<Fence>& presentFence);
H A DBufferLayer.h81 const std::shared_ptr<FenceTime>& presentFence,
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
H A DDisplayTest.cpp837 ASSERT_TRUE(result.presentFence.get()); in TEST_F()
838 EXPECT_FALSE(result.presentFence->isValid()); in TEST_F()
843 sp<Fence> presentFence = new Fence(); in TEST_F() local
850 .WillOnce(Return(presentFence)); in TEST_F()
861 EXPECT_EQ(presentFence, result.presentFence); in TEST_F()
/aosp12/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DComposerHal.cpp1387 if (mCurrentReturnData->presentFence >= 0) { in parseSetPresentFence()
1388 close(mCurrentReturnData->presentFence); in parseSetPresentFence()
1390 mCurrentReturnData->presentFence = readFence(); in parseSetPresentFence()
1441 if (data.second.presentFence >= 0) { in resetData()
1442 close(data.second.presentFence); in resetData()
1541 *outPresentFence = data.presentFence; in takePresentFence()
1542 data.presentFence = -1; in takePresentFence()
/aosp12/hardware/qcom/sm7250/display/composer/
H A DQtiComposerClient.cpp105 shared_ptr<Fence> presentFence = nullptr; in ~QtiComposerClient() local
108 mReader.presentDisplay(dpy.first, &presentFence, releasedLayers, releaseFences); in ~QtiComposerClient()
1512 shared_ptr<Fence>* presentFence, in presentDisplay() argument
1515 int32_t err = mClient.hwc_session_->PresentDisplay(display, presentFence); in presentDisplay()
1545 shared_ptr<Fence> presentFence = nullptr; in parsePresentDisplay() local
1549 auto err = presentDisplay(mDisplay, &presentFence, layers, fences); in parsePresentDisplay()
1551 mWriter.setPresentFence(presentFence); in parsePresentDisplay()
1568 shared_ptr<Fence> presentFence = nullptr; in parsePresentOrValidateDisplay() local
1571 auto err = presentDisplay(mDisplay, &presentFence, layers, fences); in parsePresentOrValidateDisplay()
1574 mWriter.setPresentFence(presentFence); in parsePresentOrValidateDisplay()
/aosp12/frameworks/native/services/surfaceflinger/FrameTimeline/
H A DFrameTimeline.h298 virtual void setSfPresent(nsecs_t sfPresentTime, const std::shared_ptr<FenceTime>& presentFence,
447 void setSfPresent(nsecs_t sfPresentTime, const std::shared_ptr<FenceTime>& presentFence,
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
H A DOutput.h125 sp<Fence> presentFence{Fence::NO_FENCE};
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer/2.1/
H A DComposerCommandBuffer.h213 void setPresentFence(int presentFence) { in setPresentFence() argument
215 writeFence(presentFence); in setPresentFence()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/
H A DDisplay.cpp337 fences.presentFence = hwc.getPresentFence(*halDisplayIdOpt); in presentAndGetFrameFences()

12