Home
last modified time | relevance | path

Searched refs:LayerFE (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DLayerFE.h28 class LayerFE : public compositionengine::LayerFE {
30 LayerFE();
31 virtual ~LayerFE();
37 MOCK_METHOD1(prepareCompositionState, void(compositionengine::LayerFE::StateSubset));
39 std::vector<compositionengine::LayerFE::LayerSettings>(
40 compositionengine::LayerFE::ClientCompositionTargetSettings&));
DOutput.h66 MOCK_CONST_METHOD1(belongsInOutput, bool(const sp<compositionengine::LayerFE>&));
69 compositionengine::OutputLayer*(const sp<compositionengine::LayerFE>&));
72 compositionengine::OutputLayer*(const sp<compositionengine::LayerFE>&));
87 void(sp<compositionengine::LayerFE>&, compositionengine::Output::CoverageState&));
116 std::vector<LayerFE::LayerSettings>(bool, Region&, ui::Dataspace));
118 void(const Region&, std::vector<LayerFE::LayerSettings>&));
DOutputLayer.h37 MOCK_CONST_METHOD0(getLayerFE, compositionengine::LayerFE&());
53 MOCK_CONST_METHOD0(getOverrideCompositionList, std::vector<LayerFE::LayerSettings>());
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DClientCompositionRequestCache.cpp26 LayerFE::LayerSettings getLayerSettingsSnapshot(const LayerFE::LayerSettings& settings) { in getLayerSettingsSnapshot()
27 LayerFE::LayerSettings snapshot = settings; in getLayerSettingsSnapshot()
64 bool layerSettingsAreEqual(const LayerFE::LayerSettings& lhs, const LayerFE::LayerSettings& rhs) { in layerSettingsAreEqual()
73 const std::vector<LayerFE::LayerSettings>& initLayerSettings) in ClientCompositionRequest()
76 for (const LayerFE::LayerSettings& settings : initLayerSettings) { in ClientCompositionRequest()
83 const std::vector<LayerFE::LayerSettings>& newLayerSettings) const { in equals()
91 const std::vector<LayerFE::LayerSettings>& layerSettings) const { in exists()
102 const std::vector<LayerFE::LayerSettings>& layerSettings) { in add()
DOutput.cpp385 bool Output::belongsInOutput(const sp<compositionengine::LayerFE>& layerFE) const { in belongsInOutput()
391 const sp<LayerFE>& layerFE) const { in createOutputLayer()
395 compositionengine::OutputLayer* Output::getOutputLayerForLayer(const sp<LayerFE>& layerFE) const { in getOutputLayerForLayer()
401 const sp<compositionengine::LayerFE>& layer) const { in findCurrentOutputLayerForLayer()
483 void Output::ensureOutputLayerIfVisible(sp<compositionengine::LayerFE>& layerFE, in ensureOutputLayerIfVisible()
490 layerFE->prepareCompositionState(compositionengine::LayerFE::StateSubset::BasicGeometry); in ensureOutputLayerIfVisible()
684 args.updatingGeometryThisFrame ? LayerFE::StateSubset::GeometryAndContent in updateLayerStateFromFE()
685 : LayerFE::StateSubset::Content); in updateLayerStateFromFE()
1076 std::vector<LayerFE::LayerSettings> clientCompositionLayers = in composeSurfaces()
1112 [](LayerFE::LayerSettings& settings) -> renderengine::LayerSettings* { in composeSurfaces()
[all …]
DCompositionEngine.cpp116 std::unordered_map<compositionengine::LayerFE*, compositionengine::LayerFECompositionState*> in updateCursorAsync()
123 layer->getLayerFE().prepareCompositionState(LayerFE::StateSubset::Cursor); in updateCursorAsync()
DDisplay.cpp160 const sp<compositionengine::LayerFE>& layerFE) const { in createOutputLayer()
194 compositionengine::LayerFE* layerFE = &outputLayer->getLayerFE(); in setReleasedLayers()
198 [layerFE](sp<compositionengine::LayerFE> layerWithQueuedFrames) { in setReleasedLayers()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFE.h46 class LayerFE : public virtual RefBase {
173 size_t operator()(const sp<LayerFE>& p) const { return std::hash<LayerFE*>()(p.get()); } in operator()
176 using LayerFESet = std::unordered_set<sp<LayerFE>, LayerFESpHash>;
178 static inline bool operator==(const LayerFE::ClientCompositionTargetSettings& lhs,
179 const LayerFE::ClientCompositionTargetSettings& rhs) {
189 static inline bool operator==(const LayerFE::LayerSettings& lhs,
190 const LayerFE::LayerSettings& rhs) {
197 static inline void PrintTo(const LayerFE::ClientCompositionTargetSettings& settings, in PrintTo()
217 static inline void PrintTo(const LayerFE::LayerSettings& settings, ::std::ostream* os) { in PrintTo()
DOutput.h47 class LayerFE; variable
63 using ReleasedLayers = std::vector<wp<LayerFE>>;
64 using UniqueFELayerStateMap = std::unordered_map<LayerFE*, LayerFECompositionState*>;
234 virtual bool belongsInOutput(const sp<LayerFE>&) const = 0;
238 virtual OutputLayer* getOutputLayerForLayer(const sp<LayerFE>&) const = 0;
244 virtual OutputLayer* injectOutputLayerForTest(const sp<LayerFE>&) = 0;
274 virtual void ensureOutputLayerIfVisible(sp<LayerFE>&, CoverageState&) = 0;
293 virtual std::vector<LayerFE::LayerSettings> generateClientCompositionRequests(
297 std::vector<LayerFE::LayerSettings>& clientCompositionLayers) = 0;
DOutputLayer.h68 virtual LayerFE& getLayerFE() const = 0;
128 virtual std::vector<LayerFE::LayerSettings> getOverrideCompositionList() const = 0;
DCompositionRefreshArgs.h32 using Layers = std::vector<sp<compositionengine::LayerFE>>;
/frameworks/native/services/surfaceflinger/CompositionEngine/mock/
DLayerFE.cpp23 LayerFE::LayerFE() = default;
24 LayerFE::~LayerFE() = default;
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DClientCompositionRequestCache.h45 const std::vector<LayerFE::LayerSettings>& layerSettings) const;
47 const std::vector<LayerFE::LayerSettings>& layerSettings);
54 std::vector<LayerFE::LayerSettings> layerSettings;
56 const std::vector<LayerFE::LayerSettings>& _layerSettings);
58 const std::vector<LayerFE::LayerSettings>& _layerSettings) const;
DOutputLayer.h57 std::vector<LayerFE::LayerSettings> getOverrideCompositionList() const override;
94 sp<LayerFE> layerFE) { in createOutputLayerTemplated()
105 using LayerFE = in createOutputLayerTemplated() local
110 OutputLayer(const Output& output, const sp<LayerFE>& layerFE) in createOutputLayerTemplated()
117 LayerFE& getLayerFE() const override { return *mLayerFE; } in createOutputLayerTemplated()
125 const sp<LayerFE> mLayerFE; in createOutputLayerTemplated()
133 const sp<LayerFE>&);
DOutput.h68 bool belongsInOutput(const sp<LayerFE>&) const override;
70 compositionengine::OutputLayer* getOutputLayerForLayer(const sp<LayerFE>&) const override;
80 void ensureOutputLayerIfVisible(sp<compositionengine::LayerFE>&,
106 std::unique_ptr<compositionengine::OutputLayer> createOutputLayer(const sp<LayerFE>&) const;
108 const sp<compositionengine::LayerFE>&) const;
112 std::vector<LayerFE::LayerSettings> generateClientCompositionRequests(
115 void appendRegionFlashRequests(const Region&, std::vector<LayerFE::LayerSettings>&) override;
121 const sp<LayerFE>&) = 0;
122 virtual compositionengine::OutputLayer* injectOutputLayerForTest(const sp<LayerFE>&) = 0;
192 const sp<LayerFE>& layerFE) { in createOutputTemplated()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DPredictorTest.cpp46 void setupMocksForLayer(mock::OutputLayer& layer, mock::LayerFE& layerFE, in setupMocksForLayer()
72 mock::LayerFE layerFEOne; in TEST_F()
80 mock::LayerFE layerFETwo; in TEST_F()
88 mock::LayerFE layerFEThree; in TEST_F()
103 mock::LayerFE layerFEOne; in TEST_F()
112 mock::LayerFE layerFETwo; in TEST_F()
127 mock::LayerFE layerFEOne; in TEST_F()
137 mock::LayerFE layerFETwo; in TEST_F()
158 mock::LayerFE layerFEOne; in TEST_F()
168 mock::LayerFE layerFETwo; in TEST_F()
[all …]
DCachedSetTest.cpp78 sp<mock::LayerFE> layerFE;
102 testLayer->layerFE = sp<mock::LayerFE>::make(); in SetUp()
330 sp<mock::LayerFE> layerFE1 = mTestLayers[1]->layerFE; in TEST_F()
332 sp<mock::LayerFE> layerFE2 = mTestLayers[2]->layerFE; in TEST_F()
337 std::vector<compositionengine::LayerFE::LayerSettings> clientCompList1; in TEST_F()
341 std::vector<compositionengine::LayerFE::LayerSettings> clientCompList2; in TEST_F()
382 sp<mock::LayerFE> layerFE1 = mTestLayers[1]->layerFE; in TEST_F()
384 sp<mock::LayerFE> layerFE2 = mTestLayers[2]->layerFE; in TEST_F()
389 std::vector<compositionengine::LayerFE::LayerSettings> clientCompList1; in TEST_F()
393 std::vector<compositionengine::LayerFE::LayerSettings> clientCompList2; in TEST_F()
[all …]
DLayerStateTest.cpp79 void setupMocksForLayer(mock::OutputLayer& layer, mock::LayerFE& layerFE, in setupMocksForLayer()
106 mock::LayerFE mLayerFE;
129 mock::LayerFE newLayerFE; in TEST_F()
153 mock::LayerFE newLayerFE; in TEST_F()
168 mock::LayerFE newLayerFE; in TEST_F()
198 mock::LayerFE newLayerFE; in TEST_F()
213 mock::LayerFE newLayerFE; in TEST_F()
245 mock::LayerFE newLayerFE; in TEST_F()
263 mock::LayerFE newLayerFE; in TEST_F()
312 mock::LayerFE newLayerFE; in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputTest.cpp83 compositionengine::OutputLayer*(std::optional<size_t>, const sp<LayerFE>&));
88 MOCK_METHOD1(injectOutputLayerForTest, compositionengine::OutputLayer*(const sp<LayerFE>&));
106 sp<StrictMock<mock::LayerFE>> layerFE = new StrictMock<mock::LayerFE>();
123 sp<StrictMock<mock::LayerFE>> layerFE = new StrictMock<mock::LayerFE>();
628 sp<LayerFE> layerFE(layer.layerFE); in TEST_F()
637 sp<LayerFE> layerFE(layer.layerFE); in TEST_F()
727 sp<StrictMock<mock::LayerFE>> layer1FE{new StrictMock<mock::LayerFE>()}; in TEST_F()
728 sp<StrictMock<mock::LayerFE>> layer2FE{new StrictMock<mock::LayerFE>()}; in TEST_F()
729 sp<StrictMock<mock::LayerFE>> layer3FE{new StrictMock<mock::LayerFE>()}; in TEST_F()
762 EXPECT_CALL(*layer1.layerFE.get(), prepareCompositionState(LayerFE::StateSubset::Content)); in TEST_F()
[all …]
DCompositionEngineTest.cpp136 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make();
178 EXPECT_CALL(*mOutput2Layer1.layerFE, prepareCompositionState(LayerFE::StateSubset::Cursor)); in TEST_F()
185 EXPECT_CALL(*mOutput3Layer1.layerFE, prepareCompositionState(LayerFE::StateSubset::Cursor)); in TEST_F()
192 EXPECT_CALL(*mOutput3Layer2.layerFE, prepareCompositionState(LayerFE::StateSubset::Cursor)); in TEST_F()
206 sp<StrictMock<mock::LayerFE>> mLayer1FE{new StrictMock<mock::LayerFE>()};
207 sp<StrictMock<mock::LayerFE>> mLayer2FE{new StrictMock<mock::LayerFE>()};
208 sp<StrictMock<mock::LayerFE>> mLayer3FE{new StrictMock<mock::LayerFE>()};
DDisplayTest.cpp72 sp<mock::LayerFE> layerFE = new StrictMock<mock::LayerFE>();
83 sp<mock::LayerFE> layerFE = new StrictMock<mock::LayerFE>();
115 compositionengine::OutputLayer*(std::optional<size_t>, const sp<LayerFE>&));
119 MOCK_METHOD1(injectOutputLayerForTest, compositionengine::OutputLayer*(const sp<LayerFE>&));
488 sp<mock::LayerFE> layerFE = new StrictMock<mock::LayerFE>(); in TEST_F()
511 sp<mock::LayerFE> layerXLayerFE = new StrictMock<mock::LayerFE>(); in TEST_F()
529 sp<mock::LayerFE> layerXLayerFE = new StrictMock<mock::LayerFE>(); in TEST_F()
545 sp<mock::LayerFE> unknownLayer = new StrictMock<mock::LayerFE>(); in TEST_F()
/frameworks/native/services/surfaceflinger/
DEffectLayer.cpp50 std::vector<compositionengine::LayerFE::LayerSettings> EffectLayer::prepareClientCompositionList( in prepareClientCompositionList()
51 compositionengine::LayerFE::ClientCompositionTargetSettings& targetSettings) { in prepareClientCompositionList()
52 std::vector<compositionengine::LayerFE::LayerSettings> results; in prepareClientCompositionList()
53 std::optional<compositionengine::LayerFE::LayerSettings> layerSettings = in prepareClientCompositionList()
115 sp<compositionengine::LayerFE> EffectLayer::getCompositionEngineLayerFE() const { in getCompositionEngineLayerFE()
DEffectLayer.h35 sp<compositionengine::LayerFE> getCompositionEngineLayerFE() const override;
55 std::vector<compositionengine::LayerFE::LayerSettings> prepareClientCompositionList(
56 compositionengine::LayerFE::ClientCompositionTargetSettings& targetSettings) override;
DBufferLayer.h55 sp<compositionengine::LayerFE> getCompositionEngineLayerFE() const override;
145 std::optional<compositionengine::LayerFE::LayerSettings> prepareClientComposition(
146 compositionengine::LayerFE::ClientCompositionTargetSettings&) override;
DLayer.h103 class Layer : public virtual RefBase, compositionengine::LayerFE {
447 virtual sp<compositionengine::LayerFE> getCompositionEngineLayerFE() const;
624 void prepareCompositionState(compositionengine::LayerFE::StateSubset subset) override;
625 std::vector<compositionengine::LayerFE::LayerSettings> prepareClientCompositionList(
626 compositionengine::LayerFE::ClientCompositionTargetSettings&) override;
905 virtual std::optional<compositionengine::LayerFE::LayerSettings> prepareClientComposition(
906 compositionengine::LayerFE::ClientCompositionTargetSettings&);
916 sp<compositionengine::LayerFE> asLayerFE() const;
930 void prepareClearClientComposition(LayerFE::LayerSettings&, bool blackout) const;
931 void prepareShadowClientComposition(LayerFE::LayerSettings& caster, const Rect& layerStackRect);

12