Home
last modified time | relevance | path

Searched refs:fence_ (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
Dparcelable_unique_fd.cpp11 : fence_(dup(fence.get())) {} in ParcelableUniqueFd()
16 status_t ret = parcel->writeBool(fence_.get() >= 0); in writeToParcel()
19 if (fence_.get() >= 0) in writeToParcel()
20 ret = parcel->writeUniqueFileDescriptor(fence_); in writeToParcel()
31 ret = parcel->readUniqueFileDescriptor(&fence_); in readFromParcel()
Dparcelable_unique_fd.h20 fence_.reset(dup(fence.get())); in set_fence()
22 base::unique_fd fence() const { return base::unique_fd(dup(fence_.get())); } in fence()
28 base::unique_fd fence_;
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dbufferhub_rpc.h160 explicit FenceHandle(int fence) : fence_{fence} {} in FenceHandle()
161 explicit FenceHandle(FileHandleType&& fence) : fence_{std::move(fence)} {} in FenceHandle()
165 explicit operator bool() const { return fence_.IsValid(); }
167 const FileHandleType& get() const { fence_; } in get()
168 FileHandleType&& take() { return std::move(fence_); } in take()
170 int get_fd() const { return fence_.Get(); } in get_fd()
171 void close() { fence_.Close(); } in close()
174 return FenceHandle<pdx::BorrowedHandle>(fence_.Borrow()); in borrow()
178 FileHandleType fence_;
180 PDX_SERIALIZABLE_MEMBERS(FenceHandle<FileHandleType>, fence_);
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.cpp98 fence_ = new Fence(fence.release()); in SetClientTarget()
192 .fence = fence_.get() ? fence_ : new Fence(-1), in GetFrame()
Dvr_hwc.h171 sp<Fence> fence_; variable