Changeset View
Changeset View
Standalone View
Standalone View
platform.cpp
Show All 24 Lines | |||||
25 | #include "input.h" | 25 | #include "input.h" | ||
26 | #include <KCoreAddons> | 26 | #include <KCoreAddons> | ||
27 | #include "overlaywindow.h" | 27 | #include "overlaywindow.h" | ||
28 | #include "outline.h" | 28 | #include "outline.h" | ||
29 | #include "pointer_input.h" | 29 | #include "pointer_input.h" | ||
30 | #include "scene.h" | 30 | #include "scene.h" | ||
31 | #include "screenedge.h" | 31 | #include "screenedge.h" | ||
32 | #include "wayland_server.h" | 32 | #include "wayland_server.h" | ||
33 | #include "colorcorrection/nightcolor.h" | ||||
34 | | ||||
33 | #include <KWayland/Server/outputconfiguration_interface.h> | 35 | #include <KWayland/Server/outputconfiguration_interface.h> | ||
34 | 36 | | |||
35 | namespace KWin | 37 | namespace KWin | ||
36 | { | 38 | { | ||
37 | 39 | | |||
38 | Platform::Platform(QObject *parent) | 40 | Platform::Platform(QObject *parent) | ||
39 | : QObject(parent) | 41 | : QObject(parent) | ||
40 | , m_eglDisplay(EGL_NO_DISPLAY) | 42 | , m_eglDisplay(EGL_NO_DISPLAY) | ||
41 | { | 43 | { | ||
44 | m_nightColor = new ColorCorrect::Manager(this); | ||||
42 | } | 45 | } | ||
43 | 46 | | |||
44 | Platform::~Platform() | 47 | Platform::~Platform() | ||
45 | { | 48 | { | ||
46 | if (m_eglDisplay != EGL_NO_DISPLAY) { | 49 | if (m_eglDisplay != EGL_NO_DISPLAY) { | ||
47 | eglTerminate(m_eglDisplay); | 50 | eglTerminate(m_eglDisplay); | ||
48 | } | 51 | } | ||
49 | } | 52 | } | ||
▲ Show 20 Lines • Show All 431 Lines • Show Last 20 Lines |