Lines Matching refs:fences
375 SyncFenceImpl(const std::vector<sp<Fence>>& fences, const sp<Fence> &finalFence) : in SyncFenceImpl() argument
376 mListFences(fences), in SyncFenceImpl()
404 std::vector<sp<Fence>> fences; in CreateFromNativeHandle() local
413 fences.push_back(fence); in CreateFromNativeHandle()
421 if (fences.size() == 0) { in CreateFromNativeHandle()
424 } else if (fences.size() == 1) { in CreateFromNativeHandle()
425 p = std::make_shared<SyncFenceImpl>(fences[0]); in CreateFromNativeHandle()
430 sp<Fence> finalFence = fences.back(); in CreateFromNativeHandle()
431 fences.pop_back(); in CreateFromNativeHandle()
437 if (fences.size() == 1) { in CreateFromNativeHandle()
439 finalFence = fences.back(); in CreateFromNativeHandle()
441 p = std::make_shared<SyncFenceImpl>(fences, finalFence); in CreateFromNativeHandle()
444 p = std::make_shared<SyncFenceImpl>(fences, fences.back()); in CreateFromNativeHandle()
498 std::vector<sp<Fence>> fences; in CreateUnorderedMultiSyncFence() local
515 fences.push_back(fence); in CreateUnorderedMultiSyncFence()
542 if (fences.size() == 0) { in CreateUnorderedMultiSyncFence()
549 if (fences.size() == 1) { in CreateUnorderedMultiSyncFence()
555 if (finalFence == fences[0]) { in CreateUnorderedMultiSyncFence()
556 finalFence = fences.back(); in CreateUnorderedMultiSyncFence()
559 p = std::make_shared<_C2FenceFactory::SyncFenceImpl>(fences, finalFence); in CreateUnorderedMultiSyncFence()
580 std::vector<sp<Fence>> fences; in CreateMultiSyncFence() local
596 fences.push_back(fence); in CreateMultiSyncFence()
600 if (fences.size() == 0) { in CreateMultiSyncFence()
607 if (fences.size() == 1) { in CreateMultiSyncFence()
609 p = std::make_shared<_C2FenceFactory::SyncFenceImpl>(fences[0]); in CreateMultiSyncFence()
611 p = std::make_shared<_C2FenceFactory::SyncFenceImpl>(fences, fences.back()); in CreateMultiSyncFence()