Home
last modified time | relevance | path

Searched refs:Fence (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/native/include/ui/
DFence.h38 class Fence
39 : public LightRefBase<Fence>, public Flattenable<Fence>
42 static const sp<Fence> NO_FENCE;
51 Fence();
56 Fence(int fenceFd);
82 static sp<Fence> merge(const String8& name, const sp<Fence>& f1,
83 const sp<Fence>& f2);
104 friend class LightRefBase<Fence>;
105 ~Fence();
108 Fence(const Fence& rhs);
[all …]
/frameworks/native/libs/ui/
DFence.cpp32 const sp<Fence> Fence::NO_FENCE = sp<Fence>(new Fence);
34 Fence::Fence() : in Fence() function in android::Fence
38 Fence::Fence(int fenceFd) : in Fence() function in android::Fence
42 Fence::~Fence() { in ~Fence()
48 status_t Fence::wait(unsigned int timeout) { in wait()
57 status_t Fence::waitForever(const char* logname) { in waitForever()
72 sp<Fence> Fence::merge(const String8& name, const sp<Fence>& f1, in merge()
73 const sp<Fence>& f2) { in merge()
95 return sp<Fence>(new Fence(result)); in merge()
98 int Fence::dup() const { in dup()
[all …]
DFramebufferNativeWindow.cpp225 sp<Fence> fence(new Fence(fenceFd)); in dequeueBuffer_DEPRECATED()
226 int waitResult = fence->wait(Fence::TIMEOUT_NEVER); in dequeueBuffer_DEPRECATED()
282 sp<Fence> fence(new Fence(fenceFd)); in queueBuffer()
283 fence->wait(Fence::TIMEOUT_NEVER); in queueBuffer()
/frameworks/base/libs/hwui/
DFence.h31 class Fence {
43 Fence() { in Fence() function
56 ~Fence() { in ~Fence()
97 AutoFence(EGLTimeKHR timeout = Fence::kDefaultTimeout): mTimeout(timeout) { in mTimeout()
106 Fence mFence;
/frameworks/av/services/camera/libcameraservice/device3/
DStatusTracker.h33 class Fence; variable
66 void markComponentIdle(int id, const sp<Fence>& componentFence);
83 const sp<Fence>& componentFence);
93 sp<Fence> fence;
109 sp<Fence> mIdleFence;
DStatusTracker.cpp36 mIdleFence(new Fence()), in StatusTracker()
83 void StatusTracker::markComponentIdle(int id, const sp<Fence>& componentFence) { in markComponentIdle()
88 markComponent(id, ACTIVE, Fence::NO_FENCE); in markComponentActive()
92 const sp<Fence>& componentFence) { in markComponent()
182 mIdleFence = Fence::merge(String8("idleFence"), in threadLoop()
/frameworks/native/services/surfaceflinger/
DFrameTracker.h29 class Fence; variable
63 void setFrameReadyFence(const sp<Fence>& readyFence);
71 void setActualPresentFence(const sp<Fence>& fence);
103 sp<Fence> frameReadyFence;
104 sp<Fence> actualPresentFence;
DDispSync.h41 class Fence; variable
82 bool addPresentFence(const sp<Fence>& fence);
167 sp<Fence> mPresentFences[NUM_PRESENT_SAMPLES];
DMonitoredProducer.h39 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, bool async,
43 sp<Fence>* outFence);
48 virtual void cancelBuffer(int slot, const sp<Fence>& fence);
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h48 class Fence; variable
122 sp<Fence> getAndResetReleaseFence(int32_t id);
132 int fbPost(int32_t id, const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf);
138 status_t setOutputBuffer(int32_t id, const sp<Fence>& acquireFence,
145 sp<Fence> getLastRetireFence(int32_t id) const;
162 virtual sp<Fence> getAndResetReleaseFence() = 0;
264 sp<Fence> getDisplayFence(int disp) const;
324 const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf);
339 sp<Fence> lastRetireFence; // signals when the last set op retires
340 sp<Fence> lastDisplayFence; // signals when the last set op takes
[all …]
DVirtualDisplaySurface.h102 virtual status_t dequeueBuffer(int* pslot, sp<Fence>* fence, bool async,
106 sp<Fence>* outFence);
110 virtual void cancelBuffer(int pslot, const sp<Fence>& fence);
124 int* sslot, sp<Fence>* fence);
186 sp<Fence> mFbFence;
190 sp<Fence> mOutputFence;
DHWComposer.cpp459 sp<Fence> HWComposer::getDisplayFence(int disp) const { in getDisplayFence()
609 const sp<Fence>& acquireFence, const sp<GraphicBuffer>& buf) { in setFramebufferTarget()
723 sp<Fence> HWComposer::getAndResetReleaseFence(int32_t id) { in getAndResetReleaseFence()
725 return Fence::NO_FENCE; in getAndResetReleaseFence()
736 return fd >= 0 ? new Fence(fd) : Fence::NO_FENCE; in getAndResetReleaseFence()
764 disp.lastRetireFence = Fence::NO_FENCE; in commit()
767 disp.lastRetireFence = new Fence(disp.list->retireFenceFd); in commit()
813 dd.lastRetireFence = Fence::NO_FENCE; in disconnectDisplay()
814 dd.lastDisplayFence = Fence::NO_FENCE; in disconnectDisplay()
815 dd.outbufAcquireFence = Fence::NO_FENCE; in disconnectDisplay()
[all …]
DVirtualDisplaySurface.cpp217 sp<Fence> fbFence = mHwc.getAndResetReleaseFence(mDisplayId); in onFrameCommitted()
231 sp<Fence> outFence = mHwc.getLastRetireFence(mDisplayId); in onFrameCommitted()
287 uint32_t format, uint32_t usage, int* sslot, sp<Fence>* fence) { in dequeueBuffer()
331 status_t VirtualDisplaySurface::dequeueBuffer(int* pslot, sp<Fence>* fence, bool async, in dequeueBuffer()
403 sp<GraphicBuffer>* /* outBuffer */, sp<Fence>* /* outFence */) { in detachNextBuffer() argument
471 void VirtualDisplaySurface::cancelBuffer(int pslot, const sp<Fence>& fence) { in cancelBuffer()
534 mFbFence = Fence::NO_FENCE; in resetPerFrameState()
535 mOutputFence = Fence::NO_FENCE; in resetPerFrameState()
558 result = mHwc.setOutputBuffer(mDisplayId, Fence::NO_FENCE, in refreshOutputBuffer()
/frameworks/native/include/gui/
DIGraphicBufferProducer.h169 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, bool async,
207 sp<Fence>* outFence) = 0;
280 const sp<Fence>& fence, uint32_t sticky = 0)
286 bool* outAsync, sp<Fence>* outFence,
314 sp<Fence> fence;
359 virtual void cancelBuffer(int slot, const sp<Fence>& fence) = 0;
DConsumerBase.h179 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
181 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
194 sp<Fence> mFence;
DBufferQueueProducer.h96 virtual status_t dequeueBuffer(int *outSlot, sp<Fence>* outFence, bool async,
104 sp<Fence>* outFence);
132 virtual void cancelBuffer(int slot, const sp<Fence>& fence);
DStreamSplitter.h134 const sp<Fence>& getMergedFence() const { return mMergedFence; } in getMergedFence()
136 void mergeFence(const sp<Fence>& with);
152 sp<Fence> mMergedFence;
DBufferSlot.h30 class Fence; variable
124 sp<Fence> mFence;
DBufferItemConsumer.h89 const sp<Fence>& releaseFence = Fence::NO_FENCE);
DIGraphicBufferConsumer.h36 class Fence; variable
65 sp<Fence> mFence;
202 const sp<Fence>& releaseFence) = 0;
DBufferItem.h32 class Fence; variable
57 sp<Fence> mFence;
/frameworks/native/libs/gui/tests/
DStreamSplitter_test.cpp100 sp<Fence> fence; in TEST_F()
115 Fence::NO_FENCE); in TEST_F()
128 EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, Fence::NO_FENCE)); in TEST_F()
166 sp<Fence> fence; in TEST_F()
181 Fence::NO_FENCE); in TEST_F()
196 Fence::NO_FENCE)); in TEST_F()
226 sp<Fence> fence; in TEST_F()
238 Fence::NO_FENCE); in TEST_F()
DBufferQueue_test.cpp114 sp<Fence> fence; in TEST_F()
128 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, false, Fence::NO_FENCE); in TEST_F()
151 sp<Fence> fence; in TEST_F()
154 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, false, Fence::NO_FENCE); in TEST_F()
222 sp<Fence> fence; in TEST_F()
248 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, false, Fence::NO_FENCE); in TEST_F()
270 sp<Fence> fence; in TEST_F()
277 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, false, Fence::NO_FENCE); in TEST_F()
305 EGL_NO_SYNC_KHR, Fence::NO_FENCE)); in TEST_F()
328 sp<Fence> fence; in TEST_F()
[all …]
DIGraphicBufferProducer_test.cpp64 const sp<Fence> QUEUE_BUFFER_INPUT_FENCE = Fence::NO_FENCE;
177 QueueBufferInputBuilder& setFence(sp<Fence> fence) { in setFence()
189 sp<Fence> fence;
195 sp<Fence> fence;
329 sp<Fence> dequeuedFence; in TEST_F()
395 sp<Fence> dequeuedFence; in TEST_F()
417 sp<Fence> nullFence = NULL; in TEST_F()
465 sp<Fence> dequeuedFence; in TEST_F()
518 sp<Fence> dequeuedFence; in TEST_F()
545 sp<Fence> dequeuedFence; in TEST_F()
/frameworks/native/libs/gui/
DConsumerBase.cpp97 mSlots[slotIndex].mFence = Fence::NO_FENCE; in freeBufferLocked()
203 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFence()
209 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFenceLocked()
221 sp<Fence> mergedFence = Fence::merge( in addReleaseFenceLocked()
255 mSlots[slot].mFence = Fence::NO_FENCE; in releaseBufferLocked()

123