KWin
Loading...
Searching...
No Matches
screencastdmabuftexture.h
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
7#pragma once
8
9#include <memory>
10
11namespace KWin
12{
13class GLFramebuffer;
14class GLTexture;
15class GraphicsBuffer;
16
18{
19public:
20 explicit ScreenCastDmaBufTexture(std::shared_ptr<GLTexture> texture, GraphicsBuffer *buffer);
22
23 GraphicsBuffer *buffer() const;
24 GLTexture *texture() const;
26
27protected:
28 std::shared_ptr<GLTexture> m_texture;
29 std::unique_ptr<GLFramebuffer> m_framebuffer;
31};
32
33}
OpenGL framebuffer object.
std::unique_ptr< GLFramebuffer > m_framebuffer
std::shared_ptr< GLTexture > m_texture
ScreenCastDmaBufTexture(std::shared_ptr< GLTexture > texture, GraphicsBuffer *buffer)