Home
last modified time | relevance | path

Searched refs:BufferQueue (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/native/libs/gui/
DBufferQueue.cpp33 BufferQueue::ProxyConsumerListener::ProxyConsumerListener( in ProxyConsumerListener()
37 BufferQueue::ProxyConsumerListener::~ProxyConsumerListener() {} in ~ProxyConsumerListener()
39 void BufferQueue::ProxyConsumerListener::onDisconnect() { in onDisconnect()
46 void BufferQueue::ProxyConsumerListener::onFrameDequeued(const uint64_t bufferId) { in onFrameDequeued()
53 void BufferQueue::ProxyConsumerListener::onFrameCancelled(const uint64_t bufferId) { in onFrameCancelled()
60 void BufferQueue::ProxyConsumerListener::onFrameDetached(const uint64_t bufferId) { in onFrameDetached()
67 void BufferQueue::ProxyConsumerListener::onFrameAvailable( in onFrameAvailable()
75 void BufferQueue::ProxyConsumerListener::onFrameReplaced( in onFrameReplaced()
83 void BufferQueue::ProxyConsumerListener::onBuffersReleased() { in onBuffersReleased()
90 void BufferQueue::ProxyConsumerListener::onSidebandStreamChanged() { in onSidebandStreamChanged()
[all …]
DGLConsumer.cpp122 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT), in GLConsumer()
151 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT), in GLConsumer()
197 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
246 if (buf != BufferQueue::INVALID_BUFFER_SLOT) { in releaseTexImage()
273 mCurrentTexture = BufferQueue::INVALID_BUFFER_SLOT; in releaseTexImage()
418 if (mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in updateAndReleaseLocked()
468 if (mCurrentTexture == BufferQueue::INVALID_BUFFER_SLOT && in bindTextureImageLocked()
537 mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in setReleaseFence()
648 if (mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in syncForReleaseLocked()
908 mCurrentTexture = BufferQueue::INVALID_BUFFER_SLOT; in freeBufferLocked()
DConsumerBase.cpp70 sp<IConsumerListener> proxy = new BufferQueue::ProxyConsumerListener(listener); in ConsumerBase()
188 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
214 for (int i =0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in abandonLocked()
358 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in discardFreeBuffers()
510 if (slot < 0 || slot >= BufferQueue::NUM_BUFFER_SLOTS) { in stillTracking()
/frameworks/native/services/surfaceflinger/tests/unittests/
DCachingTest.cpp44 EXPECT_EQ(BufferQueue::INVALID_BUFFER_SLOT, slot); in TEST_F()
53 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 1, slot); in TEST_F()
59 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 2, slot); in TEST_F()
62 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 2, slot); in TEST_F()
65 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - 1, slot); in TEST_F()
73 for (uint32_t i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in TEST_F()
80 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - (i + 1), slot); in TEST_F()
83 for (uint32_t i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in TEST_F()
85 EXPECT_EQ(BufferQueue::NUM_BUFFER_SLOTS - (i + 1), slot); in TEST_F()
88 for (uint32_t i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in TEST_F()
[all …]
/frameworks/av/media/libstagefright/filters/
DGraphicBufferListener.cpp37 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in init()
49 wp<BufferQueue::ConsumerListener> listener = in init()
50 static_cast<BufferQueue::ConsumerListener*>(this); in init()
51 sp<BufferQueue::ProxyConsumerListener> proxy = in init()
52 new BufferQueue::ProxyConsumerListener(listener); in init()
102 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in getBufferItem()
132 if (item.mSlot < 0 || item.mSlot >= BufferQueue::NUM_BUFFER_SLOTS) { in getBuffer()
144 if (item.mSlot < 0 || item.mSlot >= BufferQueue::NUM_BUFFER_SLOTS) { in releaseBuffer()
DGraphicBufferListener.h26 struct GraphicBufferListener : public BufferQueue::ConsumerListener {
65 sp<GraphicBuffer> mBufferSlot[BufferQueue::NUM_BUFFER_SLOTS];
/frameworks/native/libs/gui/include/gui/
DCpuConsumer.h30 class BufferQueue; variable
130 mSlot(BufferQueue::INVALID_BUFFER_SLOT), in AcquiredBuffer()
135 mSlot = BufferQueue::INVALID_BUFFER_SLOT; in reset()
DBufferItemConsumer.h45 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
46 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
DBufferQueue.h28 class BufferQueue {
91 BufferQueue() = delete; // Create through createBufferQueue
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.h56 enum { INVALID_BUFFER_SLOT = BufferQueue::INVALID_BUFFER_SLOT };
57 enum { NO_BUFFER_AVAILABLE = BufferQueue::NO_BUFFER_AVAILABLE };
134 return mBufferItem.mSlot == BufferQueue::INVALID_BUFFER_SLOT; in isEmpty()
/frameworks/native/libs/gui/tests/
DStreamSplitter_test.cpp62 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer); in TEST_F()
66 BufferQueue::createBufferQueue(&outputProducer, &outputConsumer); in TEST_F()
128 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer); in TEST_F()
133 BufferQueue::createBufferQueue(&outputProducers[output], in TEST_F()
201 BufferQueue::createBufferQueue(&inputProducer, &inputConsumer); in TEST_F()
205 BufferQueue::createBufferQueue(&outputProducer, &outputConsumer); in TEST_F()
DIGraphicBufferProducer_test.cpp96 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in SetUp()
100 BufferQueue::createBufferHubQueue(&mProducer, &mConsumer); in SetUp()
245 EXPECT_GT(BufferQueue::NUM_BUFFER_SLOTS, *slot); in setupDequeueRequestBuffer()
331 EXPECT_GE(BufferQueue::NUM_BUFFER_SLOTS, value); in TEST_P()
390 EXPECT_GT(BufferQueue::NUM_BUFFER_SLOTS, dequeuedSlot); in TEST_P()
432 EXPECT_EQ(BAD_VALUE, mProducer->queueBuffer(BufferQueue::NUM_BUFFER_SLOTS, in TEST_P()
537 const int maxBuffers = BufferQueue::NUM_BUFFER_SLOTS - minUndequeuedBuffers; in TEST_P()
588 const int maxBuffers = BufferQueue::NUM_BUFFER_SLOTS - minUndequeuedBuffers; in TEST_P()
714 EXPECT_GT(BufferQueue::NUM_BUFFER_SLOTS, slot); in TEST_P()
DBufferQueue_test.cpp71 BufferQueue::createBufferQueue(&mProducer, &mConsumer); in createBufferQueue()
118 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
241 BufferQueue::MAX_MAX_ACQUIRED_BUFFERS+1)); in TEST_F()
308 BufferQueue::MAX_MAX_ACQUIRED_BUFFERS)); in TEST_F()
327 BufferQueue::NUM_BUFFER_SLOTS + 1)); in TEST_F()
751 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F()
778 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F()
788 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F()
809 int slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F()
819 slot = BufferQueue::INVALID_BUFFER_SLOT; in TEST_F()
[all …]
DSurfaceTextureGL.h41 BufferQueue::createBufferQueue(&producer, &mConsumer); in SetUp()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DHwcBufferCache.cpp38 if (slot == BufferQueue::INVALID_BUFFER_SLOT || slot < 0 || in getHwcBuffer()
39 slot >= BufferQueue::NUM_BUFFER_SLOTS) { in getHwcBuffer()
/frameworks/native/services/surfaceflinger/
DBufferLayerConsumer.cpp80 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT) { in BufferLayerConsumer()
124 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
126 } else if (err == BufferQueue::PRESENT_LATER) { in updateTexImage()
181 if (slot == BufferQueue::INVALID_BUFFER_SLOT) { in setReleaseFence()
257 if (mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in updateAndReleaseLocked()
448 mCurrentTexture = BufferQueue::INVALID_BUFFER_SLOT; in freeBufferLocked()
484 if (item.mGraphicBuffer != nullptr && item.mSlot != BufferQueue::INVALID_BUFFER_SLOT) { in onBufferAvailable()
509 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in abandonLocked()
/frameworks/native/libs/nativedisplay/surfacetexture/
DSurfaceTexture.cpp52 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT), in SurfaceTexture()
77 mCurrentTexture(BufferQueue::INVALID_BUFFER_SLOT), in SurfaceTexture()
210 if (mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in takeConsumerOwnership()
254 if (needsRecompute && mCurrentTexture == BufferQueue::INVALID_BUFFER_SLOT) { in setFilteringEnabled()
258 if (needsRecompute && mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in setFilteringEnabled()
265 sp<GraphicBuffer> buf = (mCurrentTexture == BufferQueue::INVALID_BUFFER_SLOT) in computeCurrentTransformMatrixLocked()
437 mCurrentTexture = BufferQueue::INVALID_BUFFER_SLOT; in freeBufferLocked()
DEGLConsumer.cpp102 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in updateTexImage()
139 if (buf != BufferQueue::INVALID_BUFFER_SLOT) { in releaseTexImage()
164 st.mCurrentTexture = BufferQueue::INVALID_BUFFER_SLOT; in releaseTexImage()
286 if (st.mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in updateAndReleaseLocked()
336 if (st.mCurrentTexture == BufferQueue::INVALID_BUFFER_SLOT && mCurrentTextureImage == nullptr) { in bindTextureImageLocked()
481 if (st.mCurrentTexture != BufferQueue::INVALID_BUFFER_SLOT) { in syncForReleaseLocked()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp71 mPreviousBufferSlot(BufferQueue::INVALID_BUFFER_SLOT), in FramebufferSurface()
122 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { in nextBuffer()
138 if (mCurrentBufferSlot != BufferQueue::INVALID_BUFFER_SLOT && in nextBuffer()
163 mCurrentBufferSlot = BufferQueue::INVALID_BUFFER_SLOT; in freeBufferLocked()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DHwcBufferCacheTest.cpp78 testSlot(BufferQueue::NUM_BUFFER_SLOTS - 1, BufferQueue::NUM_BUFFER_SLOTS - 1); in TEST_F()
/frameworks/native/opengl/tests/EGLTest/
DEGL_test.cpp150 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
270 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
318 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
410 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
582 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
634 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
716 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
821 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
847 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
894 BufferQueue::createBufferQueue(&producer, &consumer); in TEST_F()
[all …]
/frameworks/base/libs/hostgraphics/gui/
DBufferQueue.h26 class BufferQueue {
/frameworks/av/media/libstagefright/
DFrameCaptureLayer.cpp140 BufferQueue::createBufferQueue(&producer, &consumer); in init()
147 new BufferQueue::ProxyConsumerListener(this), false); in init()
205 for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { in onBuffersReleased()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DHwcBufferCache.h63 wp<GraphicBuffer> mBuffers[BufferQueue::NUM_BUFFER_SLOTS];
/frameworks/native/services/surfaceflinger/tests/
DVirtualDisplay_test.cpp32 BufferQueue::createBufferQueue(&mProducer, &consumer); in SetUp()

1234