Home
last modified time | relevance | path

Searched refs:layerFE (Results 1 – 18 of 18) sorted by relevance

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DCachedSetTest.cpp87 sp<mock::LayerFE> layerFE; member
111 testLayer->layerFE = sp<mock::LayerFE>::make(); in SetUp()
113 EXPECT_CALL(*testLayer->layerFE, getSequence) in SetUp()
115 EXPECT_CALL(*testLayer->layerFE, getDebugName).WillRepeatedly(Return("testLayer")); in SetUp()
116 EXPECT_CALL(*testLayer->layerFE, getCompositionState) in SetUp()
119 .WillRepeatedly(ReturnRef(*testLayer->layerFE)); in SetUp()
339 sp<mock::LayerFE> layerFE1 = mTestLayers[1]->layerFE; in TEST_F()
341 sp<mock::LayerFE> layerFE2 = mTestLayers[2]->layerFE; in TEST_F()
388 sp<mock::LayerFE> layerFE1 = mTestLayers[1]->layerFE; in TEST_F()
390 sp<mock::LayerFE> layerFE2 = mTestLayers[2]->layerFE; in TEST_F()
[all …]
DFlattenerTest.cpp88 sp<mock::LayerFE> layerFE; member
119 testLayer->layerFE = sp<mock::LayerFE>::make(); in SetUp()
121 EXPECT_CALL(*testLayer->layerFE, getSequence) in SetUp()
123 EXPECT_CALL(*testLayer->layerFE, getDebugName) in SetUp()
125 EXPECT_CALL(*testLayer->layerFE, getCompositionState) in SetUp()
131 EXPECT_CALL(*testLayer->layerFE, prepareClientComposition) in SetUp()
134 .WillRepeatedly(ReturnRef(*testLayer->layerFE)); in SetUp()
657 EXPECT_CALL(*mTestLayers[2]->layerFE, hasRoundedCorners()).WillRepeatedly(Return(true)); in TEST_F()
666 EXPECT_CALL(*mTestLayers[2]->layerFE, prepareClientComposition(_)) in TEST_F()
729 EXPECT_CALL(*mTestLayers[1]->layerFE, hasRoundedCorners()).WillRepeatedly(Return(true)); in TEST_F()
[all …]
DPredictorTest.cpp53 void setupMocksForLayer(mock::OutputLayer& layer, mock::LayerFE& layerFE, in setupMocksForLayer() argument
56 EXPECT_CALL(layer, getLayerFE()).WillRepeatedly(ReturnRef(layerFE)); in setupMocksForLayer()
58 EXPECT_CALL(layerFE, getSequence()).WillRepeatedly(Return(sSequenceId)); in setupMocksForLayer()
59 EXPECT_CALL(layerFE, getDebugName()).WillRepeatedly(Return(sDebugName.c_str())); in setupMocksForLayer()
60 EXPECT_CALL(layerFE, getCompositionState()).WillRepeatedly(Return(&layerFEState)); in setupMocksForLayer()
DLayerStateTest.cpp87 void setupMocksForLayer(mock::OutputLayer& layer, mock::LayerFE& layerFE, in setupMocksForLayer()
92 EXPECT_CALL(layer, getLayerFE()).WillRepeatedly(ReturnRef(layerFE)); in setupMocksForLayer()
94 EXPECT_CALL(layerFE, getSequence()).WillRepeatedly(Return(sequenceId)); in setupMocksForLayer()
95 EXPECT_CALL(layerFE, getDebugName()).WillRepeatedly(Return(debugName.c_str())); in setupMocksForLayer()
96 EXPECT_CALL(layerFE, getCompositionState()).WillRepeatedly(Return(&layerFEState)); in setupMocksForLayer()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DCompositionEngine.cpp205 for (auto& layerFE : args.layers) { in postComposition() local
206 if (layerFE->getReleaseFencePromiseStatus() == in postComposition()
208 layerFE->setReleaseFence(Fence::NO_FENCE); in postComposition()
215 for (auto& layerFE : args.layersWithQueuedFrames) { in postComposition() local
216 if (layerFE->getReleaseFencePromiseStatus() == in postComposition()
218 layerFE->setReleaseFence(Fence::NO_FENCE); in postComposition()
DDisplay.cpp157 const sp<compositionengine::LayerFE>& layerFE) const { in createOutputLayer()
158 auto outputLayer = impl::createOutputLayer(*this, layerFE); in createOutputLayer()
191 compositionengine::LayerFE* layerFE = &outputLayer->getLayerFE(); in setReleasedLayers() local
195 [layerFE](sp<compositionengine::LayerFE> layerWithQueuedFrames) { in setReleasedLayers()
196 return layerFE == layerWithQueuedFrames.get(); in setReleasedLayers()
200 releasedLayers.emplace_back(wp<LayerFE>::fromExisting(layerFE)); in setReleasedLayers()
DOutput.cpp395 bool Output::includesLayer(const sp<LayerFE>& layerFE) const { in includesLayer()
396 const auto* layerFEState = layerFE->getCompositionState(); in includesLayer()
401 const sp<LayerFE>& layerFE) const { in createOutputLayer()
402 return impl::createOutputLayer(*this, layerFE); in createOutputLayer()
405 compositionengine::OutputLayer* Output::getOutputLayerForLayer(const sp<LayerFE>& layerFE) const { in getOutputLayerForLayer()
406 auto index = findCurrentOutputLayerForLayer(layerFE); in getOutputLayerForLayer()
558 void Output::ensureOutputLayerIfVisible(sp<compositionengine::LayerFE>& layerFE, in ensureOutputLayerIfVisible() argument
563 if (!coverage.latchedLayers.count(layerFE)) { in ensureOutputLayerIfVisible()
564 coverage.latchedLayers.insert(layerFE); in ensureOutputLayerIfVisible()
568 if (!includesLayer(layerFE)) { in ensureOutputLayerIfVisible()
[all …]
DOutputLayer.cpp60 const sp<compositionengine::LayerFE>& layerFE) { in createOutputLayer() argument
61 return createOutputLayerTemplated<OutputLayer>(output, layerFE); in createOutputLayer()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputLayer.h105 sp<LayerFE> layerFE) { in createOutputLayerTemplated() argument
121 OutputLayer(const Output& output, const sp<LayerFE>& layerFE) in createOutputLayerTemplated()
122 : mOutput(output), mLayerFE(layerFE) {} in createOutputLayerTemplated()
140 return std::make_unique<OutputLayer>(output, layerFE); in createOutputLayerTemplated()
DOutput.h244 const sp<LayerFE>& layerFE) { in createOutputTemplated()
247 : BaseOutput::createOutputLayer(layerFE); in createOutputTemplated()
264 OutputLayer* injectOutputLayerForTest(const sp<LayerFE>& layerFE) override { in createOutputTemplated()
265 auto outputLayer = BaseOutput::createOutputLayer(layerFE); in createOutputTemplated()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputTest.cpp109 EXPECT_CALL(*outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(*layerFE.get())); in InjectedLayer()
113 EXPECT_CALL(*layerFE, getCompositionState()).WillRepeatedly(Return(&layerFEState)); in InjectedLayer()
114 EXPECT_CALL(*layerFE, getSequence()).WillRepeatedly(Return(0)); in InjectedLayer()
115 EXPECT_CALL(*layerFE, getDebugName()).WillRepeatedly(Return("InjectedLayer")); in InjectedLayer()
119 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); member
126 EXPECT_CALL(outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(*layerFE.get())); in NonInjectedLayer()
130 EXPECT_CALL(*layerFE, getCompositionState()).WillRepeatedly(Return(&layerFEState)); in NonInjectedLayer()
131 EXPECT_CALL(*layerFE, getSequence()).WillRepeatedly(Return(0)); in NonInjectedLayer()
132 EXPECT_CALL(*layerFE, getDebugName()).WillRepeatedly(Return("NonInjectedLayer")); in NonInjectedLayer()
136 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); member
[all …]
DDisplayTest.cpp77 EXPECT_CALL(*outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(*layerFE)); in Layer()
81 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); member
88 EXPECT_CALL(*outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(*layerFE)); in LayerNoHWC2Layer()
92 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); member
491 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); in TEST_F() local
497 auto outputLayer = mDisplay->createOutputLayer(layerFE); in TEST_F()
551 refreshArgs.layersWithQueuedFrames.push_back(mLayer1.layerFE); in TEST_F()
552 refreshArgs.layersWithQueuedFrames.push_back(mLayer2.layerFE); in TEST_F()
559 ASSERT_EQ(mLayer1.layerFE.get(), releasedLayers[0].promote().get()); in TEST_F()
560 ASSERT_EQ(mLayer2.layerFE.get(), releasedLayers[1].promote().get()); in TEST_F()
DCompositionEngineTest.cpp146 Layer() { EXPECT_CALL(outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(*layerFE)); } in Layer()
149 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); member
DOutputLayerTest.cpp87 OutputLayer(const compositionengine::Output& output, compositionengine::LayerFE& layerFE) in OutputLayer()
88 : mOutput(output), mLayerFE(layerFE) {} in OutputLayer()
536 compositionengine::LayerFE& layerFE) in OutputLayerPartialMockForUpdateCompositionState()
537 : mOutput(output), mLayerFE(layerFE) {} in OutputLayerPartialMockForUpdateCompositionState()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DCachedSet.cpp223 auto& layerFE = mHolePunchLayer->getOutputLayer()->getLayerFE(); in render() local
225 auto holePunchSettings = layerFE.prepareClientComposition(targetSettings); in render()
232 android::base::StringPrintf("hole punch layer for %s", layerFE.getDebugName()); in render()
312 const auto& layerFE = mLayers[0].getState()->getOutputLayer()->getLayerFE(); in requiresHolePunch() local
313 const auto* compositionState = layerFE.getCompositionState(); in requiresHolePunch()
322 return layerFE.hasRoundedCorners(); in requiresHolePunch()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp2806 if (const auto& layerFE = layer->getCompositionEngineLayerFE()) in composite() local
2807 refreshArgs.layersWithQueuedFrames.push_back(layerFE); in composite()
2870 for (auto& [layer, layerFE] : layers) { in composite()
2875 for (auto& [layer, layerFE] : layers) { in composite()
2876 attachReleaseFenceFutureToLayer(layer, layerFE, in composite()
2877 layerFE->mSnapshot->outputFilter.layerStack); in composite()
2882 if (const auto& layerFE = layer->getCompositionEngineLayerFE()) { in composite() local
2883 refreshArgs.layersWithQueuedFrames.push_back(layerFE); in composite()
2885 if (layerFE->getReleaseFencePromiseStatus() == in composite()
2887 layerFE->getReleaseFencePromiseStatus() == in composite()
[all …]
DLayer.cpp2586 sp<LayerFE> layerFE; in findOutputLayerForDisplay() local
2590 layerFE = layer; in findOutputLayerForDisplay()
2594 if (!layerFE) return nullptr; in findOutputLayerForDisplay()
2595 return display->getCompositionDisplay()->getOutputLayerForLayer(layerFE); in findOutputLayerForDisplay()
2605 sp<LayerFE> layerFE; in findOutputLayerForDisplay() local
2608 layerFE = layer; in findOutputLayerForDisplay()
2612 if (!layerFE) return nullptr; in findOutputLayerForDisplay()
2613 return display->getCompositionDisplay()->getOutputLayerForLayer(layerFE); in findOutputLayerForDisplay()
3992 for (auto& [p, layerFE] : mLayerFEs) { in getCompositionEngineLayerFE()
3994 return layerFE; in getCompositionEngineLayerFE()
[all …]
DSurfaceFlinger.h893 void attachReleaseFenceFutureToLayer(Layer* layer, LayerFE* layerFE, ui::LayerStack layerStack);