Changeset View
Changeset View
Standalone View
Standalone View
plugins/qpa/window.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 61 | public: | |||
---|---|---|---|---|---|
69 | KWayland::Client::Surface *surface() const { | 69 | KWayland::Client::Surface *surface() const { | ||
70 | return m_surface; | 70 | return m_surface; | ||
71 | } | 71 | } | ||
72 | EGLSurface eglSurface() const { | 72 | EGLSurface eglSurface() const { | ||
73 | return m_eglSurface; | 73 | return m_eglSurface; | ||
74 | } | 74 | } | ||
75 | void createEglSurface(EGLDisplay dpy, EGLConfig config); | 75 | void createEglSurface(EGLDisplay dpy, EGLConfig config); | ||
76 | 76 | | |||
77 | int scale() const; | ||||
78 | qreal devicePixelRatio() const override; | ||||
79 | | ||||
77 | void bindContentFBO(); | 80 | void bindContentFBO(); | ||
78 | const QSharedPointer<QOpenGLFramebufferObject> &contentFBO() const { | 81 | const QSharedPointer<QOpenGLFramebufferObject> &contentFBO() const { | ||
79 | return m_contentFBO; | 82 | return m_contentFBO; | ||
80 | } | 83 | } | ||
81 | QSharedPointer<QOpenGLFramebufferObject> swapFBO(); | 84 | QSharedPointer<QOpenGLFramebufferObject> swapFBO(); | ||
82 | ShellClient *shellClient(); | 85 | ShellClient *shellClient(); | ||
83 | 86 | | |||
84 | private: | 87 | private: | ||
85 | void unmap(); | 88 | void unmap(); | ||
86 | void createFBO(); | 89 | void createFBO(); | ||
87 | 90 | | |||
88 | KWayland::Client::Surface *m_surface; | 91 | KWayland::Client::Surface *m_surface; | ||
89 | KWayland::Client::ShellSurface *m_shellSurface; | 92 | KWayland::Client::ShellSurface *m_shellSurface; | ||
90 | EGLSurface m_eglSurface = EGL_NO_SURFACE; | 93 | EGLSurface m_eglSurface = EGL_NO_SURFACE; | ||
91 | QSharedPointer<QOpenGLFramebufferObject> m_contentFBO; | 94 | QSharedPointer<QOpenGLFramebufferObject> m_contentFBO; | ||
92 | bool m_resized = false; | 95 | bool m_resized = false; | ||
93 | ShellClient *m_shellClient = nullptr; | 96 | ShellClient *m_shellClient = nullptr; | ||
94 | #if HAVE_WAYLAND_EGL | 97 | #if HAVE_WAYLAND_EGL | ||
95 | wl_egl_window *m_eglWaylandWindow = nullptr; | 98 | wl_egl_window *m_eglWaylandWindow = nullptr; | ||
96 | #endif | 99 | #endif | ||
97 | quint32 m_windowId; | 100 | quint32 m_windowId; | ||
98 | const Integration *m_integration; | 101 | const Integration *m_integration; | ||
102 | int m_scale = 1; | ||||
99 | }; | 103 | }; | ||
100 | 104 | | |||
101 | } | 105 | } | ||
102 | } | 106 | } | ||
103 | 107 | | |||
104 | #endif | 108 | #endif |