/aosp12/frameworks/native/libs/gui/include/gui/test/ |
H A D | CallbackUtils.h | 37 : 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 D | surface_control.cpp | 206 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 D | TransactionFrameTracerTest.cpp | 136 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 D | FrameTimelineTest.cpp | 320 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 D | TimeStats.h | 106 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 D | TimeStats.cpp | 434 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 D | ComposerCommandEngine.h | 288 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 D | ComposerClient.h | 420 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 D | ITransactionCompletedListener.cpp | 165 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 D | BLASTBufferQueue.cpp | 92 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 D | SurfaceComposerClient.cpp | 297 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 D | BLASTBufferQueue.h | 52 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 D | SurfaceComposerClient.h | 59 const sp<Fence>& presentFence, const sp<Fence>& prevReleaseFence, in SurfaceControlStats() 64 presentFence(presentFence), in SurfaceControlStats() 73 sp<Fence> presentFence; member
|
H A D | ITransactionCompletedListener.h | 167 : callbackIds(ids), latchTime(latch), presentFence(present), surfaceStats(surfaces) {} in TransactionStats() 171 sp<Fence> presentFence = nullptr; variable
|
/aosp12/frameworks/native/services/surfaceflinger/ |
H A D | TransactionCallbackInvoker.cpp | 246 void TransactionCallbackInvoker::addPresentFence(const sp<Fence>& presentFence) { in addPresentFence() argument 248 mPresentFence = presentFence; in addPresentFence() 287 transactionStats.presentFence = mPresentFence; in sendCallbacks()
|
H A D | BufferLayer.cpp | 379 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 D | TransactionCallbackInvoker.h | 85 void addPresentFence(const sp<Fence>& presentFence);
|
H A D | BufferLayer.h | 81 const std::shared_ptr<FenceTime>& presentFence,
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
H A D | DisplayTest.cpp | 837 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 D | ComposerHal.cpp | 1387 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 D | QtiComposerClient.cpp | 105 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 D | FrameTimeline.h | 298 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 D | Output.h | 125 sp<Fence> presentFence{Fence::NO_FENCE};
|
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/command-buffer/include/composer-command-buffer/2.1/ |
H A D | ComposerCommandBuffer.h | 213 void setPresentFence(int presentFence) { in setPresentFence() argument 215 writeFence(presentFence); in setPresentFence()
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
H A D | Display.cpp | 337 fences.presentFence = hwc.getPresentFence(*halDisplayIdOpt); in presentAndGetFrameFences()
|