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// Qt-Security score:significant reason:default
4
5#pragma once
6
7#include <QtWaylandClient/private/qwaylandwindow_p.h>
10
11QT_BEGIN_NAMESPACE
12
13class QOpenGLFramebufferObject;
14
15namespace QtWaylandClient {
16
17class QWaylandGLContext;
18
19class Q_WAYLANDCLIENT_EXPORT QWaylandEglWindow : public QWaylandWindow
20{
22public:
26 void ensureSize() override;
27
28 void updateSurface(bool create);
29 QRect contentsRect() const;
30
31 EGLSurface eglSurface() const;
32 GLuint contentFBO() const;
33 GLuint contentTexture() const;
34 bool needToUpdateContentFBO() const { return decoration() && (m_resize || !m_contentFBO); }
35
36 void bindContentFBO();
37
39
41
42private:
44 struct wl_egl_window *m_waylandEglWindow = nullptr;
45
46 // Locks any manipulation of the eglSurface size
49 mutable bool m_resize = false;
50 mutable QOpenGLFramebufferObject *m_contentFBO = nullptr;
51
52 // Size used in the last call to wl_egl_window_resize
54
55 // Size of the buffer used by QWaylandWindow
56 // This is always written to from the main thread, potentially read from the rendering thread
59};
60
61}
62
63QT_END_NAMESPACE
static const char * qwaylandegl_threadedgl_blacklist_vendor[]
EGLDisplay(* PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform, void *native_display, const EGLint *attrib_list)