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.
28 lines
533 B
28 lines
533 B
/* |
|
SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org> |
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later |
|
*/ |
|
|
|
#include "dmabuftexture.h" |
|
|
|
#include "kwineglimagetexture.h" |
|
#include "kwinglutils.h" |
|
|
|
namespace KWin |
|
{ |
|
|
|
DmaBufTexture::DmaBufTexture(KWin::GLTexture *texture) |
|
: m_texture(texture) |
|
, m_framebuffer(new KWin::GLRenderTarget(*m_texture)) |
|
{ |
|
} |
|
|
|
DmaBufTexture::~DmaBufTexture() = default; |
|
|
|
KWin::GLRenderTarget *DmaBufTexture::framebuffer() const |
|
{ |
|
return m_framebuffer.data(); |
|
} |
|
|
|
} // namespace KWin
|
|
|