Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/qpainter/scene_qpainter.cpp
Show All 26 Lines | |||||
27 | #include "main.h" | 27 | #include "main.h" | ||
28 | #include "screens.h" | 28 | #include "screens.h" | ||
29 | #include "toplevel.h" | 29 | #include "toplevel.h" | ||
30 | #include "platform.h" | 30 | #include "platform.h" | ||
31 | #include "wayland_server.h" | 31 | #include "wayland_server.h" | ||
32 | 32 | | |||
33 | #include <kwineffectquickview.h> | 33 | #include <kwineffectquickview.h> | ||
34 | 34 | | |||
35 | #include <KWayland/Server/buffer_interface.h> | 35 | #include <KWaylandServer/buffer_interface.h> | ||
36 | #include <KWayland/Server/subcompositor_interface.h> | 36 | #include <KWaylandServer/subcompositor_interface.h> | ||
37 | #include <KWayland/Server/surface_interface.h> | 37 | #include <KWaylandServer/surface_interface.h> | ||
38 | #include "decorations/decoratedclient.h" | 38 | #include "decorations/decoratedclient.h" | ||
39 | // Qt | 39 | // Qt | ||
40 | #include <QDebug> | 40 | #include <QDebug> | ||
41 | #include <QPainter> | 41 | #include <QPainter> | ||
42 | #include <KDecoration2/Decoration> | 42 | #include <KDecoration2/Decoration> | ||
43 | 43 | | |||
44 | #include <cmath> | 44 | #include <cmath> | ||
45 | 45 | | |||
▲ Show 20 Lines • Show All 365 Lines • ▼ Show 20 Line(s) | |||||
411 | //**************************************** | 411 | //**************************************** | ||
412 | // QPainterWindowPixmap | 412 | // QPainterWindowPixmap | ||
413 | //**************************************** | 413 | //**************************************** | ||
414 | QPainterWindowPixmap::QPainterWindowPixmap(Scene::Window *window) | 414 | QPainterWindowPixmap::QPainterWindowPixmap(Scene::Window *window) | ||
415 | : WindowPixmap(window) | 415 | : WindowPixmap(window) | ||
416 | { | 416 | { | ||
417 | } | 417 | } | ||
418 | 418 | | |||
419 | QPainterWindowPixmap::QPainterWindowPixmap(const QPointer<KWayland::Server::SubSurfaceInterface> &subSurface, WindowPixmap *parent) | 419 | QPainterWindowPixmap::QPainterWindowPixmap(const QPointer<KWaylandServer::SubSurfaceInterface> &subSurface, WindowPixmap *parent) | ||
420 | : WindowPixmap(subSurface, parent) | 420 | : WindowPixmap(subSurface, parent) | ||
421 | { | 421 | { | ||
422 | } | 422 | } | ||
423 | 423 | | |||
424 | QPainterWindowPixmap::~QPainterWindowPixmap() | 424 | QPainterWindowPixmap::~QPainterWindowPixmap() | ||
425 | { | 425 | { | ||
426 | } | 426 | } | ||
427 | 427 | | |||
Show All 13 Lines | 429 | { | |||
441 | } | 441 | } | ||
442 | // performing deep copy, this could probably be improved | 442 | // performing deep copy, this could probably be improved | ||
443 | m_image = buffer()->data().copy(); | 443 | m_image = buffer()->data().copy(); | ||
444 | if (auto s = surface()) { | 444 | if (auto s = surface()) { | ||
445 | s->resetTrackedDamage(); | 445 | s->resetTrackedDamage(); | ||
446 | } | 446 | } | ||
447 | } | 447 | } | ||
448 | 448 | | |||
449 | WindowPixmap *QPainterWindowPixmap::createChild(const QPointer<KWayland::Server::SubSurfaceInterface> &subSurface) | 449 | WindowPixmap *QPainterWindowPixmap::createChild(const QPointer<KWaylandServer::SubSurfaceInterface> &subSurface) | ||
450 | { | 450 | { | ||
451 | return new QPainterWindowPixmap(subSurface, this); | 451 | return new QPainterWindowPixmap(subSurface, this); | ||
452 | } | 452 | } | ||
453 | 453 | | |||
454 | void QPainterWindowPixmap::updateBuffer() | 454 | void QPainterWindowPixmap::updateBuffer() | ||
455 | { | 455 | { | ||
456 | const auto oldBuffer = buffer(); | 456 | const auto oldBuffer = buffer(); | ||
457 | WindowPixmap::updateBuffer(); | 457 | WindowPixmap::updateBuffer(); | ||
▲ Show 20 Lines • Show All 463 Lines • Show Last 20 Lines |