12#include <QSurfaceFormat>
13#include <QtGui/private/qwindow_p.h>
14#include <QtGui/qguiapplication.h>
16#include <QtGui/private/qeglconvenience_p.h>
17#include <android/native_window.h>
18#include <android/native_window_jni.h>
19#include <qpa/qplatformscreen.h>
20#include <qpa/qwindowsysteminterface.h>
55 && availableGeometry.
width() > 0
56 && availableGeometry.
height() > 0) {
72 if (!protector.acquire())
79 if (m_eglSurface == EGL_NO_SURFACE) {
119 m_eglSurface = eglCreateWindowSurface(m_eglDisplay,
config, m_nativeWindow, NULL);
121 if (
Q_UNLIKELY(m_eglSurface == EGL_NO_SURFACE)) {
122 EGLint
error = eglGetError();
123 eglTerminate(m_eglDisplay);
124 qFatal(
"EGL Error : Could not create the egl surface: error = 0x%x\n",
error);
130 if (m_nativeWindow == 0)
131 return window()->requestedFormat();
138 if (m_eglSurface != EGL_NO_SURFACE) {
139 eglMakeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
140 eglDestroySurface(m_eglDisplay, m_eglSurface);
141 m_eglSurface = EGL_NO_SURFACE;
144 if (m_nativeWindow) {
145 ANativeWindow_release(m_nativeWindow);
static Qt::ApplicationState applicationState()
void unlock() noexcept
Unlocks the mutex.
void lock() noexcept
Locks the mutex.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
constexpr int height() const noexcept
Returns the height of the rectangle.
constexpr int width() const noexcept
Returns the width of the rectangle.
The QRegion class specifies a clip region for a painter.
bool wait(QMutex *, QDeadlineTimer=QDeadlineTimer(QDeadlineTimer::Forever))
static bool handleExposeEvent(QWindow *window, const QRegion ®ion)
SurfaceType surfaceType() const override
Returns the surface type of the window.
struct wl_display * display
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
QSurfaceFormat q_glFormatFromConfig(EGLDisplay display, const EGLConfig config, const QSurfaceFormat &referenceFormat)
typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]