Home
last modified time | relevance | path

Searched refs:FenceTime (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/native/libs/ui/include/ui/
DFenceTime.h37 class FenceTime {
77 static const std::shared_ptr<FenceTime> NO_FENCE;
79 explicit FenceTime(const sp<Fence>& fence);
80 explicit FenceTime(sp<Fence>&& fence);
84 explicit FenceTime(nsecs_t signalTime);
88 FenceTime() = delete;
93 FenceTime(const FenceTime&) = delete;
94 FenceTime(FenceTime&&) = delete;
95 FenceTime& operator=(const FenceTime&) = delete;
96 FenceTime& operator=(FenceTime&&) = delete;
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DFenceTime.h37 class FenceTime {
77 static const std::shared_ptr<FenceTime> NO_FENCE;
79 explicit FenceTime(const sp<Fence>& fence);
80 explicit FenceTime(sp<Fence>&& fence);
84 explicit FenceTime(nsecs_t signalTime);
88 FenceTime() = delete;
93 FenceTime(const FenceTime&) = delete;
94 FenceTime(FenceTime&&) = delete;
95 FenceTime& operator=(const FenceTime&) = delete;
96 FenceTime& operator=(FenceTime&&) = delete;
[all …]
/frameworks/native/libs/ui/
DFenceTime.cpp34 const auto FenceTime::NO_FENCE = std::make_shared<FenceTime>(Fence::NO_FENCE);
36 FenceTime::FenceTime(const sp<Fence>& fence) in FenceTime() function in android::FenceTime
44 FenceTime::FenceTime(sp<Fence>&& fence) in FenceTime() function in android::FenceTime
52 FenceTime::FenceTime(nsecs_t signalTime) in FenceTime() function in android::FenceTime
62 void FenceTime::applyTrustedSnapshot(const Snapshot& src) { in applyTrustedSnapshot()
93 bool FenceTime::isValid() const { in isValid()
100 nsecs_t FenceTime::getSignalTime() { in getSignalTime()
146 nsecs_t FenceTime::getCachedSignalTime() const { in getCachedSignalTime()
152 FenceTime::Snapshot FenceTime::getSnapshot() const { in getSnapshot()
170 FenceTime::FenceTime(const sp<Fence>& fence, bool forceValidForTest) in FenceTime() function in android::FenceTime
[all …]
/frameworks/native/libs/gui/include/gui/
DFrameTimestamps.h93 std::shared_ptr<FenceTime> acquireFence{FenceTime::NO_FENCE};
94 std::shared_ptr<FenceTime> gpuCompositionDoneFence{FenceTime::NO_FENCE};
95 std::shared_ptr<FenceTime> displayPresentFence{FenceTime::NO_FENCE};
96 std::shared_ptr<FenceTime> releaseFence{FenceTime::NO_FENCE};
143 uint64_t frameNumber, std::shared_ptr<FenceTime>&& acquire);
150 std::shared_ptr<FenceTime>* dst,
151 const FenceTime::Snapshot& src) const;
154 virtual std::shared_ptr<FenceTime> createFenceTime(
175 std::shared_ptr<FenceTime> acquireFence{FenceTime::NO_FENCE};
219 const std::shared_ptr<FenceTime>& gpuCompositionDone,
[all …]
DBufferItem.h63 std::shared_ptr<FenceTime> mFenceTime{FenceTime::NO_FENCE};
DGLConsumer.h203 std::shared_ptr<FenceTime> getCurrentFenceTime() const;
401 std::shared_ptr<FenceTime> mCurrentFenceTime{FenceTime::NO_FENCE};
/frameworks/native/libs/gui/
DFrameTimestamps.cpp92 const FenceTime& fenceTime) { in dumpFenceTime()
99 } else if (&fenceTime == FenceTime::NO_FENCE.get()){ in dumpFenceTime()
255 uint64_t frameNumber, std::shared_ptr<FenceTime>&& acquire) { in updateAcquireFence()
268 frame->acquireFence = std::make_shared<FenceTime>(frame->postedTime); in updateAcquireFence()
298 frame.acquireFence = FenceTime::NO_FENCE; in applyDelta()
299 frame.gpuCompositionDoneFence = FenceTime::NO_FENCE; in applyDelta()
300 frame.displayPresentFence = FenceTime::NO_FENCE; in applyDelta()
301 frame.releaseFence = FenceTime::NO_FENCE; in applyDelta()
323 std::shared_ptr<FenceTime>* dst, const FenceTime::Snapshot& src) const { in applyFenceDelta()
330 case FenceTime::Snapshot::State::EMPTY: in applyFenceDelta()
[all …]
DBLASTBufferQueue.cpp75 std::shared_ptr<FenceTime> glDoneFenceTime = std::make_shared<FenceTime>(glDoneFence); in updateFrameTimestamps()
76 std::shared_ptr<FenceTime> presentFenceTime = std::make_shared<FenceTime>(presentFence); in updateFrameTimestamps()
77 std::shared_ptr<FenceTime> releaseFenceTime = std::make_shared<FenceTime>(prevReleaseFence); in updateFrameTimestamps()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.h85 const std::shared_ptr<FenceTime>& readyFence) = 0;
105 const std::shared_ptr<FenceTime>& acquireFence) = 0;
110 const std::shared_ptr<FenceTime>& presentFence) = 0;
120 virtual void setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) = 0;
140 std::shared_ptr<FenceTime> acquireFence;
141 std::shared_ptr<FenceTime> presentFence;
164 std::variant<nsecs_t, std::shared_ptr<FenceTime>> endTime;
169 std::deque<std::shared_ptr<FenceTime>> presentFences;
242 const std::shared_ptr<FenceTime>& readyFence) override;
252 const std::shared_ptr<FenceTime>& acquireFence) override;
[all …]
/frameworks/native/services/surfaceflinger/
DFrameTracker.h61 void setFrameReadyFence(std::shared_ptr<FenceTime>&& readyFence);
69 void setActualPresentFence(std::shared_ptr<FenceTime>&& fence);
101 std::shared_ptr<FenceTime> frameReadyFence;
102 std::shared_ptr<FenceTime> actualPresentFence;
DFrameTracker.cpp54 std::shared_ptr<FenceTime>&& readyFence) { in setFrameReadyFence()
66 std::shared_ptr<FenceTime>&& readyFence) { in setActualPresentFence()
159 const std::shared_ptr<FenceTime>& rfence = records[idx].frameReadyFence; in processFencesLocked()
169 const std::shared_ptr<FenceTime>& pfence = in processFencesLocked()
DBufferLayer.h82 bool onPostComposition(const DisplayDevice*, const std::shared_ptr<FenceTime>& glDoneFence,
83 const std::shared_ptr<FenceTime>& presentFence,
159 std::shared_ptr<FenceTime> mFenceTime;
DBufferLayerConsumer.h177 std::shared_ptr<FenceTime> getCurrentFenceTime() const;
287 std::shared_ptr<FenceTime> mCurrentFenceTime{FenceTime::NO_FENCE};
DTransactionCompletedThread.h48 std::shared_ptr<FenceTime> gpuCompositionDoneFence{FenceTime::NO_FENCE};
DBufferStateLayer.cpp116 std::shared_ptr<FenceTime> releaseFenceTime = std::make_shared<FenceTime>(releaseFence); in releasePendingBuffer()
126 void BufferStateLayer::finalizeFrameEventHistory(const std::shared_ptr<FenceTime>& glDoneFence, in finalizeFrameEventHistory()
250 std::shared_ptr<FenceTime> acquireFenceTime = in addFrameEvent()
251 std::make_shared<FenceTime>((acquireFence ? acquireFence : Fence::NO_FENCE)); in addFrameEvent()
581 std::make_shared<FenceTime>(mDrawingState.acquireFence)); in updateTexImage()
692 mBufferInfo.mFenceTime = std::make_shared<FenceTime>(s.acquireFence); in gatherBufferInfo()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockTimeStats.h44 MOCK_METHOD2(recordRenderEngineDuration, void(nsecs_t, const std::shared_ptr<FenceTime>&));
51 MOCK_METHOD3(setAcquireFence, void(int32_t, uint64_t, const std::shared_ptr<FenceTime>&));
53 MOCK_METHOD3(setPresentFence, void(int32_t, uint64_t, const std::shared_ptr<FenceTime>&));
59 MOCK_METHOD1(setPresentFenceGlobal, void(const std::shared_ptr<FenceTime>&));
DMockFrameTracer.h37 void(int32_t, uint64_t, uint64_t, const std::shared_ptr<FenceTime>&,
/frameworks/native/services/surfaceflinger/Scheduler/
DDispSync.h31 class FenceTime; variable
50 virtual bool addPresentFence(const std::shared_ptr<FenceTime>&) = 0;
107 bool addPresentFence(const std::shared_ptr<FenceTime>& fenceTime) override;
246 std::shared_ptr<FenceTime> mPresentFences[NUM_PRESENT_SAMPLES]{FenceTime::NO_FENCE};
DVSyncReactor.h43 bool addPresentFence(const std::shared_ptr<FenceTime>& fence) final;
82 std::vector<std::shared_ptr<FenceTime>> mUnfiredFences GUARDED_BY(mMutex);
/frameworks/native/libs/nativedisplay/include/surfacetexture/
DSurfaceTexture.h235 std::shared_ptr<FenceTime> getCurrentFenceTime() const;
370 std::shared_ptr<FenceTime> mCurrentFenceTime{FenceTime::NO_FENCE};
/frameworks/native/services/surfaceflinger/tests/unittests/
DTimeStatsTest.cpp237 mTimeStats->setAcquireFence(id, frameNumber, std::make_shared<FenceTime>(ts))); in setTimeStamp()
250 mTimeStats->setPresentFence(id, frameNumber, std::make_shared<FenceTime>(ts))); in setTimeStamp()
417 std::make_shared<FenceTime>( in TEST_F()
429 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>( in TEST_F()
440 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(1000000))); in TEST_F()
442 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(2000000))); in TEST_F()
446 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(3000000))); in TEST_F()
448 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(5000000))); in TEST_F()
452 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(6000000))); in TEST_F()
454 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(8000000))); in TEST_F()
[all …]
DVSyncReactorTest.cpp114 std::shared_ptr<FenceTime> generateInvalidFence() { in generateInvalidFence()
116 return std::make_shared<FenceTime>(fence); in generateInvalidFence()
119 std::shared_ptr<FenceTime> generatePendingFence() { in generatePendingFence()
121 return std::make_shared<FenceTime>(fence); in generatePendingFence()
124 void signalFenceWithTime(std::shared_ptr<FenceTime> const& fence, nsecs_t time) { in signalFenceWithTime()
125 FenceTime::Snapshot snap(time); in signalFenceWithTime()
129 std::shared_ptr<FenceTime> generateSignalledFenceWithTime(nsecs_t time) { in generateSignalledFenceWithTime()
131 std::shared_ptr<FenceTime> ft = std::make_shared<FenceTime>(fence); in generateSignalledFenceWithTime()
216 std::array<std::shared_ptr<FenceTime>, kPendingLimit * 2> fences; in TEST_F()
/frameworks/native/libs/gui/tests/
DSurface_test.cpp882 std::shared_ptr<FenceTime>&& acquire) override { in updateAcquireFence()
888 std::shared_ptr<FenceTime>(mAcquireFenceOverride)); in updateAcquireFence()
892 const std::shared_ptr<FenceTime>& acquireFenceOverride, in setAcquireFenceOverride()
893 const std::shared_ptr<FenceTime>& consumerAcquireFence) { in setAcquireFenceOverride()
899 std::shared_ptr<FenceTime> createFenceTime(const sp<Fence>& fence) in createFenceTime()
906 std::shared_ptr<FenceTime> mAcquireFenceOverride{FenceTime::NO_FENCE};
907 std::shared_ptr<FenceTime> mConsumerAcquireFence{FenceTime::NO_FENCE};
952 std::shared_ptr<FenceTime> mFenceTime { nullptr };
1130 std::shared_ptr<FenceTime> gpuDoneFenceTime = FenceTime::NO_FENCE; in addFrameEvents()
1139 FenceTime::NO_FENCE; in addFrameEvents()
[all …]
/frameworks/native/services/surfaceflinger/FrameTracer/
DFrameTracer.h60 const std::shared_ptr<FenceTime>& fence, FrameEvent::BufferEventType type,
/frameworks/native/libs/gui/bufferqueue/1.0/
DConversion.cpp549 ::android::FenceTime::Snapshot::signalTime); in getFlattenedSize()
590 ::android::FenceTime::Snapshot::State::EMPTY); in flatten()
594 ::android::FenceTime::Snapshot::State::FENCE); in flatten()
598 ::android::FenceTime::Snapshot::State::SIGNAL_TIME); in flatten()
628 ::android::FenceTime::Snapshot::State state; in unflatten()
631 case ::android::FenceTime::Snapshot::State::EMPTY: in unflatten()
634 case ::android::FenceTime::Snapshot::State::FENCE: in unflatten()
637 case ::android::FenceTime::Snapshot::State::SIGNAL_TIME: in unflatten()

12