Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputLayerCompositionState.h68 explicit Hwc(std::shared_ptr<HWC2::Layer> hwcLayer) : hwcLayer(hwcLayer) {} in Hwc()
71 std::shared_ptr<HWC2::Layer> hwcLayer; member
/frameworks/native/services/surfaceflinger/
DColorLayer.cpp105 auto& hwcLayer = (*outputLayer->getState().hwc).hwcLayer; in setPerFrameData() local
107 auto error = hwcLayer->setVisibleRegion(visible); in setPerFrameData()
120 error = hwcLayer->setDataspace(dataspace); in setPerFrameData()
130 error = hwcLayer->setColor({static_cast<uint8_t>(std::round(255.0f * color.r)), in setPerFrameData()
142 error = hwcLayer->setTransform(HWC2::Transform::None); in setPerFrameData()
149 error = hwcLayer->setColorTransform(getColorTransform()); in setPerFrameData()
156 error = hwcLayer->setSurfaceDamage(surfaceDamageRegion); in setPerFrameData()
DBufferLayer.cpp269 auto& hwcLayer = (*outputLayer->getState().hwc).hwcLayer; in setPerFrameData() local
270 auto error = hwcLayer->setVisibleRegion(visible); in setPerFrameData()
280 error = hwcLayer->setSurfaceDamage(surfaceDamageRegion); in setPerFrameData()
292 error = hwcLayer->setSidebandStream(layerCompositionState.sidebandStream->handle()); in setPerFrameData()
314 error = hwcLayer->setDataspace(dataspace); in setPerFrameData()
321 error = hwcLayer->setPerFrameMetadata(supportedPerFrameMetadata, metadata); in setPerFrameData()
327 error = hwcLayer->setColorTransform(getColorTransform()); in setPerFrameData()
DBufferQueueLayer.cpp404 auto& hwcLayer = (*outputLayer->getState().hwc).hwcLayer; in setHwcLayerBuffer() local
416 auto error = hwcLayer->setBuffer(hwcSlot, hwcBuffer, acquireFence); in setHwcLayerBuffer()
DBufferStateLayer.cpp598 auto& hwcLayer = hwcInfo.hwcLayer; in setHwcLayerBuffer() local
607 auto error = hwcLayer->setBuffer(hwcSlot, buffer, s.acquireFence); in setHwcLayerBuffer()
DLayer.cpp248 return outputLayer->getState().hwc && (*outputLayer->getState().hwc).hwcLayer != nullptr; in hasHwcLayer()
256 return (*outputLayer->getState().hwc).hwcLayer.get(); in getHwcLayer()
504 (*outputLayer->getState().hwc).hwcLayer->setCursorPosition(position.left, position.top); in updateCursorPosition()
573 ALOGV("setCompositionType(%" PRIx64 ", %s, %d)", ((*compositionState.hwc).hwcLayer)->getId(), in setCompositionType()
580 .hwcLayer->setCompositionType(static_cast<HWC2::Composition>(type)); in setCompositionType()
DSurfaceFlinger.cpp2457 getHwComposer().getLayerReleaseFence(*displayId, hwcState.hwcLayer.get()); in postFramebuffer()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp312 auto& hwcLayer = (*mState.hwc).hwcLayer; in writeStateToHWC() local
313 if (!hwcLayer) { in writeStateToHWC()
322 if (auto error = hwcLayer->setDisplayFrame(mState.displayFrame); in writeStateToHWC()
330 if (auto error = hwcLayer->setSourceCrop(mState.sourceCrop); error != HWC2::Error::None) { in writeStateToHWC()
338 if (auto error = hwcLayer->setZOrder(mState.z); error != HWC2::Error::None) { in writeStateToHWC()
344 hwcLayer->setTransform(static_cast<HWC2::Transform>(mState.bufferTransform)); in writeStateToHWC()
355 if (auto error = hwcLayer->setBlendMode( in writeStateToHWC()
363 if (auto error = hwcLayer->setPlaneAlpha(outputIndependentState.alpha); in writeStateToHWC()
371 hwcLayer->setInfo(outputIndependentState.type, outputIndependentState.appId); in writeStateToHWC()
DOutputLayerCompositionState.cpp29 if (hwc.hwcLayer == nullptr) { in dumpHwc()
32 dumpHex(out, "layer", hwc.hwcLayer->getId()); in dumpHwc()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp91 StrictMock<HWC2::mock::Layer> hwcLayer; in TEST_F() local
94 EXPECT_CALL(hwc, createLayer(DEFAULT_DISPLAY_ID)).WillOnce(Return(&hwcLayer)); in TEST_F()
102 EXPECT_EQ(&hwcLayer, hwcState.hwcLayer.get()); in TEST_F()
104 EXPECT_CALL(hwc, destroyLayer(DEFAULT_DISPLAY_ID, &hwcLayer)); in TEST_F()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.cpp469 auto hwcLayer = (*state.hwc).hwcLayer; in prepare() local
471 if (auto it = changedTypes.find(hwcLayer.get()); it != changedTypes.end()) { in prepare()
494 if (auto it = layerRequests.find(hwcLayer.get()); it != layerRequests.end()) { in prepare()