Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/common/eglonxbackend.h
Show All 14 Lines | |||||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_EGL_ON_X_BACKEND_H | 20 | #ifndef KWIN_EGL_ON_X_BACKEND_H | ||
21 | #define KWIN_EGL_ON_X_BACKEND_H | 21 | #define KWIN_EGL_ON_X_BACKEND_H | ||
22 | #include "abstract_egl_backend.h" | 22 | #include "abstract_egl_backend.h" | ||
23 | #include "swap_profiler.h" | | |||
24 | 23 | | |||
25 | #include <xcb/xcb.h> | 24 | #include <xcb/xcb.h> | ||
26 | 25 | | |||
27 | namespace KWin | 26 | namespace KWin | ||
28 | { | 27 | { | ||
29 | 28 | | |||
30 | /** | 29 | /** | ||
31 | * @brief OpenGL Backend using Egl windowing system over an X overlay window. | 30 | * @brief OpenGL Backend using Egl windowing system over an X overlay window. | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 67 | private: | |||
77 | bool m_usesOverlayWindow; | 76 | bool m_usesOverlayWindow; | ||
78 | xcb_connection_t *m_connection; | 77 | xcb_connection_t *m_connection; | ||
79 | Display *m_x11Display; | 78 | Display *m_x11Display; | ||
80 | xcb_window_t m_rootWindow; | 79 | xcb_window_t m_rootWindow; | ||
81 | int m_x11ScreenNumber; | 80 | int m_x11ScreenNumber; | ||
82 | xcb_window_t m_renderingWindow = XCB_WINDOW_NONE; | 81 | xcb_window_t m_renderingWindow = XCB_WINDOW_NONE; | ||
83 | bool m_havePlatformBase = false; | 82 | bool m_havePlatformBase = false; | ||
84 | bool m_x11TextureFromPixmapSupported = true; | 83 | bool m_x11TextureFromPixmapSupported = true; | ||
85 | SwapProfiler m_swapProfiler; | | |||
86 | friend class EglTexture; | 84 | friend class EglTexture; | ||
87 | }; | 85 | }; | ||
88 | 86 | | |||
89 | /** | 87 | /** | ||
90 | * @brief Texture using an EGLImageKHR. | 88 | * @brief Texture using an EGLImageKHR. | ||
91 | */ | 89 | */ | ||
92 | class EglTexture : public AbstractEglTexture | 90 | class EglTexture : public AbstractEglTexture | ||
93 | { | 91 | { | ||
Show All 15 Lines |