Searched refs:prevFence (Results 1 – 3 of 3) sorted by relevance
24 inline void mergeFence(const char* debugName, sp<Fence>&& incomingFence, sp<Fence>& prevFence) { in mergeFence() argument25 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()
131 sp<Fence> prevFence = nullptr; in addCallbackHandle() local135 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()
2916 sp<Fence> prevFence = nullptr; in onLayerDisplayed() local2927 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()