You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
872 B
44 lines
872 B
/* |
|
KWin - the KDE window manager |
|
This file is part of the KDE project. |
|
|
|
SPDX-FileCopyrightText: 2022 Xaver Hugl <xaver.hugl@gmail.com> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
#include "drm_layer.h" |
|
#include "core/graphicsbuffer.h" |
|
#include "drm_buffer.h" |
|
#include "drm_output.h" |
|
#include "drm_pipeline.h" |
|
|
|
#include <QMatrix4x4> |
|
#include <drm_fourcc.h> |
|
|
|
namespace KWin |
|
{ |
|
|
|
DrmOutputLayer::DrmOutputLayer(Output *output) |
|
: OutputLayer(output) |
|
{ |
|
} |
|
|
|
DrmOutputLayer::~DrmOutputLayer() = default; |
|
|
|
std::shared_ptr<GLTexture> DrmOutputLayer::texture() const |
|
{ |
|
return nullptr; |
|
} |
|
|
|
DrmPipelineLayer::DrmPipelineLayer(DrmPipeline *pipeline, DrmPlane::TypeIndex type) |
|
: DrmOutputLayer(pipeline->output()) |
|
, m_pipeline(pipeline) |
|
, m_type(type) |
|
{ |
|
} |
|
|
|
const ColorPipeline &DrmPipelineLayer::colorPipeline() const |
|
{ |
|
return m_colorPipeline; |
|
} |
|
}
|
|
|