Home
last modified time | relevance | path

Searched refs:bufferData (Results 1 – 21 of 21) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionSurfaceFrameTest.cpp92 BufferData bufferData; in PresentedSurfaceFrameForBufferTransaction() local
93 bufferData.acquireFence = fence; in PresentedSurfaceFrameForBufferTransaction()
94 bufferData.frameNumber = 1; in PresentedSurfaceFrameForBufferTransaction()
95 bufferData.flags |= BufferData::BufferDataChange::fenceChanged; in PresentedSurfaceFrameForBufferTransaction()
96 bufferData.flags |= BufferData::BufferDataChange::frameNumberChanged; in PresentedSurfaceFrameForBufferTransaction()
105 layer->setBuffer(externalTexture, bufferData, 10, 20, false, std::nullopt, ftInfo); in PresentedSurfaceFrameForBufferTransaction()
127 BufferData bufferData; in DroppedSurfaceFrameForBufferTransaction() local
128 bufferData.acquireFence = fence1; in DroppedSurfaceFrameForBufferTransaction()
129 bufferData.frameNumber = 1; in DroppedSurfaceFrameForBufferTransaction()
130 bufferData.flags |= BufferData::BufferDataChange::fenceChanged; in DroppedSurfaceFrameForBufferTransaction()
[all …]
DTransactionFrameTracerTest.cpp90 BufferData bufferData; in BLASTTransactionSendsFrameTracerEvents() local
91 bufferData.acquireFence = fence; in BLASTTransactionSendsFrameTracerEvents()
92 bufferData.frameNumber = frameNumber; in BLASTTransactionSendsFrameTracerEvents()
93 bufferData.flags |= BufferData::BufferDataChange::fenceChanged; in BLASTTransactionSendsFrameTracerEvents()
94 bufferData.flags |= BufferData::BufferDataChange::frameNumberChanged; in BLASTTransactionSendsFrameTracerEvents()
99 layer->setBuffer(externalTexture, bufferData, postTime, /*desiredPresentTime*/ 30, false, in BLASTTransactionSendsFrameTracerEvents()
DTransactionApplicationTest.cpp290 FakeExternalTexture(BufferData& bufferData) in FakeExternalTexture() argument
291 : mWidth(bufferData.getWidth()), in FakeExternalTexture()
292 mHeight(bufferData.getHeight()), in FakeExternalTexture()
293 mId(bufferData.getId()), in FakeExternalTexture()
294 mPixelFormat(bufferData.getPixelFormat()), in FakeExternalTexture()
295 mUsage(bufferData.getUsage()) {} in FakeExternalTexture()
332 state.state.bufferData = in createComposerState()
336 state.state.bufferData->acquireFence = std::move(fence); in createComposerState()
341 state.state.bufferData->flags = BufferData::BufferDataChange::fenceChanged; in createComposerState()
384 std::make_shared<FakeExternalTexture>(*resolvedState.state.bufferData); in setTransactionStates()
/frameworks/native/services/surfaceflinger/FrontEnd/
DRequestedLayerState.cpp111 bufferData = std::make_shared<BufferData>(); in RequestedLayerState()
112 bufferData->frameNumber = 0; in RequestedLayerState()
113 bufferData->acquireFence = sp<Fence>::make(-1); in RequestedLayerState()
114 acquireFenceTime = std::make_shared<FenceTime>(bufferData->acquireFence); in RequestedLayerState()
135 uint64_t oldFramenumber = hadBuffer ? bufferData->frameNumber : 0; in merge()
179 bufferData->flags.test(BufferData::BufferDataChange::frameNumberChanged); in merge()
181 frameNumberChanged ? bufferData->frameNumber : oldFramenumber + 1; in merge()
182 bufferData->frameNumber = frameNumber; in merge()
184 if ((barrierProducerId > bufferData->producerId) || in merge()
185 ((barrierProducerId == bufferData->producerId) && in merge()
[all …]
DLayerSnapshot.cpp340 requested.bufferData->flags.test(BufferData::BufferDataChange::fenceChanged)) in merge()
341 ? requested.bufferData->acquireFence in merge()
345 frameNumber = (requested.bufferData) ? requested.bufferData->frameNumber : 0; in merge()
385 requested.bufferData->getPixelFormat() == HAL_PIXEL_FORMAT_RGBA_1010102; in merge()
DTransactionHandler.cpp111 state.bufferData->flags.test(BufferData::BufferDataChange::frameNumberChanged); in popTransactionFromPending()
114 state.bufferData->frameNumber); in popTransactionFromPending()
/frameworks/av/media/ndk/fuzzer/
Dndk_mediaformat_fuzzer.cpp237 std::vector<uint8_t> bufferData = fdp.ConsumeBytes<uint8_t>( in LLVMFuzzerTestOneInput() local
239 AMediaFormat_setBuffer(mediaFormat, name, bufferData.data(), bufferData.size()); in LLVMFuzzerTestOneInput()
/frameworks/native/services/surfaceflinger/Tracing/
DTransactionProtoParser.cpp162 bufferProto->set_frame_number(layer.bufferData->frameNumber); in toProto()
163 bufferProto->set_flags(layer.bufferData->flags.get()); in toProto()
164 bufferProto->set_cached_buffer_id(layer.bufferData->cachedBuffer.id); in toProto()
421 layer.bufferData = in fromProto()
426 std::make_shared<FakeExternalTexture>(layer.bufferData->getWidth(), in fromProto()
427 layer.bufferData->getHeight(), in fromProto()
428 layer.bufferData->getId(), in fromProto()
429 layer.bufferData->getPixelFormat(), in fromProto()
430 layer.bufferData->getUsage()); in fromProto()
431 layer.bufferData->frameNumber = bufferProto.frame_number(); in fromProto()
[all …]
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp922 if (!(state.what & layer_state_t::eBufferChanged) || !state.bufferData->hasBuffer()) { in releaseBufferIfOverwriting()
926 auto listener = state.bufferData->releaseBufferListener; in releaseBufferIfOverwriting()
928 state.bufferData->acquireFence ? state.bufferData->acquireFence : Fence::NO_FENCE; in releaseBufferIfOverwriting()
929 if (state.bufferData->releaseBufferEndpoint == in releaseBufferIfOverwriting()
935 .addReleaseCallback(state.bufferData->generateReleaseCallbackId(), fence); in releaseBufferIfOverwriting()
937 listener->onReleaseBuffer(state.bufferData->generateReleaseCallbackId(), fence, UINT_MAX); in releaseBufferIfOverwriting()
1070 } else if (s->bufferData && in cacheBuffers()
1071 s->bufferData->flags.test(BufferData::BufferDataChange::cachedBufferChanged)) { in cacheBuffers()
1080 if (!s->bufferData || !s->bufferData->buffer) { in cacheBuffers()
1085 status_t ret = BufferCache::getInstance().getCacheId(s->bufferData->buffer, &cacheId); in cacheBuffers()
[all …]
DLayerState.cpp186 const bool hasBufferData = (bufferData != nullptr); in write()
189 SAFE_PARCEL(output.writeParcelable, *bufferData); in write()
328 bufferData = std::make_shared<BufferData>(); in read()
329 SAFE_PARCEL(input.readParcelable, bufferData.get()); in read()
331 bufferData = nullptr; in read()
582 bufferData = other.bufferData; in merge()
791 return bufferData && (bufferData->hasBuffer() || bufferData->cachedBuffer.isValid()); in hasValidBuffer()
DBLASTBufferQueue.cpp708 auto bufferData = mSyncTransaction->getAndClearBuffer(mSurfaceControl); in onFrameAvailable() local
709 if (bufferData) { in onFrameAvailable()
711 bufferData->frameNumber); in onFrameAvailable()
712 releaseBuffer(bufferData->generateReleaseCallbackId(), in onFrameAvailable()
713 bufferData->acquireFence); in onFrameAvailable()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp4313 if (s.bufferData->hasBarrier) { in transactionReadyBufferCheck()
4317 if (layer->getDrawingState().barrierProducerId > s.bufferData->producerId) { in transactionReadyBufferCheck()
4318 layer->callReleaseBufferCallback(s.bufferData->releaseBufferListener, in transactionReadyBufferCheck()
4320 s.bufferData->frameNumber, in transactionReadyBufferCheck()
4321 s.bufferData->acquireFence); in transactionReadyBufferCheck()
4326 s.bufferData->producerId); in transactionReadyBufferCheck()
4330 if (layer->getDrawingState().barrierFrameNumber < s.bufferData->barrierFrameNumber) { in transactionReadyBufferCheck()
4334 s.bufferData->barrierFrameNumber)); in transactionReadyBufferCheck()
4339 s.bufferData->barrierFrameNumber); in transactionReadyBufferCheck()
4358 const bool acquireFenceAvailable = s.bufferData && in transactionReadyBufferCheck()
[all …]
DLayer.cpp3074 const BufferData& bufferData, nsecs_t postTime, nsecs_t desiredPresentTime, in setBuffer() argument
3080 bufferData.flags.test(BufferData::BufferDataChange::frameNumberChanged); in setBuffer()
3082 frameNumberChanged ? bufferData.frameNumber : mDrawingState.frameNumber + 1; in setBuffer()
3128 if ((mDrawingState.producerId > bufferData.producerId) || in setBuffer()
3129 ((mDrawingState.producerId == bufferData.producerId) && in setBuffer()
3134 bufferData.producerId, frameNumber); in setBuffer()
3138 mDrawingState.producerId = bufferData.producerId; in setBuffer()
3145 mDrawingState.releaseBufferListener = bufferData.releaseBufferListener; in setBuffer()
3147 mDrawingState.acquireFence = bufferData.flags.test(BufferData::BufferDataChange::fenceChanged) in setBuffer()
3148 ? bufferData.acquireFence in setBuffer()
[all …]
DLayerProtoHelper.cpp367 layerInfo->set_curr_frame(requestedState.bufferData->frameNumber); in writeSnapshotToProto()
DSurfaceFlinger.h356 BufferData& bufferData, const char* layerName, uint64_t transactionId);
/frameworks/av/media/libmedia/omx/1.0/
DWOmxNode.cpp346 void* bufferData; in allocateSecureBuffer() local
352 &bufferData, in allocateSecureBuffer()
/frameworks/av/media/libstagefright/omx/1.0/
DWOmxNode.cpp349 void* bufferData; in allocateSecureBuffer() local
355 &bufferData, in allocateSecureBuffer()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DConversion.h202 t->data.bufferData.buffer = l.u.buffer_data.buffer; in wrapAs()
248 l->u.buffer_data.buffer = t.data.bufferData.buffer; in wrapAs()
/frameworks/av/media/codec2/sfplugin/
DC2OMXNode.cpp374 void **bufferData, sp<NativeHandle> *nativeHandle) { in allocateSecureBuffer() argument
379 *bufferData = nullptr; in allocateSecureBuffer()
/frameworks/av/media/libmedia/include/media/omx/1.0/
DConversion.h344 t->data.bufferData.buffer = l.u.buffer_data.buffer; in wrapAs()
390 l->u.buffer_data.buffer = t.data.bufferData.buffer; in wrapAs()
/frameworks/native/libs/gui/include/gui/
DLayerState.h322 std::shared_ptr<BufferData> bufferData = nullptr; member