Home
last modified time | relevance | path

Searched refs:fences (Results 1 – 19 of 19) sorted by relevance

/frameworks/av/media/codec2/vndk/
DC2Fence.cpp375 SyncFenceImpl(const std::vector<sp<Fence>>& fences, const sp<Fence> &finalFence) : in SyncFenceImpl() argument
376 mListFences(fences), in SyncFenceImpl()
404 std::vector<sp<Fence>> fences; in CreateFromNativeHandle() local
413 fences.push_back(fence); in CreateFromNativeHandle()
421 if (fences.size() == 0) { in CreateFromNativeHandle()
424 } else if (fences.size() == 1) { in CreateFromNativeHandle()
425 p = std::make_shared<SyncFenceImpl>(fences[0]); in CreateFromNativeHandle()
430 sp<Fence> finalFence = fences.back(); in CreateFromNativeHandle()
431 fences.pop_back(); in CreateFromNativeHandle()
437 if (fences.size() == 1) { in CreateFromNativeHandle()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/tests/
DPresentLatencyTrackerTest.cpp49 std::array<FenceToFenceTimeMap::FencePair, PresentLatencyTracker::kMaxPendingFrames> fences; in TEST() local
50 std::generate(fences.begin(), fences.end(), in TEST()
55 for (const auto& [fence, fenceTime] : fences) { in TEST()
60 constexpr size_t kPresentCount = fences.size() / 2; in TEST()
62 fences[i].second->signalForTest(kCompositeTime.ns() + static_cast<nsecs_t>(i)); in TEST()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncReactorTest.cpp161 std::array<std::shared_ptr<android::FenceTime>, kPendingLimit * 2> fences; in TEST_F() local
162 std::array<nsecs_t, fences.size()> fakeTimes; in TEST_F()
163 std::generate(fences.begin(), fences.end(), [] { return generatePendingFence(); }); in TEST_F()
169 for (auto const& fence : fences) { in TEST_F()
173 for (auto i = fences.size() - kPendingLimit; i < fences.size(); i++) { in TEST_F()
177 for (auto i = 0u; i < fences.size(); i++) { in TEST_F()
178 signalFenceWithTime(fences[i], fakeTimes[i]); in TEST_F()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplay.cpp374 auto fences = impl::Output::presentFrame(); in presentFrame() local
378 return fences; in presentFrame()
395 fences.presentFence = hwc.getPresentFence(*halDisplayIdOpt); in presentFrame()
404 fences.layerFences.emplace(hwcLayer, hwc.getLayerReleaseFence(*halDisplayIdOpt, hwcLayer)); in presentFrame()
409 return fences; in presentFrame()
/frameworks/native/libs/gui/
DFrameTimestamps.cpp610 auto fences = allFences(this); in getFlattenedSize() local
612 std::accumulate(fences.begin(), fences.end(), size_t(0), in getFlattenedSize()
619 auto fences = allFences(this); in getFdCount() local
620 return std::accumulate(fences.begin(), fences.end(), size_t(0), in getFdCount()
/frameworks/av/media/codec2/tests/aidl/
DGraphicsTracker_test.cpp575 sp<Fence> fences[maxNumAlloc]; in TEST_F() local
583 0, 0, 0, kTestUsageFlag, &bufs[i], &fences[i])); in TEST_F()
586 ASSERT_EQ(true, frameQueue.queueItem(bufs[i], fences[i])); in TEST_F()
591 0, 0, 0, kTestUsageFlag, &bufs[numAlloc], &fences[numAlloc]); in TEST_F()
631 ASSERT_EQ(true, frameQueue.queueItem(bufs[i], fences[i])); in TEST_F()
685 0, 0, 0, kTestUsageFlag, &bufs[0], &fences[0])); in TEST_F()
/frameworks/native/services/surfaceflinger/
Dsurfaceflinger_flags_new.aconfig16 description: "Moves logic for buffer release fences into LayerFE"
Dsurfaceflinger_flags.aconfig172 description: "Bug fix around screenshot fences"
DSurfaceFlinger.cpp8615 const auto& fences = compositionResult.releaseFences; in renderScreenImpl() local
8618 return fences.empty() ? Fence::NO_FENCE in renderScreenImpl()
8619 : fences.back().first.get(); in renderScreenImpl()
/frameworks/native/opengl/libs/GLES_CM/
Dglext_api.in388 void API_ENTRY(glDeleteFencesNV)(GLsizei n, const GLuint *fences) {
389 CALL_GL_API(glDeleteFencesNV, n, fences);
391 void API_ENTRY(glGenFencesNV)(GLsizei n, GLuint *fences) {
392 CALL_GL_API(glGenFencesNV, n, fences);
/frameworks/native/libs/gui/tests/
DSurface_test.cpp505 int fences[BUFFER_COUNT]; in TEST_F() local
509 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffers[i], &fences[i])); in TEST_F()
512 ASSERT_EQ(NO_ERROR, window->cancelBuffer(window.get(), buffers[i], fences[i])); in TEST_F()
528 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffers[0], &fences[0])); in TEST_F()
531 ASSERT_EQ(NO_ERROR, window->cancelBuffer(window.get(), buffers[0], fences[0])); in TEST_F()
542 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffers[i], &fences[i])); in TEST_F()
545 ASSERT_EQ(NO_ERROR, window->cancelBuffer(window.get(), buffers[i], fences[i])); in TEST_F()
/frameworks/native/opengl/include/GLES/
Dglext.h812 typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
813 typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
820 GL_API void GL_APIENTRY glDeleteFencesNV (GLsizei n, const GLuint *fences);
821 GL_API void GL_APIENTRY glGenFencesNV (GLsizei n, GLuint *fences);
/frameworks/native/services/surfaceflinger/DisplayHardware/
DAidlComposerHal.cpp655 std::vector<ReleaseFences::Layer> fences; in getReleaseFences() local
659 fences = reader->get().takeReleaseFences(translate<int64_t>(display)); in getReleaseFences()
665 outLayers->reserve(fences.size()); in getReleaseFences()
666 outReleaseFences->reserve(fences.size()); in getReleaseFences()
668 for (auto& fence : fences) { in getReleaseFences()
/frameworks/native/opengl/libs/
Dentries_gles1.in48 GL_ENTRY(void, glDeleteFencesNV, GLsizei n, const GLuint *fences)
113 GL_ENTRY(void, glGenFencesNV, GLsizei n, GLuint *fences)
Dentries.in146 GL_ENTRY(void, glDeleteFencesNV, GLsizei n, const GLuint *fences)
304 GL_ENTRY(void, glGenFencesNV, GLsizei n, GLuint *fences)
/frameworks/native/opengl/libs/GLES2/
Dgl2ext_api.in949 void API_ENTRY(glDeleteFencesNV)(GLsizei n, const GLuint *fences) {
950 CALL_GL_API(glDeleteFencesNV, n, fences);
952 void API_ENTRY(glGenFencesNV)(GLsizei n, GLuint *fences) {
953 CALL_GL_API(glGenFencesNV, n, fences);
/frameworks/native/services/surfaceflinger/sysprop/
DSurfaceFlingerProperties.sysprop136 # Specify the offset in nanoseconds to add to vsync time when timestamping present fences.
/frameworks/av/media/codec2/core/include/
DC2Buffer.h176 c2_status_t merge(std::vector<C2Fence> fences);
/frameworks/native/opengl/include/GLES2/
Dgl2ext.h2682 typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
2683 typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
2690 GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei n, const GLuint *fences);
2691 GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei n, GLuint *fences);