Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylandeglwindow_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#pragma once
5
6#include <QtWaylandClient/private/qwaylandwindow_p.h>
9
10QT_BEGIN_NAMESPACE
11
12class QOpenGLFramebufferObject;
13
14namespace QtWaylandClient {
15
16class QWaylandGLContext;
17
18class Q_WAYLANDCLIENT_EXPORT QWaylandEglWindow : public QWaylandWindow
19{
21public:
25 void ensureSize() override;
26
27 void updateSurface(bool create);
28 QRect contentsRect() const;
29
30 EGLSurface eglSurface() const;
31 GLuint contentFBO() const;
32 GLuint contentTexture() const;
33 bool needToUpdateContentFBO() const { return decoration() && (m_resize || !m_contentFBO); }
34
35 void bindContentFBO();
36
38
40
41private:
43 struct wl_egl_window *m_waylandEglWindow = nullptr;
44
45 // Locks any manipulation of the eglSurface size
48 mutable bool m_resize = false;
49 mutable QOpenGLFramebufferObject *m_contentFBO = nullptr;
50
51 // Size used in the last call to wl_egl_window_resize
53
54 // Size of the buffer used by QWaylandWindow
55 // This is always written to from the main thread, potentially read from the rendering thread
58};
59
60}
61
62QT_END_NAMESPACE
static const char * qwaylandegl_threadedgl_blacklist_vendor[]
EGLDisplay(* PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform, void *native_display, const EGLint *attrib_list)