Lines Matching refs:Fence

43 BufferSyncHandler* Fence::g_buffer_sync_handler_ = nullptr;
44 std::vector<std::weak_ptr<Fence>> Fence::wps_;
46 Fence::Fence(int fd, const string &name) : fd_(fd), name_(name) { in Fence() function in sdm::Fence
49 Fence::~Fence() { in ~Fence()
60 void Fence::Set(BufferSyncHandler *buffer_sync_handler) { in Set()
64 shared_ptr<Fence> Fence::Create(int fd, const string &name) { in Create()
70 shared_ptr<Fence> fence(new Fence(fd, name)); in Create()
80 int Fence::Dup(const shared_ptr<Fence> &fence) { in Dup()
84 int Fence::Get(const shared_ptr<Fence> &fence) { in Get()
88 shared_ptr<Fence> Fence::Merge(const shared_ptr<Fence> &fence1, const shared_ptr<Fence> &fence2) { in Merge()
102 shared_ptr<Fence> Fence::Merge(const std::vector<shared_ptr<Fence>> &fences, bool ignore_signaled) { in Merge()
105 shared_ptr<Fence> merged_fence = nullptr; in Merge()
107 if (ignore_signaled && (Fence::Wait(fence, 0) == kErrorNone)) { in Merge()
111 merged_fence = Fence::Merge(fence, merged_fence); in Merge()
117 DisplayError Fence::Wait(const shared_ptr<Fence> &fence) { in Wait()
120 return g_buffer_sync_handler_->SyncWait(Fence::Get(fence), 1000); in Wait()
123 DisplayError Fence::Wait(const shared_ptr<Fence> &fence, int timeout) { in Wait()
126 return g_buffer_sync_handler_->SyncWait(Fence::Get(fence), timeout); in Wait()
129 Fence::Status Fence::GetStatus(const shared_ptr<Fence> &fence) { in GetStatus()
133 return Fence::Status::kSignaled; in GetStatus()
137 return (g_buffer_sync_handler_->SyncWait(Fence::Get(fence), 0) == kErrorTimeOut ? in GetStatus()
138 Fence::Status::kPending : Fence::Status::kSignaled); in GetStatus()
141 string Fence::GetStr(const shared_ptr<Fence> &fence) { in GetStr()
142 return std::to_string(Fence::Get(fence)); in GetStr()
145 void Fence::Dump(std::ostringstream *os) { in Dump()
166 Fence::ScopedRef::~ScopedRef() { in ~ScopedRef()
172 int Fence::ScopedRef::Get(const shared_ptr<Fence> &fence) { in Get()
173 int dup_fd = Fence::Dup(fence); in Get()