• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:hwcLayer

66 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()
419 writeSolidColorStateToHWC(hwcLayer.get(), *outputIndependentState); in writeStateToHWC()
426 void OutputLayer::writeOutputDependentGeometryStateToHWC(HWC2::Layer* hwcLayer, in writeOutputDependentGeometryStateToHWC() argument
447 if (auto error = hwcLayer->setDisplayFrame(displayFrame); error != hal::Error::NONE) { in writeOutputDependentGeometryStateToHWC()
453 if (auto error = hwcLayer->setSourceCrop(sourceCrop); error != hal::Error::NONE) { in writeOutputDependentGeometryStateToHWC()
460 if (auto error = hwcLayer->setZOrder(z); error != hal::Error::NONE) { in writeOutputDependentGeometryStateToHWC()
470 if (auto error = hwcLayer->setTransform(static_cast<hal::Transform>(bufferTransform)); in writeOutputDependentGeometryStateToHWC()
479 HWC2::Layer* hwcLayer, const LayerFECompositionState& outputIndependentState, in writeOutputIndependentGeometryStateToHWC() argument
487 if (auto error = hwcLayer->setBlendMode(blendMode); error != hal::Error::NONE) { in writeOutputIndependentGeometryStateToHWC()
497 if (auto error = hwcLayer->setPlaneAlpha(alpha); error != hal::Error::NONE) { in writeOutputIndependentGeometryStateToHWC()
503 if (auto error = hwcLayer->setLayerGenericMetadata(name, entry.mandatory, entry.value); in writeOutputIndependentGeometryStateToHWC()
511 void OutputLayer::writeOutputDependentPerFrameStateToHWC(HWC2::Layer* hwcLayer) { in writeOutputDependentPerFrameStateToHWC() argument
519 if (auto error = hwcLayer->setVisibleRegion(visibleRegion); error != hal::Error::NONE) { in writeOutputDependentPerFrameStateToHWC()
526 hwcLayer->setBlockingRegion(outputDependentState.outputSpaceBlockingRegionHint); in writeOutputDependentPerFrameStateToHWC()
537 if (auto error = hwcLayer->setDataspace(dataspace); error != hal::Error::NONE) { in writeOutputDependentPerFrameStateToHWC()
555 if (auto error = hwcLayer->setBrightness(dimmingRatio); error != hal::Error::NONE) { in writeOutputDependentPerFrameStateToHWC()
562 HWC2::Layer* hwcLayer, const LayerFECompositionState& outputIndependentState, in writeOutputIndependentPerFrameStateToHWC() argument
564 switch (auto error = hwcLayer->setColorTransform(outputIndependentState.colorTransform)) { in writeOutputIndependentPerFrameStateToHWC()
580 if (auto error = hwcLayer->setSurfaceDamage(surfaceDamage); error != hal::Error::NONE) { in writeOutputIndependentPerFrameStateToHWC()
592 writeSidebandStateToHWC(hwcLayer, outputIndependentState); in writeOutputIndependentPerFrameStateToHWC()
598 writeBufferStateToHWC(hwcLayer, outputIndependentState, skipLayer); in writeOutputIndependentPerFrameStateToHWC()
607 void OutputLayer::writeSolidColorStateToHWC(HWC2::Layer* hwcLayer, in writeSolidColorStateToHWC() argument
614 if (auto error = hwcLayer->setColor(color); error != hal::Error::NONE) { in writeSolidColorStateToHWC()
620 void OutputLayer::writeSidebandStateToHWC(HWC2::Layer* hwcLayer, in writeSidebandStateToHWC() argument
622 if (auto error = hwcLayer->setSidebandStream(outputIndependentState.sidebandStream->handle()); in writeSidebandStateToHWC()
657 state.hwc->hwcLayer->setBufferSlotsToClear(slotsToClear, state.hwc->activeBufferSlot); in uncacheBuffers()
664 void OutputLayer::writeBufferStateToHWC(HWC2::Layer* hwcLayer, in writeBufferStateToHWC() argument
672 if (auto error = hwcLayer->setPerFrameMetadata(supportedPerFrameMetadata, in writeBufferStateToHWC()
705 if (auto error = hwcLayer->setBuffer(hwcSlotAndBuffer.slot, hwcSlotAndBuffer.buffer, hwcFence); in writeBufferStateToHWC()
713 void OutputLayer::writeCompositionTypeToHWC(HWC2::Layer* hwcLayer, in writeCompositionTypeToHWC() argument
730 if (auto error = hwcLayer->setCompositionType(requestedCompositionType); in writeCompositionTypeToHWC()
741 auto hwcLayer = getHwcLayer(); in writeCursorPositionToHWC() local
742 if (!hwcLayer) { in writeCursorPositionToHWC()
757 if (auto error = hwcLayer->setCursorPosition(position.left, position.top); in writeCursorPositionToHWC()
767 return state.hwc ? state.hwc->hwcLayer.get() : nullptr; in getHwcLayer()