Home
last modified time | relevance | path

Searched refs:hwcLayer (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp66 void OutputLayer::setHwcLayer(std::shared_ptr<HWC2::Layer> hwcLayer) { in setHwcLayer() argument
68 if (hwcLayer) { in setHwcLayer()
69 state.hwc.emplace(std::move(hwcLayer)); in setHwcLayer()
382 auto& hwcLayer = (*state.hwc).hwcLayer; in writeStateToHWC() local
383 if (!hwcLayer) { in writeStateToHWC()
406 writeOutputDependentGeometryStateToHWC(hwcLayer.get(), requestedCompositionType, z); in writeStateToHWC()
407 writeOutputIndependentGeometryStateToHWC(hwcLayer.get(), *outputIndependentState, in writeStateToHWC()
411 writeOutputDependentPerFrameStateToHWC(hwcLayer.get()); in writeStateToHWC()
412 writeOutputIndependentPerFrameStateToHWC(hwcLayer.get(), *outputIndependentState, in writeStateToHWC()
415 writeCompositionTypeToHWC(hwcLayer.get(), requestedCompositionType, isPeekingThrough, in writeStateToHWC()
[all …]
DDisplay.cpp163 auto hwcLayer = hwc.createLayer(*halDisplayId); in createOutputLayer() local
164 ALOGE_IF(!hwcLayer, "Failed to create a HWC layer for a HWC supported display %s", in createOutputLayer()
166 outputLayer->setHwcLayer(std::move(hwcLayer)); in createOutputLayer()
313 auto hwcLayer = layer->getHwcLayer(); in applyChangedTypesToLayers() local
314 if (!hwcLayer) { in applyChangedTypesToLayers()
318 if (auto it = changedTypes.find(hwcLayer); it != changedTypes.end()) { in applyChangedTypesToLayers()
337 auto hwcLayer = layer->getHwcLayer(); in applyLayerRequestsToLayers() local
338 if (!hwcLayer) { in applyLayerRequestsToLayers()
342 if (auto it = layerRequests.find(hwcLayer); it != layerRequests.end()) { in applyLayerRequestsToLayers()
399 auto hwcLayer = layer->getHwcLayer(); in presentFrame() local
[all …]
DOutputLayerCompositionState.cpp36 if (hwc.hwcLayer == nullptr) { in dumpHwc()
39 dumpHex(out, "layer", hwc.hwcLayer->getId()); in dumpHwc()
DOutput.cpp1598 if (auto hwcLayer = layer->getHwcLayer()) { in presentFrameAndReleaseLayers() local
1599 if (auto f = frame.layerFences.find(hwcLayer); f != frame.layerFences.end()) { in presentFrameAndReleaseLayers()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputLayerCompositionState.h132 explicit Hwc(std::shared_ptr<HWC2::Layer> hwcLayer) : hwcLayer(hwcLayer) {} in Hwc()
135 std::shared_ptr<HWC2::Layer> hwcLayer; member
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp142 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F() local
144 mOutputLayer.setHwcLayer(hwcLayer); in TEST_F()
150 EXPECT_EQ(hwcLayer, hwcState.hwcLayer); in TEST_F()
1499 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F() local
1500 mOutputLayer.editState().hwc = impl::OutputLayerCompositionState::Hwc{hwcLayer}; in TEST_F()
1502 EXPECT_EQ(hwcLayer.get(), mOutputLayer.getHwcLayer()); in TEST_F()
DDisplayTest.cpp492 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F() local
495 .WillOnce(Return(hwcLayer)); in TEST_F()
499 EXPECT_EQ(hwcLayer.get(), outputLayer->getHwcLayer()); in TEST_F()