File indexing completed on 2025-04-20 10:57:35

0001 /*
0002     KWin - the KDE window manager
0003     This file is part of the KDE project.
0004 
0005     SPDX-FileCopyrightText: 2022 Xaver Hugl <xaver.hugl@gmail.com>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 #include "drm_layer.h"
0010 #include "drm_pipeline.h"
0011 
0012 #include <QMatrix4x4>
0013 
0014 namespace KWin
0015 {
0016 
0017 DrmOutputLayer::~DrmOutputLayer() = default;
0018 
0019 QRegion DrmOutputLayer::currentDamage() const
0020 {
0021     return {};
0022 }
0023 
0024 std::shared_ptr<GLTexture> DrmOutputLayer::texture() const
0025 {
0026     return nullptr;
0027 }
0028 
0029 DrmPipelineLayer::DrmPipelineLayer(DrmPipeline *pipeline)
0030     : m_pipeline(pipeline)
0031 {
0032 }
0033 
0034 bool DrmPipelineLayer::hasDirectScanoutBuffer() const
0035 {
0036     return false;
0037 }
0038 
0039 DrmOverlayLayer::DrmOverlayLayer(DrmPipeline *pipeline)
0040     : DrmPipelineLayer(pipeline)
0041 {
0042 }
0043 
0044 void DrmOverlayLayer::setPosition(const QPoint &pos)
0045 {
0046     m_position = pos;
0047 }
0048 
0049 QPoint DrmOverlayLayer::position() const
0050 {
0051     return m_position;
0052 }
0053 
0054 void DrmOverlayLayer::setVisible(bool visible)
0055 {
0056     m_visible = visible;
0057 }
0058 
0059 bool DrmOverlayLayer::isVisible() const
0060 {
0061     return m_visible;
0062 }
0063 }