Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp60 void OutputLayer::setHwcLayer(std::shared_ptr<HWC2::Layer> hwcLayer) { in setHwcLayer() argument
62 if (hwcLayer) { in setHwcLayer()
63 state.hwc.emplace(std::move(hwcLayer)); in setHwcLayer()
322 auto& hwcLayer = (*state.hwc).hwcLayer; in writeStateToHWC() local
323 if (!hwcLayer) { in writeStateToHWC()
337 writeOutputDependentGeometryStateToHWC(hwcLayer.get(), requestedCompositionType); in writeStateToHWC()
338 writeOutputIndependentGeometryStateToHWC(hwcLayer.get(), *outputIndependentState); in writeStateToHWC()
341 writeOutputDependentPerFrameStateToHWC(hwcLayer.get()); in writeStateToHWC()
342 writeOutputIndependentPerFrameStateToHWC(hwcLayer.get(), *outputIndependentState); in writeStateToHWC()
344 writeCompositionTypeToHWC(hwcLayer.get(), requestedCompositionType); in writeStateToHWC()
[all …]
DDisplay.cpp190 auto hwcLayer = std::shared_ptr<HWC2::Layer>(hwc.createLayer(displayId), in createOutputLayer() local
194 ALOGE_IF(!hwcLayer, "Failed to create a HWC layer for a HWC supported display %s", in createOutputLayer()
196 result->setHwcLayer(std::move(hwcLayer)); in createOutputLayer()
295 auto hwcLayer = layer->getHwcLayer(); in applyChangedTypesToLayers() local
296 if (!hwcLayer) { in applyChangedTypesToLayers()
300 if (auto it = changedTypes.find(hwcLayer); it != changedTypes.end()) { in applyChangedTypesToLayers()
318 auto hwcLayer = layer->getHwcLayer(); in applyLayerRequestsToLayers() local
319 if (!hwcLayer) { in applyLayerRequestsToLayers()
323 if (auto it = layerRequests.find(hwcLayer); it != layerRequests.end()) { in applyLayerRequestsToLayers()
354 auto hwcLayer = layer->getHwcLayer(); in presentAndGetFrameFences() local
[all …]
DOutputLayerCompositionState.cpp36 if (hwc.hwcLayer == nullptr) { in dumpHwc()
39 dumpHex(out, "layer", hwc.hwcLayer->getId()); in dumpHwc()
DOutput.cpp1061 if (auto hwcLayer = layer->getHwcLayer()) { in postFramebuffer() local
1062 if (auto f = frame.layerFences.find(hwcLayer); f != frame.layerFences.end()) { in postFramebuffer()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputLayerCompositionState.h91 explicit Hwc(std::shared_ptr<HWC2::Layer> hwcLayer) : hwcLayer(hwcLayer) {} in Hwc()
94 std::shared_ptr<HWC2::Layer> hwcLayer; member
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp114 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F() local
116 mOutputLayer.setHwcLayer(hwcLayer); in TEST_F()
122 EXPECT_EQ(hwcLayer, hwcState.hwcLayer); in TEST_F()
1052 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F() local
1053 mOutputLayer.editState().hwc = impl::OutputLayerCompositionState::Hwc{hwcLayer}; in TEST_F()
1055 EXPECT_EQ(hwcLayer.get(), mOutputLayer.getHwcLayer()); in TEST_F()
DDisplayTest.cpp527 StrictMock<HWC2::mock::Layer> hwcLayer; in TEST_F() local
529 EXPECT_CALL(mHwComposer, createLayer(DEFAULT_DISPLAY_ID)).WillOnce(Return(&hwcLayer)); in TEST_F()
533 EXPECT_EQ(&hwcLayer, outputLayer->getHwcLayer()); in TEST_F()
535 EXPECT_CALL(mHwComposer, destroyLayer(DEFAULT_DISPLAY_ID, &hwcLayer)); in TEST_F()