backends/wayland: Minor code cleanup
This commit is contained in:
parent
103d8d8abe
commit
9f7517a55c
2 changed files with 4 additions and 22 deletions
|
@ -10,32 +10,21 @@
|
|||
|
||||
#include "wayland_egl_backend.h"
|
||||
#include "core/gbmgraphicsbufferallocator.h"
|
||||
#include "libkwineffects/kwinglutils.h"
|
||||
#include "platformsupport/scenes/opengl/basiceglsurfacetexture_internal.h"
|
||||
#include "platformsupport/scenes/opengl/basiceglsurfacetexture_wayland.h"
|
||||
|
||||
#include "wayland_backend.h"
|
||||
#include "wayland_display.h"
|
||||
#include "wayland_logging.h"
|
||||
#include "wayland_output.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
// kwin libs
|
||||
#include "libkwineffects/kwinglplatform.h"
|
||||
#include "libkwineffects/kwinglutils.h"
|
||||
|
||||
// KDE
|
||||
#include <KWayland/Client/shm_pool.h>
|
||||
#include <KWayland/Client/surface.h>
|
||||
|
||||
// Qt
|
||||
#include <QFile>
|
||||
#include <QOpenGLContext>
|
||||
|
||||
#include <cmath>
|
||||
#include <drm_fourcc.h>
|
||||
#include <fcntl.h>
|
||||
#include <gbm.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "wayland-linux-dmabuf-unstable-v1-client-protocol.h"
|
||||
|
||||
|
@ -324,8 +313,7 @@ bool WaylandEglBackend::initializeEgl()
|
|||
// Use eglGetPlatformDisplayEXT() to get the display pointer
|
||||
// if the implementation supports it.
|
||||
if (!display) {
|
||||
m_havePlatformBase = hasClientExtension(QByteArrayLiteral("EGL_EXT_platform_base"));
|
||||
if (m_havePlatformBase) {
|
||||
if (hasClientExtension(QByteArrayLiteral("EGL_EXT_platform_base"))) {
|
||||
// Make sure that the wayland platform is supported
|
||||
if (!hasClientExtension(QByteArrayLiteral("EGL_EXT_platform_wayland"))) {
|
||||
return false;
|
||||
|
|
|
@ -13,14 +13,9 @@
|
|||
#include "platformsupport/scenes/opengl/abstract_egl_backend.h"
|
||||
#include "utils/damagejournal.h"
|
||||
|
||||
#include <KWayland/Client/buffer.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
class QTemporaryFile;
|
||||
struct wl_buffer;
|
||||
struct wl_shm;
|
||||
struct gbm_bo;
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
|
@ -160,7 +155,6 @@ private:
|
|||
|
||||
WaylandBackend *m_backend;
|
||||
std::map<Output *, Layers> m_outputs;
|
||||
bool m_havePlatformBase;
|
||||
};
|
||||
|
||||
} // namespace Wayland
|
||||
|
|
Loading…
Reference in a new issue