Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qopenglcontext.cpp File Reference

(d139642aefde2d00683cf29f3875ccfae6c66779)

#include <qpa/qplatformopenglcontext.h>
#include <qpa/qplatformintegration.h>
#include "qopenglcontext.h"
#include "qopenglcontext_p.h"
#include "qwindow.h"
#include <QtCore/QThreadStorage>
#include <QtCore/QThread>
#include <QtCore/private/qlocking_p.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/private/qopengl_p.h>
#include <QtGui/private/qwindow_p.h>
#include <QtGui/QScreen>
#include <qpa/qplatformnativeinterface.h>
#include <private/qopenglextensions_p.h>
#include <QDebug>
#include "moc_qopenglcontext.cpp"
+ Include dependency graph for qopenglcontext.cpp:

Go to the source code of this file.

Classes

class  QGuiGLThreadContext
 

Functions

 Q_GLOBAL_STATIC (QThreadStorage< QGuiGLThreadContext * >, qwindow_context_storage)
 
void qt_gl_set_global_share_context (QOpenGLContext *context)
 
QOpenGLContextqt_gl_global_share_context ()
 
QDebug operator<< (QDebug debug, const QOpenGLContext *ctx)
 
QDebug operator<< (QDebug debug, const QOpenGLContextGroup *cg)
 

Variables

static QOpenGLContextglobal_share_context = nullptr
 

Function Documentation

◆ operator<<() [1/2]

QDebug operator<< ( QDebug debug,
const QOpenGLContext * ctx )

Definition at line 1295 of file qopenglcontext.cpp.

References debug.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug debug,
const QOpenGLContextGroup * cg )

Definition at line 1319 of file qopenglcontext.cpp.

References debug, and QOpenGLContextGroup::shares().

+ Here is the call graph for this function:

◆ Q_GLOBAL_STATIC()

Q_GLOBAL_STATIC ( QThreadStorage< QGuiGLThreadContext * > ,
qwindow_context_storage  )

◆ qt_gl_global_share_context()

QOpenGLContext * qt_gl_global_share_context ( )

Definition at line 65 of file qopenglcontext.cpp.

References global_share_context.

Referenced by QOpenGLWindowPrivate::QOpenGLWindowPrivate(), QGuiApplicationPrivate::~QGuiApplicationPrivate(), QBackingStoreRhiSupport::create(), QRhiGles2::create(), QEglFSWindow::destroy(), QOpenGLContext::globalShareContext(), QOpenGLWidgetPrivate::initialize(), Q_TRACE_INSTRUMENT(), and QEglFSWindow::setBackingStore().

+ Here is the caller graph for this function:

◆ qt_gl_set_global_share_context()

void qt_gl_set_global_share_context ( QOpenGLContext * context)

This function is used by Qt::AA_ShareOpenGLContexts and the Qt WebEngine to set up context sharing across multiple windows. Do not use it for any other purpose.

Please maintain the binary compatibility of these functions.

Definition at line 57 of file qopenglcontext.cpp.

References context, and global_share_context.

Referenced by QGuiApplicationPrivate::~QGuiApplicationPrivate(), QEglFSWindow::destroy(), Q_TRACE_INSTRUMENT(), and QEglFSWindow::setBackingStore().

+ Here is the caller graph for this function:

Variable Documentation

◆ global_share_context

QOpenGLContext* global_share_context = nullptr
static