Changeset View
Changeset View
Standalone View
Standalone View
plugins/scenes/opengl/scene_opengl.cpp
Show First 20 Lines • Show All 737 Lines • ▼ Show 20 Line(s) | 731 | if (m_currentFence) { | |||
---|---|---|---|---|---|
738 | m_currentFence = nullptr; | 738 | m_currentFence = nullptr; | ||
739 | } | 739 | } | ||
740 | 740 | | |||
741 | // do cleanup | 741 | // do cleanup | ||
742 | clearStackingOrder(); | 742 | clearStackingOrder(); | ||
743 | return m_backend->renderTime(); | 743 | return m_backend->renderTime(); | ||
744 | } | 744 | } | ||
745 | 745 | | |||
746 | QVector<uint32_t> SceneOpenGL::supportedDrmFormats() | ||||
747 | { | ||||
748 | return m_backend->supportedDrmFormats(); | ||||
749 | } | ||||
750 | | ||||
751 | QVector<uint64_t> SceneOpenGL::supportedDrmModifiers(uint32_t format) | ||||
752 | { | ||||
753 | return m_backend->supportedDrmModifiers(format); | ||||
754 | } | ||||
755 | | ||||
756 | KWayland::Server::LinuxDmabuf::Buffer *SceneOpenGL::importDmabufBuffer(const QVector<KWayland::Server::LinuxDmabuf::Plane> &planes, | ||||
757 | uint32_t format, | ||||
758 | const QSize &size, | ||||
759 | KWayland::Server::LinuxDmabuf::Flags flags) | ||||
760 | { | ||||
761 | return m_backend->importDmabufBuffer(planes, format, size, flags); | ||||
762 | } | ||||
763 | | ||||
746 | QMatrix4x4 SceneOpenGL::transformation(int mask, const ScreenPaintData &data) const | 764 | QMatrix4x4 SceneOpenGL::transformation(int mask, const ScreenPaintData &data) const | ||
747 | { | 765 | { | ||
748 | QMatrix4x4 matrix; | 766 | QMatrix4x4 matrix; | ||
749 | 767 | | |||
750 | if (!(mask & PAINT_SCREEN_TRANSFORMED)) | 768 | if (!(mask & PAINT_SCREEN_TRANSFORMED)) | ||
751 | return matrix; | 769 | return matrix; | ||
752 | 770 | | |||
753 | matrix.translate(data.translation()); | 771 | matrix.translate(data.translation()); | ||
▲ Show 20 Lines • Show All 1821 Lines • Show Last 20 Lines |