Home
last modified time | relevance | path

Searched refs:mFlinger (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/native/services/surfaceflinger/tests/unittests/
DTestableSurfaceFlinger.h183 mFlinger->mCompositionEngine->setRenderEngine(std::move(renderEngine)); in setupRenderEngine()
187 mFlinger->mCompositionEngine->setHwComposer( in setupComposer()
203 memcpy(&mFlinger->mInternalDisplayPrimaries, &primaries, sizeof(ui::DisplayPrimaries)); in setInternalDisplayPrimaries()
218 auto outputLayer = layer->findOutputLayerForDisplay(mFlinger->getDefaultDisplayDevice()); in setLayerCompositionType()
234 return mFlinger->createDisplay(displayName, secure); in createDisplay()
238 return mFlinger->destroyDisplay(displayToken); in destroyDisplay()
241 auto resetDisplayState() { return mFlinger->resetDisplayState(); } in resetDisplayState()
248 return mFlinger->setupNewDisplayDeviceInternal(displayToken, displayId, state, dispSurface, in setupNewDisplayDeviceInternal()
253 Mutex::Autolock _l(mFlinger->mStateLock); in handleTransactionLocked()
254 return mFlinger->handleTransactionLocked(transactionFlags); in handleTransactionLocked()
[all …]
DDisplayTransactionTest.cpp124 TestableSurfaceFlinger mFlinger; member in android::__anon968546880111::DisplayTransactionTest
152 mFlinger.mutableHasWideColorDisplay() = false; in DisplayTransactionTest()
153 mFlinger.mutableUseColorManagement() = false; in DisplayTransactionTest()
154 mFlinger.mutableDisplayColorSetting() = DisplayColorSetting::UNMANAGED; in DisplayTransactionTest()
157 mFlinger.mutableUseHwcVirtualDisplays() = true; in DisplayTransactionTest()
159 mFlinger.setCreateBufferQueueFunction([](auto, auto, auto) { in DisplayTransactionTest()
163 mFlinger.setCreateNativeWindowSurface([](auto) { in DisplayTransactionTest()
169 mFlinger.mutableEventQueue().reset(mMessageQueue); in DisplayTransactionTest()
170 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in DisplayTransactionTest()
171 mFlinger.mutableInterceptor().reset(mSurfaceInterceptor); in DisplayTransactionTest()
[all …]
DCompositionTest.cpp95 mFlinger.mutableEventQueue().reset(mMessageQueue); in CompositionTest()
107 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in CompositionTest()
122 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in setupComposer()
129 mFlinger.mutableRefreshRateConfigs() = in setupScheduler()
133 mFlinger.mutableRefreshRateStats() = in setupScheduler()
134 std::make_unique<scheduler::RefreshRateStats>(*mFlinger.mutableRefreshRateConfigs(), in setupScheduler()
135 *mFlinger.mutableTimeStats(), in setupScheduler()
138 mScheduler = new TestableScheduler(*mFlinger.mutableRefreshRateConfigs()); in setupScheduler()
144 mFlinger.mutableSfConnectionHandle() = std::move(connectionHandle); in setupScheduler()
146 mFlinger.mutableScheduler().reset(mScheduler); in setupScheduler()
[all …]
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp26 : mFlinger(flinger), mClient(new Client(&mFlinger)) { in RefreshRateOverlay()
32 mFlinger.createLayer(String8("RefreshRateOverlay"), mClient, 0, 0, in createLayer()
40 Mutex::Autolock _l(mFlinger.mStateLock); in createLayer()
45 ssize_t idx = mFlinger.mCurrentState.layersSortedByZ.indexOf(mLayer); in createLayer()
47 mFlinger.mCurrentState.layersSortedByZ.removeAt(idx); in createLayer()
48 mFlinger.mCurrentState.layersSortedByZ.add(mLayer); in createLayer()
57 mFlinger.mTransactionFlags.fetch_or(eTransactionMask); in changeRefreshRate()
DBufferQueueLayer.cpp146 return mQueueItems[0].mTimestamp <= mFlinger->getExpectedPresentTime(); in framePresentTimeIsCurrent()
200 nsecs_t expectedPresentTime = mFlinger->getExpectedPresentTime(); in getFrameNumber()
247 mFlinger->setTransactionFlags(eTraversalNeeded); in latchSidebandStream()
279 nsecs_t expectedPresentTime = mFlinger->getExpectedPresentTime(); in updateTexImage()
309 mFlinger->signalLayerUpdate(); in updateTexImage()
317 mFlinger->mTimeStats->removeTimeRecord(layerID, mQueueItems[0].mFrameNumber); in updateTexImage()
331 mFlinger->mTimeStats->onDestroy(layerID); in updateTexImage()
353 mFlinger->mTimeStats->removeTimeRecord(layerID, mQueueItems[0].mFrameNumber); in updateTexImage()
358 mFlinger->mTimeStats->setAcquireFence(layerID, currentFrameNumber, in updateTexImage()
360 mFlinger->mTimeStats->setLatchTime(layerID, currentFrameNumber, latchTime); in updateTexImage()
[all …]
DBufferStateLayer.cpp59 auto& engine(mFlinger->getRenderEngine()); in ~BufferStateLayer()
98 mFlinger->getTransactionCompletedThread().addPresentedCallbackHandles( in releasePendingBuffer()
229 mFlinger->mTimeStats->setPostTime(getSequence(), getFrameNumber(), getName().c_str(), postTime); in setBuffer()
232 if (mFlinger->mUseSmart90ForVideo) { in setBuffer()
234 mFlinger->mScheduler->addLayerPresentTimeAndHDR(mSchedulerLayerHandle, presentTime, in setBuffer()
290 mFlinger->signalLayerUpdate(); in setSidebandStream()
316 mFlinger->getTransactionCompletedThread().registerPendingCallbackHandle(handle); in setTransactionCompletedListeners()
323 mFlinger->getTransactionCompletedThread().addUnpresentedCallbackHandle(handle); in setTransactionCompletedListeners()
387 return mDesiredPresentTime <= mFlinger->getExpectedPresentTime(); in framePresentTimeIsCurrent()
474 mFlinger->setTransactionFlags(eTraversalNeeded); in latchSidebandStream()
[all …]
DBufferLayer.cpp61 mCompositionLayer{mFlinger->getCompositionEngine().createLayer( in BufferLayer()
72 mFlinger->deleteTextureAsync(mTextureName); in ~BufferLayer()
73 mFlinger->mTimeStats->onDestroy(getSequence()); in ~BufferLayer()
77 if (mFlinger->mForceFullDamage) { in useSurfaceDamage()
103 mFlinger->mScheduler->setLayerVisibility(mSchedulerLayerHandle, visible); in isVisible()
153 mFlinger->mDrawingState.traverseInZOrder([&](Layer* layer) { in prepareClientLayer()
378 mFlinger->mTimeStats->setDesiredTime(layerID, mCurrentFrameNumber, desiredPresentTime); in onPostComposition()
390 mFlinger->mTimeStats->setPresentFence(layerID, mCurrentFrameNumber, presentFence); in onPostComposition()
392 } else if (displayId && mFlinger->getHwComposer().isConnected(*displayId)) { in onPostComposition()
395 const nsecs_t actualPresentTime = mFlinger->getHwComposer().getRefreshTimestamp(*displayId); in onPostComposition()
[all …]
DClient.cpp37 : mFlinger(flinger) in Client()
80 return mFlinger->createLayer(name, this, w, h, format, flags, std::move(metadata), handle, gbp, in createSurface()
89 if (mFlinger->authenticateSurfaceTexture(parent) == false) { in createWithSurfaceParent()
100 return mFlinger->createLayer(name, this, w, h, format, flags, std::move(metadata), handle, gbp, in createWithSurfaceParent()
DMonitoredProducer.cpp29 mFlinger(flinger), in MonitoredProducer()
38 new LambdaMessage([flinger = mFlinger, asBinder = wp<IBinder>(onAsBinder())]() { in ~MonitoredProducer()
43 mFlinger->postMessageAsync(cleanUpListMessage); in ~MonitoredProducer()
DRefreshRateOverlay.h33 SurfaceFlinger& mFlinger; variable
DSurfaceTracing.cpp32 : mFlinger(flinger), mSfLock(flinger.mDrawingStateLock) {} in SurfaceTracing()
166 LayersProto layers(mFlinger.dumpDrawingStateProto(mTraceFlags)); in traceLayersLocked()
DLayer.cpp75 : mFlinger(args.flinger), in Layer()
123 mSchedulerLayerHandle = mFlinger->mScheduler->registerLayer(mName.c_str(), mWindowType); in Layer()
125 mFlinger->onLayerCreated(); in Layer()
135 mFlinger->onLayerDestroyed(this); in ~Layer()
175 mFlinger->setTransactionFlags(eTraversalNeeded); in removeRelativeZ()
198 mFlinger->markLayerPendingRemovalLocked(this); in removeFromCurrentState()
237 return new Handle(mFlinger, this); in getHandle()
711 mFlinger->setTransactionFlags(eTraversalNeeded); in pushPendingState()
772 mFlinger->setTransactionFlags(eTraversalNeeded); in applyPendingStates()
1082 LayerCreationArgs(mFlinger.get(), nullptr, name, 0, 0, flags, LayerMetadata())); in setBackgroundColor()
[all …]
DRegionSamplingThread.cpp167 : mFlinger(flinger), in RegionSamplingThread()
360 const auto device = mFlinger.getDefaultDisplayDevice(); in captureSample()
447 mFlinger.traverseLayersInDisplay(device, filterVisitor); in captureSample()
461 mFlinger.captureScreenCommon(renderArea, traverseLayers, buffer, false, ignored); in captureSample()
DClient.h70 sp<SurfaceFlinger> mFlinger; variable
DLayer.h715 sp<SurfaceFlinger> mFlinger;
721 sp<SurfaceFlinger> mFlinger; variable
727 mFlinger->onHandleDestroyed(mLayer); in ~LayerCleaner()
732 : mFlinger(flinger), mLayer(layer) {} in LayerCleaner()
DSurfaceTracing.h95 const SurfaceFlinger& mFlinger; variable
DDisplayDevice.cpp57 : mFlinger(args.flinger), in DisplayDevice()
61 mCompositionDisplay{mFlinger->getCompositionEngine().createDisplay( in DisplayDevice()
DRegionSamplingThread.h107 SurfaceFlinger& mFlinger; variable
DMonitoredProducer.h79 sp<SurfaceFlinger> mFlinger; variable
DColorLayer.cpp46 mCompositionLayer{mFlinger->getCompositionEngine().createLayer( in ColorLayer()
DSurfaceInterceptor.h175 SurfaceFlinger* const mFlinger; variable
DDisplayDevice.h168 const sp<SurfaceFlinger> mFlinger;
DSurfaceInterceptor.cpp40 : mFlinger(flinger) in SurfaceInterceptor()
372 if (mFlinger->authenticateSurfaceTextureLocked(gbp)) { in addSurfaceChangesLocked()
/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.cpp71 mQueue.mFlinger->onMessageReceived(message.what); in handleMessage()
75 mQueue.mFlinger->onMessageReceived(message.what); in handleMessage()
83 mFlinger = flinger; in init()
DMessageQueue.h116 sp<SurfaceFlinger> mFlinger; variable

12