Home
last modified time | relevance | path

Searched refs:mFence (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/native/libs/ui/
DFenceTime.cpp39 mFence(fence), in FenceTime()
47 mFence(std::move(fence)), in FenceTime()
54 mFence(nullptr), in FenceTime()
89 mFence.clear(); in applyTrustedSnapshot()
116 if (!mFence.get()) { in wait()
121 fence = mFence; in wait()
144 if (!mFence.get()) { in getSignalTime()
149 fence = mFence; in getSignalTime()
167 mFence.clear(); in getSignalTime()
193 return Snapshot(mFence); in getSnapshot()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
DTexturePool.h45 : mTexturePool(texturePool), mTexture(texture), mFence(fence) {} in AutoTexture()
47 ~AutoTexture() { mTexturePool.returnTexture(std::move(mTexture), mFence); } in ~AutoTexture()
49 sp<Fence> getReadyFence() { return mFence; } in getReadyFence()
51 void setReadyFence(const sp<Fence>& fence) { mFence = fence; } in setReadyFence()
63 sp<Fence> mFence; variable
/frameworks/native/libs/gui/
DConsumerBase.cpp100 mSlots[slotIndex].mFence = Fence::NO_FENCE; in freeBufferLocked()
405 mSlots[item->mSlot].mFence = item->mFence; in acquireBufferLocked()
429 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
430 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
437 auto currentStatus = mSlots[slot].mFence->getStatus(); in addReleaseFenceLocked()
446 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
456 fenceName, mSlots[slot].mFence, fence); in addReleaseFenceLocked()
461 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
464 mSlots[slot].mFence = mergedFence; in addReleaseFenceLocked()
473 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
[all …]
DBufferItem.cpp43 mFence(nullptr), in BufferItem()
98 if (mFence != nullptr) { in getFlattenedSize()
99 size += mFence->getFlattenedSize(); in getFlattenedSize()
113 if (mFence != nullptr) { in getFdCount()
114 count += mFence->getFdCount(); in getFdCount()
146 if (mFence != nullptr) { in flatten()
147 status_t err = mFence->flatten(buffer, size, fds, count); in flatten()
211 mFence = new Fence(); in unflatten()
212 status_t err = mFence->unflatten(buffer, size, fds, count); in unflatten()
216 mFenceTime = std::make_shared<FenceTime>(mFence); in unflatten()
DCpuConsumer.cpp97 int fenceFd = item.mFence.get() ? item.mFence->dup() : -1; in lockBufferItem()
121 int fenceFd = item.mFence.get() ? item.mFence->dup() : -1; in lockBufferItem()
DBufferQueueProducer.cpp501 mSlots[found].mFence = Fence::NO_FENCE; in dequeueBuffer()
515 if (CC_UNLIKELY(mSlots[found].mFence == nullptr)) { in dequeueBuffer()
527 Fence::NO_FENCE : mSlots[found].mFence; in dequeueBuffer()
529 mSlots[found].mFence = Fence::NO_FENCE; in dequeueBuffer()
725 *outFence = mSlots[found].mFence; in detachNextBuffer()
797 mSlots[*outSlot].mFence = Fence::NO_FENCE; in attachBuffer()
907 mSlots[slot].mFence = acquireFence; in queueBuffer()
930 item.mFence = acquireFence; in queueBuffer()
1131 mSlots[slot].mFence = fence; in cancelBuffer()
1493 mSlots[*slot].mFence = Fence::NO_FENCE; in allocateBuffers()
DBufferItemConsumer.cpp75 err = item->mFence->waitForever("BufferItemConsumer::acquireBuffer"); in acquireBuffer()
DBufferQueueConsumer.cpp241 outBuffer->mFence = Fence::NO_FENCE; in acquireBuffer()
283 mSlots[slot].mFence = Fence::NO_FENCE; in acquireBuffer()
417 mSlots[*outSlot].mFence = Fence::NO_FENCE; in attachBuffer()
478 mSlots[slot].mFence = releaseFence; in releaseBuffer()
/frameworks/av/media/libstagefright/
DFrameRenderTracker.cpp84 renderInfo->mFence = new Fence(::dup(fenceFd)); in updateInfoForDequeuedBuffer()
122 } else if (it->mFence != NULL) { in checkFencesAndGetRenderedFrames()
124 nsecs_t signalTime = it->mFence->getSignalTime(); in checkFencesAndGetRenderedFrames()
131 it->mFence.clear(); in checkFencesAndGetRenderedFrames()
140 if (drop || (it->mFence == NULL && it == mRenderQueue.begin())) { in checkFencesAndGetRenderedFrames()
178 if (it->mFence == NULL) { in dumpRenderQueue()
185 it->mFence->isValid() ? "YES" : "NO"); in dumpRenderQueue()
DMediaSync.cpp353 returnBufferToInput_l(bufferItem->mGraphicBuffer, bufferItem->mFence); in flush()
563 bufferItem->mGraphicBuffer, bufferItem->mFence); in onDrainVideo_l()
648 returnBufferToInput_l(bufferItem.mGraphicBuffer, bufferItem.mFence); in onFrameAvailableFromInput()
667 bufferItem.mFence); in renderOneBufferItem_l()
681 returnBufferToInput_l(bufferItem.mGraphicBuffer, bufferItem.mFence); in renderOneBufferItem_l()
DFrameCaptureLayer.cpp95 layerSettings->source.buffer.fence = mBufferItem.mFence; in getLayerSettings()
255 EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, bi.mFence); in releaseBuffer()
/frameworks/av/media/codec2/vndk/
DC2Fence.cpp194 switch (mFence->wait((int)timeoutMs)) { in wait()
205 return mFence->getStatus() != Fence::Status::Invalid; in valid()
209 return mFence->getStatus() == Fence::Status::Signaled; in ready()
213 return mFence->dup(); in fd()
238 mFence(sp<Fence>::make(fenceFd)) {} in SyncFenceImpl()
255 const sp<Fence> mFence; member in _C2FenceFactory::SyncFenceImpl
/frameworks/av/media/libstagefright/include/media/stagefright/
DFrameRenderTracker.h66 mFence(fence) { in RenderedFrameInfo()
75 mFence(NULL) { in RenderedFrameInfo()
83 sp<Fence> mFence; member
/frameworks/native/libs/nativedisplay/surfacetexture/
DImageConsumer.cpp56 if (item.mFence->isValid()) { in dequeueBuffer()
62 *outQueueEmpty = item.mFence->getStatus() == Fence::Status::Unsignaled; in dequeueBuffer()
65 err = fenceWait(item.mFence->get(), fencePassThroughHandle); in dequeueBuffer()
119 st.mCurrentFence = item.mFence; in dequeueBuffer()
/frameworks/base/libs/hostgraphics/gui/
DBufferItem.h39 BufferItem() : mGraphicBuffer(nullptr), mFence(Fence::NO_FENCE) {} in BufferItem()
44 sp<Fence> mFence; variable
/frameworks/native/libs/gui/include/gui/
DBufferSlot.h183 mFence(Fence::NO_FENCE), in BufferSlot()
224 sp<Fence> mFence; member
DBufferItem.h60 sp<Fence> mFence; variable
DConsumerBase.h234 sp<Fence> mFence; member
/frameworks/native/services/surfaceflinger/tests/
DBufferGenerator.cpp54 mCallback(item.mGraphicBuffer, item.mFence->dup()); in onFrameAvailable()
367 *outFence = new Fence(mFence); in get()
369 close(mFence); in get()
372 mFence = -1; in get()
386 generator->mFence = fence; in setBuffer()
DBufferGenerator.h52 int32_t mFence = -1; variable
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp109 status_t err = pinnedBuffer->getBufferItem().mFence->waitForever( in pinSelectedBuffer()
233 item.mGraphicBuffer, item.mFence); in releaseOldestBufferLocked()
337 item.mGraphicBuffer, item.mFence); in unpinBuffer()
/frameworks/native/services/surfaceflinger/
DBufferQueueLayer.cpp303 mConsumer->getCurrentBuffer(&mBufferInfo.mBufferSlot, &mBufferInfo.mFence); in updateActiveBuffer()
352 std::make_shared<FenceTime>(item.mFence), in onFrameAvailable()
429 std::make_shared<FenceTime>(item.mFence), in onFrameReplaced()
499 mBufferInfo.mFence = mConsumer->getCurrentFence(); in gatherBufferInfo()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp135 mCurrentFence = item.mFence; in nextBuffer()
137 outFence = item.mFence; in nextBuffer()
/frameworks/av/media/libstagefright/filters/
DGraphicBufferListener.cpp114 err = item.mFence->waitForever("GraphicBufferListener::getBufferItem"); in getBufferItem()
/frameworks/native/libs/ui/include/ui/
DFenceTime.h141 sp<Fence> mFence{Fence::NO_FENCE};

12