Home
last modified time | relevance | path

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

12

/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/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/
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 …]
DAndroid.bp44 "FenceTime.cpp",
/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/services/surfaceflinger/TimeStats/
DTimeStats.h56 const std::shared_ptr<FenceTime>& acquireFence) = 0;
59 const std::shared_ptr<FenceTime>& presentFence) = 0;
68 virtual void setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) = 0;
86 std::shared_ptr<FenceTime> acquireFence;
87 std::shared_ptr<FenceTime> presentFence;
108 std::deque<std::shared_ptr<FenceTime>> presentFences;
128 const std::shared_ptr<FenceTime>& acquireFence) override;
131 const std::shared_ptr<FenceTime>& presentFence) override;
140 void setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) override;
DTimeStats.cpp351 const std::shared_ptr<FenceTime>& acquireFence) { in setAcquireFence()
393 const std::shared_ptr<FenceTime>& presentFence) { in setPresentFence()
523 void TimeStats::setPresentFenceGlobal(const std::shared_ptr<FenceTime>& presentFence) { in setPresentFenceGlobal()
/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 …]
/frameworks/native/services/surfaceflinger/
DFrameTracker.h64 void setFrameReadyFence(std::shared_ptr<FenceTime>&& readyFence);
72 void setActualPresentFence(std::shared_ptr<FenceTime>&& fence);
104 std::shared_ptr<FenceTime> frameReadyFence;
105 std::shared_ptr<FenceTime> actualPresentFence;
DBufferLayer.h91 const std::shared_ptr<FenceTime>& glDoneFence,
92 const std::shared_ptr<FenceTime>& presentFence,
120 virtual std::shared_ptr<FenceTime> getCurrentFenceTime() const = 0;
DFrameTracker.cpp51 std::shared_ptr<FenceTime>&& readyFence) { in setFrameReadyFence()
63 std::shared_ptr<FenceTime>&& readyFence) { in setActualPresentFence()
156 const std::shared_ptr<FenceTime>& rfence = records[idx].frameReadyFence; in processFencesLocked()
166 const std::shared_ptr<FenceTime>& pfence = in processFencesLocked()
DBufferLayerConsumer.h177 std::shared_ptr<FenceTime> getCurrentFenceTime() const;
292 std::shared_ptr<FenceTime> mCurrentFenceTime{FenceTime::NO_FENCE};
DBufferLayer.cpp359 const std::shared_ptr<FenceTime>& glDoneFence, in onPostComposition()
360 const std::shared_ptr<FenceTime>& presentFence, in onPostComposition()
380 std::shared_ptr<FenceTime> frameReadyFence = getCurrentFenceTime(); in onPostComposition()
391 mFrameTracker.setActualPresentFence(std::shared_ptr<FenceTime>(presentFence)); in onPostComposition()
DBufferQueueLayer.h68 std::shared_ptr<FenceTime> getCurrentFenceTime() const override;
DBufferQueueLayer.cpp73 auto releaseFenceTime = std::make_shared<FenceTime>(mConsumer->getPrevFinalReleaseFence()); in releasePendingBuffer()
153 std::shared_ptr<FenceTime> BufferQueueLayer::getCurrentFenceTime() const { in getCurrentFenceTime()
/frameworks/native/services/surfaceflinger/Scheduler/
DDispSync.h31 class FenceTime; variable
50 virtual bool addPresentFence(const std::shared_ptr<FenceTime>&) = 0;
108 bool addPresentFence(const std::shared_ptr<FenceTime>& fenceTime) override;
252 std::shared_ptr<FenceTime> mPresentFences[NUM_PRESENT_SAMPLES]{FenceTime::NO_FENCE};
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockTimeStats.h41 MOCK_METHOD3(setAcquireFence, void(int32_t, uint64_t, const std::shared_ptr<FenceTime>&));
43 MOCK_METHOD3(setPresentFence, void(int32_t, uint64_t, const std::shared_ptr<FenceTime>&));
48 MOCK_METHOD1(setPresentFenceGlobal, void(const std::shared_ptr<FenceTime>&));
DMockDispSync.h32 MOCK_METHOD1(addPresentFence, bool(const std::shared_ptr<FenceTime>&));
/frameworks/base/libs/hwui/surfacetexture/
DSurfaceTexture.h222 std::shared_ptr<FenceTime> getCurrentFenceTime() const;
353 std::shared_ptr<FenceTime> mCurrentFenceTime{FenceTime::NO_FENCE};
/frameworks/native/services/surfaceflinger/tests/unittests/
DTimeStatsTest.cpp188 mTimeStats->setAcquireFence(id, frameNumber, std::make_shared<FenceTime>(ts))); in setTimeStamp()
201 mTimeStats->setPresentFence(id, frameNumber, std::make_shared<FenceTime>(ts))); in setTimeStamp()
253 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(1000000))); in TEST_F()
255 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(2000000))); in TEST_F()
259 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(3000000))); in TEST_F()
261 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(5000000))); in TEST_F()
265 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(6000000))); in TEST_F()
267 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(8000000))); in TEST_F()
500 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(1000000))); in TEST_F()
502 mTimeStats->setPresentFenceGlobal(std::make_shared<FenceTime>(2000000))); in TEST_F()
/frameworks/native/libs/gui/tests/
DSurface_test.cpp849 std::shared_ptr<FenceTime>&& acquire) override { in updateAcquireFence()
855 std::shared_ptr<FenceTime>(mAcquireFenceOverride)); in updateAcquireFence()
859 const std::shared_ptr<FenceTime>& acquireFenceOverride, in setAcquireFenceOverride()
860 const std::shared_ptr<FenceTime>& consumerAcquireFence) { in setAcquireFenceOverride()
866 std::shared_ptr<FenceTime> createFenceTime(const sp<Fence>& fence) in createFenceTime()
873 std::shared_ptr<FenceTime> mAcquireFenceOverride{FenceTime::NO_FENCE};
874 std::shared_ptr<FenceTime> mConsumerAcquireFence{FenceTime::NO_FENCE};
919 std::shared_ptr<FenceTime> mFenceTime { nullptr };
1097 std::shared_ptr<FenceTime> gpuDoneFenceTime = FenceTime::NO_FENCE; in addFrameEvents()
1106 FenceTime::NO_FENCE; in addFrameEvents()
[all …]
/frameworks/native/libs/gui/bufferqueue/1.0/
DConversion.cpp563 ::android::FenceTime::Snapshot::signalTime); in getFlattenedSize()
604 ::android::FenceTime::Snapshot::State::EMPTY); in flatten()
608 ::android::FenceTime::Snapshot::State::FENCE); in flatten()
612 ::android::FenceTime::Snapshot::State::SIGNAL_TIME); in flatten()
642 ::android::FenceTime::Snapshot::State state; in unflatten()
645 case ::android::FenceTime::Snapshot::State::EMPTY: in unflatten()
648 case ::android::FenceTime::Snapshot::State::FENCE: in unflatten()
651 case ::android::FenceTime::Snapshot::State::SIGNAL_TIME: in unflatten()
DH2BGraphicBufferProducer.cpp592 ::android::FenceTime::Snapshot::signalTime); in getFlattenedSize()
636 ::android::FenceTime::Snapshot::State::EMPTY); in flatten()
640 ::android::FenceTime::Snapshot::State::FENCE); in flatten()
646 ::android::FenceTime::Snapshot::State::SIGNAL_TIME); in flatten()

12