Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/opengl/scene_opengl.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | #include "lanczosfilter.h" | 44 | #include "lanczosfilter.h" | ||
45 | #include "main.h" | 45 | #include "main.h" | ||
46 | #include "overlaywindow.h" | 46 | #include "overlaywindow.h" | ||
47 | #include "screens.h" | 47 | #include "screens.h" | ||
48 | #include "cursor.h" | 48 | #include "cursor.h" | ||
49 | #include "decorations/decoratedclient.h" | 49 | #include "decorations/decoratedclient.h" | ||
50 | #include <logging.h> | 50 | #include <logging.h> | ||
51 | 51 | | |||
52 | #include <KWayland/Server/buffer_interface.h> | 52 | #include <KWaylandServer/buffer_interface.h> | ||
53 | #include <KWayland/Server/subcompositor_interface.h> | 53 | #include <KWaylandServer/subcompositor_interface.h> | ||
54 | #include <KWayland/Server/surface_interface.h> | 54 | #include <KWaylandServer/surface_interface.h> | ||
55 | 55 | | |||
56 | #include <array> | 56 | #include <array> | ||
57 | #include <cmath> | 57 | #include <cmath> | ||
58 | #include <cstddef> | 58 | #include <cstddef> | ||
59 | #include <unistd.h> | 59 | #include <unistd.h> | ||
60 | 60 | | |||
61 | #include <QDBusConnection> | 61 | #include <QDBusConnection> | ||
62 | #include <QDBusConnectionInterface> | 62 | #include <QDBusConnectionInterface> | ||
▲ Show 20 Lines • Show All 1466 Lines • ▼ Show 20 Line(s) | |||||
1529 | 1529 | | |||
1530 | OpenGLWindowPixmap::OpenGLWindowPixmap(Scene::Window *window, SceneOpenGL* scene) | 1530 | OpenGLWindowPixmap::OpenGLWindowPixmap(Scene::Window *window, SceneOpenGL* scene) | ||
1531 | : WindowPixmap(window) | 1531 | : WindowPixmap(window) | ||
1532 | , m_texture(scene->createTexture()) | 1532 | , m_texture(scene->createTexture()) | ||
1533 | , m_scene(scene) | 1533 | , m_scene(scene) | ||
1534 | { | 1534 | { | ||
1535 | } | 1535 | } | ||
1536 | 1536 | | |||
1537 | OpenGLWindowPixmap::OpenGLWindowPixmap(const QPointer<KWayland::Server::SubSurfaceInterface> &subSurface, WindowPixmap *parent, SceneOpenGL *scene) | 1537 | OpenGLWindowPixmap::OpenGLWindowPixmap(const QPointer<KWaylandServer::SubSurfaceInterface> &subSurface, WindowPixmap *parent, SceneOpenGL *scene) | ||
1538 | : WindowPixmap(subSurface, parent) | 1538 | : WindowPixmap(subSurface, parent) | ||
1539 | , m_texture(scene->createTexture()) | 1539 | , m_texture(scene->createTexture()) | ||
1540 | , m_scene(scene) | 1540 | , m_scene(scene) | ||
1541 | { | 1541 | { | ||
1542 | } | 1542 | } | ||
1543 | 1543 | | |||
1544 | OpenGLWindowPixmap::~OpenGLWindowPixmap() | 1544 | OpenGLWindowPixmap::~OpenGLWindowPixmap() | ||
1545 | { | 1545 | { | ||
▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 1604 | if (success) { | |||
1605 | if (subSurface().isNull()) { | 1605 | if (subSurface().isNull()) { | ||
1606 | toplevel()->resetDamage(); | 1606 | toplevel()->resetDamage(); | ||
1607 | } | 1607 | } | ||
1608 | } else | 1608 | } else | ||
1609 | qCDebug(KWIN_OPENGL) << "Failed to bind window"; | 1609 | qCDebug(KWIN_OPENGL) << "Failed to bind window"; | ||
1610 | return success; | 1610 | return success; | ||
1611 | } | 1611 | } | ||
1612 | 1612 | | |||
1613 | WindowPixmap *OpenGLWindowPixmap::createChild(const QPointer<KWayland::Server::SubSurfaceInterface> &subSurface) | 1613 | WindowPixmap *OpenGLWindowPixmap::createChild(const QPointer<KWaylandServer::SubSurfaceInterface> &subSurface) | ||
1614 | { | 1614 | { | ||
1615 | return new OpenGLWindowPixmap(subSurface, this, m_scene); | 1615 | return new OpenGLWindowPixmap(subSurface, this, m_scene); | ||
1616 | } | 1616 | } | ||
1617 | 1617 | | |||
1618 | bool OpenGLWindowPixmap::isValid() const | 1618 | bool OpenGLWindowPixmap::isValid() const | ||
1619 | { | 1619 | { | ||
1620 | if (!m_texture->isNull()) { | 1620 | if (!m_texture->isNull()) { | ||
1621 | return true; | 1621 | return true; | ||
▲ Show 20 Lines • Show All 1101 Lines • Show Last 20 Lines |