KWin
Loading...
Searching...
No Matches
screencastdmabuftexture.cpp
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
9#include "opengl/glutils.h"
10
11namespace KWin
12{
13
14ScreenCastDmaBufTexture::ScreenCastDmaBufTexture(std::shared_ptr<GLTexture> texture, GraphicsBuffer *buffer)
15 : m_texture(texture)
16 , m_framebuffer(std::make_unique<GLFramebuffer>(texture.get()))
17 , m_buffer(buffer)
18{
19}
26
31
36
41
42} // namespace KWin
OpenGL framebuffer object.
std::unique_ptr< GLFramebuffer > m_framebuffer
std::shared_ptr< GLTexture > m_texture
ScreenCastDmaBufTexture(std::shared_ptr< GLTexture > texture, GraphicsBuffer *buffer)