Home
last modified time | relevance | path

Searched refs:prevFence (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/services/surfaceflinger/Utils/
DFenceUtils.h24 inline void mergeFence(const char* debugName, sp<Fence>&& incomingFence, sp<Fence>& prevFence) { in mergeFence() argument
25 if (prevFence == nullptr && incomingFence->getStatus() != Fence::Status::Invalid) { in mergeFence()
26 prevFence = std::move(incomingFence); in mergeFence()
27 } else if (prevFence != nullptr) { in mergeFence()
30 if (prevFence->getStatus() != Fence::Status::Invalid && in mergeFence()
31 prevFence->getStatus() == incomingFence->getStatus()) { in mergeFence()
34 sp<Fence> mergedFence = Fence::merge(fenceName, prevFence, incomingFence); in mergeFence()
36 prevFence = std::move(mergedFence); in mergeFence()
46 prevFence = std::move(incomingFence); in mergeFence()
/frameworks/native/services/surfaceflinger/
DTransactionCallbackInvoker.cpp131 sp<Fence> prevFence = nullptr; in addCallbackHandle() local
135 mergeFence(handle->name.c_str(), future.get().value_or(Fence::NO_FENCE), prevFence); in addCallbackHandle()
139 mergeFence(handle->name.c_str(), future.get().value_or(Fence::NO_FENCE), prevFence); in addCallbackHandle()
143 handle->previousReleaseFence = prevFence; in addCallbackHandle()
DLayer.cpp2916 sp<Fence> prevFence = nullptr; in onLayerDisplayed() local
2927 futureAndContinuation.chain().get().value_or(Fence::NO_FENCE), prevFence); in onLayerDisplayed()
2929 if (prevFence != nullptr) { in onLayerDisplayed()
2930 mergedFences.emplace_back(ftl::yield(FenceResult(std::move(prevFence))).share()); in onLayerDisplayed()