Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionSurfaceFrameTest.cpp89 BufferData bufferData; in PresentedSurfaceFrameForBufferTransaction() local
90 bufferData.acquireFence = fence; in PresentedSurfaceFrameForBufferTransaction()
91 bufferData.frameNumber = 1; in PresentedSurfaceFrameForBufferTransaction()
92 bufferData.flags |= BufferData::BufferDataChange::fenceChanged; in PresentedSurfaceFrameForBufferTransaction()
93 bufferData.flags |= BufferData::BufferDataChange::frameNumberChanged; in PresentedSurfaceFrameForBufferTransaction()
102 layer->setBuffer(externalTexture, bufferData, 10, 20, false, ftInfo); in PresentedSurfaceFrameForBufferTransaction()
124 BufferData bufferData; in DroppedSurfaceFrameForBufferTransaction() local
125 bufferData.acquireFence = fence1; in DroppedSurfaceFrameForBufferTransaction()
126 bufferData.frameNumber = 1; in DroppedSurfaceFrameForBufferTransaction()
127 bufferData.flags |= BufferData::BufferDataChange::fenceChanged; in DroppedSurfaceFrameForBufferTransaction()
[all …]
DTransactionFrameTracerTest.cpp87 BufferData bufferData; in BLASTTransactionSendsFrameTracerEvents() local
88 bufferData.acquireFence = fence; in BLASTTransactionSendsFrameTracerEvents()
89 bufferData.frameNumber = frameNumber; in BLASTTransactionSendsFrameTracerEvents()
90 bufferData.flags |= BufferData::BufferDataChange::fenceChanged; in BLASTTransactionSendsFrameTracerEvents()
91 bufferData.flags |= BufferData::BufferDataChange::frameNumberChanged; in BLASTTransactionSendsFrameTracerEvents()
96 layer->setBuffer(externalTexture, bufferData, postTime, /*desiredPresentTime*/ 30, false, in BLASTTransactionSendsFrameTracerEvents()
DTransactionApplicationTest.cpp294 FakeExternalTexture(BufferData& bufferData) in FakeExternalTexture() argument
295 : mWidth(bufferData.getWidth()), in FakeExternalTexture()
296 mHeight(bufferData.getHeight()), in FakeExternalTexture()
297 mId(bufferData.getId()), in FakeExternalTexture()
298 mPixelFormat(bufferData.getPixelFormat()), in FakeExternalTexture()
299 mUsage(bufferData.getUsage()) {} in FakeExternalTexture()
323 transaction1.states[0].state.bufferData = in TEST_F()
327 std::make_shared<FakeExternalTexture>(*transaction1.states[0].state.bufferData); in TEST_F()
333 transaction1.states[0].state.bufferData->acquireFence = std::move(fence); in TEST_F()
334 transaction1.states[0].state.bufferData->flags = BufferData::BufferDataChange::fenceChanged; in TEST_F()
[all …]
DLayerHierarchyTest.h423 transactions.back().states.front().state.bufferData = in setBuffer()
/frameworks/native/services/surfaceflinger/FrontEnd/
DRequestedLayerState.cpp112 bufferData = std::make_shared<BufferData>(); in RequestedLayerState()
113 bufferData->frameNumber = 0; in RequestedLayerState()
114 bufferData->acquireFence = sp<Fence>::make(-1); in RequestedLayerState()
115 acquireFenceTime = std::make_shared<FenceTime>(bufferData->acquireFence); in RequestedLayerState()
149 uint64_t oldFramenumber = hadBuffer ? bufferData->frameNumber : 0; in merge()
206 bufferData->flags.test(BufferData::BufferDataChange::frameNumberChanged); in merge()
208 frameNumberChanged ? bufferData->frameNumber : oldFramenumber + 1; in merge()
209 bufferData->frameNumber = frameNumber; in merge()
211 if ((barrierProducerId > bufferData->producerId) || in merge()
212 ((barrierProducerId == bufferData->producerId) && in merge()
[all …]
DTransactionHandler.cpp114 state.bufferData->flags.test(BufferData::BufferDataChange::frameNumberChanged); in popTransactionFromPending()
117 state.bufferData->frameNumber); in popTransactionFromPending()
DLayerSnapshot.cpp451 requested.bufferData->flags.test(BufferData::BufferDataChange::fenceChanged)) in merge()
452 ? requested.bufferData->acquireFence in merge()
456 frameNumber = (requested.bufferData) ? requested.bufferData->frameNumber : 0; in merge()
/frameworks/native/services/surfaceflinger/Tracing/
DTransactionProtoParser.cpp163 bufferProto->set_frame_number(layer.bufferData->frameNumber); in toProto()
164 bufferProto->set_flags(layer.bufferData->flags.get()); in toProto()
165 bufferProto->set_cached_buffer_id(layer.bufferData->cachedBuffer.id); in toProto()
425 layer.bufferData = in fromProto()
430 std::make_shared<FakeExternalTexture>(layer.bufferData->getWidth(), in fromProto()
431 layer.bufferData->getHeight(), in fromProto()
432 layer.bufferData->getId(), in fromProto()
433 layer.bufferData->getPixelFormat(), in fromProto()
434 layer.bufferData->getUsage()); in fromProto()
435 layer.bufferData->frameNumber = bufferProto.frame_number(); in fromProto()
[all …]
/frameworks/av/media/ndk/fuzzer/
Dndk_mediaformat_fuzzer.cpp245 std::vector<uint8_t> bufferData = fdp.ConsumeBytes<uint8_t>( in LLVMFuzzerTestOneInput() local
247 AMediaFormat_setBuffer(mediaFormat, name, bufferData.data(), bufferData.size()); in LLVMFuzzerTestOneInput()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp934 if (!(state.what & layer_state_t::eBufferChanged) || !state.bufferData->hasBuffer()) { in releaseBufferIfOverwriting()
938 auto listener = state.bufferData->releaseBufferListener; in releaseBufferIfOverwriting()
940 state.bufferData->acquireFence ? state.bufferData->acquireFence : Fence::NO_FENCE; in releaseBufferIfOverwriting()
941 if (state.bufferData->releaseBufferEndpoint == in releaseBufferIfOverwriting()
947 .addReleaseCallback(state.bufferData->generateReleaseCallbackId(), fence); in releaseBufferIfOverwriting()
949 listener->onReleaseBuffer(state.bufferData->generateReleaseCallbackId(), fence, UINT_MAX); in releaseBufferIfOverwriting()
1082 } else if (s->bufferData && in cacheBuffers()
1083 s->bufferData->flags.test(BufferData::BufferDataChange::cachedBufferChanged)) { in cacheBuffers()
1092 if (!s->bufferData || !s->bufferData->buffer) { in cacheBuffers()
1097 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()
322 bufferData = std::make_shared<BufferData>(); in read()
323 SAFE_PARCEL(input.readParcelable, bufferData.get()); in read()
325 bufferData = nullptr; in read()
582 bufferData = other.bufferData; in merge()
801 return bufferData && (bufferData->hasBuffer() || bufferData->cachedBuffer.isValid()); in hasValidBuffer()
DBLASTBufferQueue.cpp731 auto bufferData = mSyncTransaction->getAndClearBuffer(mSurfaceControl); in onFrameAvailable() local
732 if (bufferData) { in onFrameAvailable()
734 bufferData->frameNumber); in onFrameAvailable()
735 releaseBuffer(bufferData->generateReleaseCallbackId(), in onFrameAvailable()
736 bufferData->acquireFence); in onFrameAvailable()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaDisplayList.cpp110 for (const auto& bufferData : mMeshBufferData) { in prepareListAndChildren() local
111 bufferData->updateBuffers(grContext); in prepareListAndChildren()
/frameworks/av/media/codec2/sfplugin/
DC2OMXNode.cpp197 void **bufferData, sp<NativeHandle> *nativeHandle) { in allocateSecureBuffer() argument
202 *bufferData = nullptr; in allocateSecureBuffer()
/frameworks/base/libs/hwui/
DMesh.h203 std::shared_ptr<const MeshBufferData> bufferData, sk_sp<const SkData> uniforms, in Snapshot() argument
207 , mBufferData(std::move(bufferData)) in Snapshot()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp4886 if (s.bufferData->hasBarrier) { in transactionReadyBufferCheckLegacy()
4890 if (layer->getDrawingState().barrierProducerId > s.bufferData->producerId) { in transactionReadyBufferCheckLegacy()
4891 layer->callReleaseBufferCallback(s.bufferData->releaseBufferListener, in transactionReadyBufferCheckLegacy()
4893 s.bufferData->frameNumber, in transactionReadyBufferCheckLegacy()
4894 s.bufferData->acquireFence); in transactionReadyBufferCheckLegacy()
4899 s.bufferData->producerId); in transactionReadyBufferCheckLegacy()
4903 if (layer->getDrawingState().barrierFrameNumber < s.bufferData->barrierFrameNumber) { in transactionReadyBufferCheckLegacy()
4907 s.bufferData->barrierFrameNumber)); in transactionReadyBufferCheckLegacy()
4912 s.bufferData->barrierFrameNumber); in transactionReadyBufferCheckLegacy()
4929 const bool acquireFenceAvailable = s.bufferData && in transactionReadyBufferCheckLegacy()
[all …]
DLayer.cpp3151 const BufferData& bufferData, nsecs_t postTime, nsecs_t desiredPresentTime, in setBuffer() argument
3156 bufferData.flags.test(BufferData::BufferDataChange::frameNumberChanged); in setBuffer()
3158 frameNumberChanged ? bufferData.frameNumber : mDrawingState.frameNumber + 1; in setBuffer()
3187 if ((mDrawingState.producerId > bufferData.producerId) || in setBuffer()
3188 ((mDrawingState.producerId == bufferData.producerId) && in setBuffer()
3193 bufferData.producerId, frameNumber); in setBuffer()
3197 mDrawingState.producerId = bufferData.producerId; in setBuffer()
3204 mDrawingState.releaseBufferListener = bufferData.releaseBufferListener; in setBuffer()
3206 mDrawingState.acquireFence = bufferData.flags.test(BufferData::BufferDataChange::fenceChanged) in setBuffer()
3207 ? bufferData.acquireFence in setBuffer()
[all …]
DLayerProtoHelper.cpp380 layerInfo->set_curr_frame(requestedState.bufferData->frameNumber); in writeSnapshotToProto()
DSurfaceFlinger.h358 BufferData& bufferData, const char* layerName, uint64_t transactionId);
/frameworks/av/media/libstagefright/omx/1.0/
DWOmxNode.cpp349 void* bufferData; in allocateSecureBuffer() local
355 &bufferData, in allocateSecureBuffer()
/frameworks/av/media/libmedia/omx/1.0/
DWOmxNode.cpp346 void* bufferData; in allocateSecureBuffer() local
352 &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/native/libs/gui/include/gui/
DLayerState.h330 std::shared_ptr<BufferData> bufferData = nullptr; member
/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()