Lines Matching refs:fenceFd

112     int fenceFd = -1;  in reserveNext()  local
114 int result = callProtected(mSurface, dequeueBuffer, &buffer, &fenceFd); in reserveNext()
120 mReservedFenceFd.reset(fenceFd); in reserveNext()
145 int ReliableSurface::cancelBuffer(ANativeWindowBuffer* buffer, int fenceFd) { in cancelBuffer() argument
148 if (fenceFd > 0) { in cancelBuffer()
149 close(fenceFd); in cancelBuffer()
153 int result = callProtected(mSurface, cancelBuffer, buffer, fenceFd); in cancelBuffer()
157 int ReliableSurface::dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd) { in dequeueBuffer() argument
162 *fenceFd = mReservedFenceFd.release(); in dequeueBuffer()
168 int result = callProtected(mSurface, dequeueBuffer, buffer, fenceFd); in dequeueBuffer()
172 *fenceFd = -1; in dequeueBuffer()
181 int ReliableSurface::queueBuffer(ANativeWindowBuffer* buffer, int fenceFd) { in queueBuffer() argument
185 if (fenceFd > 0) { in queueBuffer()
186 close(fenceFd); in queueBuffer()
191 int result = callProtected(mSurface, queueBuffer, buffer, fenceFd); in queueBuffer()
240 int* fenceFd) { in hook_dequeueBuffer() argument
241 return getSelf(window)->dequeueBuffer(buffer, fenceFd); in hook_dequeueBuffer()
245 int fenceFd) { in hook_cancelBuffer() argument
246 return getSelf(window)->cancelBuffer(buffer, fenceFd); in hook_cancelBuffer()
250 int fenceFd) { in hook_queueBuffer() argument
251 return getSelf(window)->queueBuffer(buffer, fenceFd); in hook_queueBuffer()
257 int fenceFd = -1; in hook_dequeueBuffer_DEPRECATED() local
258 int result = window->dequeueBuffer(window, &buf, &fenceFd); in hook_dequeueBuffer_DEPRECATED()
262 sp<Fence> fence(new Fence(fenceFd)); in hook_dequeueBuffer_DEPRECATED()