/frameworks/rs/rsov/driver/ |
H A D | rsovScript.cpp | 546 VkFence fence; local 554 vkCreateFence(mDevice, &fenceInfo, NULL, &fence); 556 vkQueueSubmit(mRSoV->getQueue(), 1, &submit_info, fence); 560 res = vkWaitForFences(mDevice, 1, &fence, VK_TRUE, 100000); 565 vkDestroyFence(mDevice, fence, NULL);
|
/frameworks/native/include/gui/ |
H A D | BufferQueueConsumer.h | 61 // being accessed. The fence will signal when the buffer is no longer 73 EGLSyncKHR fence); 161 EGLDisplay display, EGLSyncKHR fence, 163 return releaseBuffer(buf, frameNumber, releaseFence, display, fence); 160 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
|
H A D | GLConsumer.h | 108 // setReleaseFence stores a fence that will signal when the current buffer 109 // is no longer being read. This fence will be returned to the producer 112 // union fence. 113 virtual void setReleaseFence(const sp<Fence>& fence); 192 // getCurrentFence returns the fence indicating when the current buffer is 274 graphicBuffer(), display(nullptr), fence(nullptr) {} 280 EGLSyncKHR fence; member in struct:android::GLConsumer::PendingRelease 378 // current slot's fence to guard against a producer accessing the buffer 408 // mCurrentFence is the fence received from BufferQueue in updateTexImage.
|
H A D | IGraphicBufferProducer.h | 153 // The fence parameter will be updated to hold the fence associated with 155 // fence signals. If the fence is Fence::NO_FENCE, the buffer may be written 197 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, 229 // equivalent to fence from the dequeueBuffer call. 292 // * fence was NULL 311 // fence - a fence that the consumer must wait on before reading the buffer, 323 transform(_transform), stickyTransform(_sticky), fence(_fenc 365 sp<Fence> fence; member in struct:android::IGraphicBufferProducer::QueueBufferInput [all...] |
/frameworks/native/libs/gui/ |
H A D | BufferQueueProducer.cpp | 479 BQ_LOGE("dequeueBuffer: about to return a NULL fence - " 486 // Don't return a fence in shared buffer mode, except for the first 551 BQ_LOGE("dequeueBuffer: error %#x waiting for fence", 554 BQ_LOGE("dequeueBuffer: timeout waiting for fence"); 770 BQ_LOGE("queueBuffer: fence is NULL"); 1012 status_t BufferQueueProducer::cancelBuffer(int slot, const sp<Fence>& fence) { argument 1040 } else if (fence == NULL) { 1041 BQ_LOGE("cancelBuffer: fence is NULL"); 1059 mSlots[slot].mFence = fence;
|
H A D | ConsumerBase.cpp | 318 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { 320 return addReleaseFenceLocked(slot, graphicBuffer, fence); 324 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { 328 // drop this fence, as it will never be received by the producer. 334 mSlots[slot].mFence = fence; 341 CB_LOGE("fence has invalid state"); 346 mSlots[slot].mFence = fence; 351 fenceName, mSlots[slot].mFence, fence); 355 // signal in order so the new fence will act like a union 356 mSlots[slot].mFence = fence; 317 addReleaseFence(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument 323 addReleaseFenceLocked(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument [all...] |
H A D | GLConsumer.cpp | 305 // if we're detached, we just use the fence that was created in detachFromContext() 481 pendingRelease->fence = mEglSlots[mCurrentTexture].mEglFence; 585 void GLConsumer::setReleaseFence(const sp<Fence>& fence) { argument 586 if (fence->isValid() && 589 mCurrentTextureImage->graphicBuffer(), fence); 591 GLC_LOGE("setReleaseFence: failed to add the fence: %s (%d)", 703 GLC_LOGE("syncForReleaseLocked: error creating EGL fence: %#x", 711 GLC_LOGE("syncForReleaseLocked: error dup'ing native fence " 715 sp<Fence> fence(new Fence(fenceFd)); 717 mCurrentTextureImage->graphicBuffer(), fence); 724 EGLSyncKHR fence = mEglSlots[mCurrentTexture].mEglFence; local [all...] |
H A D | IGraphicBufferProducer.cpp | 127 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, uint32_t width, argument 146 *fence = new Fence(); 147 result = reply.read(**fence); 149 fence->clear(); 259 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { argument 263 data.write(*fence.get()); 447 sp<Fence> fence(new Fence); 448 result = reply.read(*fence); 450 ALOGE("getLastQueuedBuffer failed to read fence: %d", result); 454 *outFence = fence; 661 sp<Fence> fence = Fence::NO_FENCE; local 684 sp<Fence> fence; local 726 sp<Fence> fence = new Fence(); local [all...] |
H A D | StreamSplitter.cpp | 193 sp<Fence> fence; local 194 status_t status = from->detachNextBuffer(&buffer, &fence); 210 // Merge the release fence of the incoming buffer so that the fence we send 212 tracker->mergeFence(fence);
|
H A D | Surface.cpp | 404 sp<Fence> fence(new Fence(fenceFd)); 405 int waitResult = fence->waitForever("dequeueBuffer_DEPRECATED"); 503 sp<Fence> fence; local 507 status_t result = mGraphicBufferProducer->dequeueBuffer(&buf, &fence, 533 ALOGE_IF(fence == NULL, "Surface::dequeueBuffer: received null Fence! buf=%d", buf); 550 mGraphicBufferProducer->cancelBuffer(buf, fence); 555 if (fence->isValid()) { 556 *fenceFd = fence->dup(); 558 ALOGE("dequeueBuffer: error duping fence: %d", errno); 598 sp<Fence> fence(fenceF [all...] |
/frameworks/native/libs/gui/bufferqueue/1.0/ |
H A D | H2BGraphicBufferProducer.cpp | 189 * \brief Return the size of the non-fd buffer required to flatten a fence. 191 * \param[in] fence The input fence of type `hidl_handle`. 198 inline size_t getFenceFlattenedSize(hidl_handle const& /* fence */) { 203 * \brief Return the number of file descriptors contained in a fence. 205 * \param[in] fence The input fence of type `hidl_handle`. 206 * \return `0` if \p fence does not contain a valid file descriptor, or `1` 209 inline size_t getFenceFdCount(hidl_handle const& fence) { argument 210 return native_handle_read_fd(fence) 228 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument 271 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument 991 dequeueBuffer( int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, ::android::PixelFormat format, uint32_t usage, FrameEventHistoryDelta* outTimestamps) argument 1090 cancelBuffer(int slot, const sp<Fence>& fence) argument [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | BufferQueue_test.cpp | 80 sp<Fence> fence; local 83 &scalingMode, &transform, &fence, NULL); 90 ASSERT_EQ(fence, item.mFence); 142 sp<Fence> fence; local 145 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 180 sp<Fence> fence; local 189 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, 197 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, 231 sp<Fence> fence; local 240 mProducer->dequeueBuffer(&slot, &fence, 268 sp<Fence> fence; local 333 sp<Fence> fence; local 382 sp<Fence> fence; local 441 sp<Fence> fence; local 489 sp<Fence> fence; local 523 sp<Fence> fence; local 565 sp<Fence> fence; local 617 sp<Fence> fence; local 684 sp<Fence> fence; local 739 sp<Fence> fence = Fence::NO_FENCE; local 767 sp<Fence> fence = Fence::NO_FENCE; local 778 sp<Fence> fence = Fence::NO_FENCE; local 823 sp<Fence> fence; local 876 sp<Fence> fence = Fence::NO_FENCE; local 1015 sp<Fence> fence = Fence::NO_FENCE; local 1093 sp<Fence> fence = Fence::NO_FENCE; local 1134 sp<Fence> fence = Fence::NO_FENCE; local [all...] |
H A D | IGraphicBufferProducer_test.cpp | 129 fence = QUEUE_BUFFER_INPUT_FENCE; 140 fence); 173 QueueBufferInputBuilder& setFence(sp<Fence> fence) { argument 174 this->fence = fence; 185 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::QueueBufferInputBuilder 191 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::DequeueBufferResult 195 return mProducer->dequeueBuffer(&result->slot, &result->fence, w, h, format, usage, nullptr); 198 void setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, argument 202 ASSERT_TRUE(fence ! 629 sp<Fence> fence; local 637 sp<Fence> fence; local 648 sp<Fence> fence; local 669 sp<Fence> fence; local 682 sp<Fence> fence; local 699 sp<Fence> fence; local 712 sp<Fence> fence; local [all...] |
H A D | StreamSplitter_test.cpp | 80 sp<Fence> fence; local 83 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 117 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 152 sp<Fence> fence; local 155 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 192 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 216 sp<Fence> fence; local 219 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 232 ASSERT_EQ(NO_INIT, inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0,
|
H A D | Surface_test.cpp | 234 sp<Fence> fence; local 235 ASSERT_EQ(NO_ERROR, surface->detachNextBuffer(&graphicBuffer, &fence)); 314 int fence; local 316 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fence)); 318 ASSERT_EQ(NO_ERROR, window->queueBuffer(window.get(), buffer, fence)); 320 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fence)); 321 ASSERT_EQ(NO_ERROR, window->queueBuffer(window.get(), buffer, fence)); 559 // Verify the acquire fence being added isn't the one from the consumer. 561 // Override the fence, so we can verify this was called by the 575 std::shared_ptr<FenceTime> createFenceTime(const sp<Fence>& fence) 763 int fence = -1; local 878 int fence; local 939 int fence; local [all...] |
/frameworks/native/libs/nativewindow/ |
H A D | AHardwareBuffer.cpp | 112 int32_t fence, const ARect* rect, void** outVirtualAddress) { 130 return gBuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence); 133 int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence) { argument 137 if (fence == nullptr) 140 return gBuffer->unlockAsync(fence); 111 AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, int32_t fence, const ARect* rect, void** outVirtualAddress) argument
|
/frameworks/native/libs/ui/ |
H A D | FenceTime.cpp | 48 FenceTime::FenceTime(const sp<Fence>& fence) argument 49 : mState(((fence.get() != nullptr) && fence->isValid()) ? 51 mFence(fence), 56 FenceTime::FenceTime(sp<Fence>&& fence) argument 57 : mState(((fence.get() != nullptr) && fence->isValid()) ? 59 mFence(std::move(fence)), 79 ALOGE("applyTrustedSnapshot: Unexpected fence."); 108 // underlying fence i 123 sp<Fence> fence; local 182 FenceTime(const sp<Fence>& fence, bool forceValidForTest) argument 274 push(const std::shared_ptr<FenceTime>& fence) argument 296 std::shared_ptr<FenceTime> fence = mQueue.front().lock(); local 317 createFenceTimeForTest( const sp<Fence>& fence) argument 327 signalAllForTest( const sp<Fence>& fence, nsecs_t signalTime) argument [all...] |
/frameworks/native/libs/vr/libbufferhub/ |
H A D | buffer_hub_client.cpp | 141 LocalFence fence; local 143 std::make_pair(std::ref(fence), WrapBuffer(meta, meta_size_bytes)); 147 *ready_fence = fence.take();
|
H A D | bufferhub_tests.cpp | 47 LocalHandle fence; local 48 EXPECT_LE(0, c->Acquire(&fence, &context)); 52 EXPECT_LE(0, c2->Acquire(&fence, &context)); 61 EXPECT_EQ(0, p->Gain(&fence)); 81 LocalHandle fence; local 83 EXPECT_EQ(0, c->Acquire(&fence, &m2)); 123 LocalHandle fence; local 125 EXPECT_NE(0, c->Acquire(&fence, &sequence)); 139 LocalHandle fence; local 140 EXPECT_EQ(0, c->Acquire(&fence)); 151 LocalHandle fence; local 185 LocalHandle fence; local 215 LocalHandle fence; local [all...] |
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/ |
H A D | bufferhub_rpc.h | 103 explicit FenceHandle(int fence) : fence_{fence} {} argument 104 explicit FenceHandle(FileHandleType&& fence) : fence_{std::move(fence)} {} argument
|
H A D | native_buffer.h | 41 int fence() const { return fence_.Get(); } function in class:android::dvr::NativeBuffer 43 void SetFence(int fence) { fence_.Reset(fence); } argument 92 // Return the release fence, passing ownership to the caller. 101 // Gain the buffer producer, closing the previous release fence if valid. 104 // Asynchronously gain the buffer, closing the previous release fence. 147 // Return the acquire fence, passing ownership to the caller. 150 // Acquire the underlying buffer consumer, closing the previous acquire fence
|
/frameworks/native/libs/vr/libbufferhubqueue/ |
H A D | buffer_hub_queue_client.cpp | 327 int timeout, size_t* slot, void* meta, LocalHandle* fence) { 336 *fence = std::move(fences_[buffer_info.slot]); 326 Dequeue( int timeout, size_t* slot, void* meta, LocalHandle* fence) argument
|
H A D | buffer_hub_queue_producer.cpp | 159 LocalHandle fence; local 160 auto buffer_status = queue_->Dequeue(dequeue_timeout_ms_, &slot, &fence); 213 // TODO(jwcai) Handle fence properly. |BufferHub| has full fence support, we 214 // just need to exopose that through |BufferHubQueue| once we need fence. 262 sp<Fence> fence; local 265 &scaling_mode, &transform, &fence); 279 // Check input fence is valid. 280 if (fence == nullptr) { 281 ALOGE("queueBuffer: fence i 356 cancelBuffer(int slot, const sp<Fence>& fence) argument [all...] |
/frameworks/native/libs/vr/libbufferhubqueue/tests/ |
H A D | buffer_hub_queue-test.cpp | 79 LocalHandle fence; local 80 auto p1_status = producer_queue_->Dequeue(0, &slot, &fence); 87 auto c1_status = consumer_queue_->Dequeue(100, &slot, &mo, &fence); 116 LocalHandle fence; local 117 auto status = consumer_queue_->Dequeue(0, &slot, &seq, &fence); 124 LocalHandle fence; local 126 auto consumer_status = consumer_queue_->Dequeue(0, &slot, &seq, &fence); 132 auto producer_status = producer_queue_->Dequeue(0, &slot, &fence); 142 consumer_status = consumer_queue_->Dequeue(0, &slot, &seq_out, &fence); 169 LocalHandle fence; local 237 LocalHandle fence; local 260 LocalHandle fence; local 278 LocalHandle fence; local 295 LocalHandle fence; local 355 LocalHandle fence; local 373 LocalHandle fence; local [all...] |
H A D | buffer_hub_queue_producer-test.cpp | 70 QueueBufferInputBuilder& setFence(sp<Fence> fence) { argument 71 this->mFence = fence; 112 sp<Fence> fence; local 113 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(outSlot, &fence)); 302 // Test when fence was NULL 363 sp<Fence> fence; local 366 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot, &fence)); 369 EXPECT_EQ(NO_ERROR, mProducer->cancelBuffer(slot, fence)); 405 sp<Fence> fence; local 407 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot, &fence)); 440 sp<Fence> fence; local 457 sp<Fence> fence; local [all...] |