Searched refs:hwcLayer (Results 1 – 7 of 7) sorted by relevance
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 60 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 …]
|
D | Display.cpp | 190 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 …]
|
D | OutputLayerCompositionState.cpp | 36 if (hwc.hwcLayer == nullptr) { in dumpHwc() 39 dumpHex(out, "layer", hwc.hwcLayer->getId()); in dumpHwc()
|
D | Output.cpp | 1061 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/ |
D | OutputLayerCompositionState.h | 91 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/ |
D | OutputLayerTest.cpp | 114 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()
|
D | DisplayTest.cpp | 527 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()
|