Home | History | Annotate | Download | only in ui

Lines Matching refs:Fence

31 // Fence
34 class Fence
35 : public LightRefBase<Fence>, public Flattenable<Fence>
38 static const sp<Fence> NO_FENCE;
46 // should wait indefinitely for the fence to signal.
49 // Construct a new Fence object with an invalid file descriptor. This
50 // should be done when the Fence object will be set up by unflattening
52 Fence();
54 // Construct a new Fence object to manage a given fence file descriptor.
55 // When the new Fence object is destructed the file descriptor will be
57 explicit Fence(int fenceFd);
60 Fence(const Fence& rhs) = delete;
61 Fence& operator=(const Fence& rhs) = delete;
62 Fence(Fence&& rhs) = delete;
63 Fence& operator=(Fence&& rhs) = delete;
65 // Check whether the Fence has an open fence file descriptor. Most Fence
66 // methods treat an invalid file descriptor just like a valid fence that
70 // wait waits for up to timeout milliseconds for the fence to signal. If
71 // the fence signals then NO_ERROR is returned. If the timeout expires
72 // before the fence signals then -ETIME is returned. A timeout of
74 // indefinitely for the fence to signal.
77 // waitForever is a convenience function for waiting forever for a fence to
79 // system log and fence state to the kernel log if the wait lasts longer
85 // merge combines two Fence objects, creating a new Fence object that
88 // human-readable name to associated with the new Fence object.
89 static sp<Fence> merge(const char* name, const sp<Fence>& f1,
90 const sp<Fence>& f2);
92 static sp<Fence> merge(const String8& name, const sp<Fence>& f1,
93 const sp<Fence>& f2);
95 // Return a duplicate of the fence file descriptor. The caller is
101 // fence transitioned to the signaled state. If the fence is not signaled
102 // then SIGNAL_TIME_PENDING is returned. If the fence is invalid or if an
107 Invalid, // Fence is invalid
108 Unsignaled, // Fence is valid but has not yet signaled
109 Signaled, // Fence is valid and has signaled
112 // getStatus() returns whether the fence has signaled yet. Prefer this to
113 // getSignalTime() or wait() if all you care about is whether the fence has
119 // way to check whether a fence has signaled.
138 friend class LightRefBase<Fence>;
139 ~Fence();