![]() |
Qt 6.x
The Qt SDK
|
#include <qquickrendercontrol_p.h>
Public Types | |
enum | FrameStatus { NotRecordingFrame , RecordingFrame , DeviceLostInBeginFrame , ErrorInBeginFrame } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Member Functions | |
static QQuickRenderControlPrivate * | get (QQuickRenderControl *renderControl) |
static bool | isRenderWindowFor (QQuickWindow *quickWin, const QWindow *renderWin) |
static void | cleanup () |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Public Attributes | ||
QQuickRenderControl * | q | |
bool | initialized | |
QQuickWindow * | window | |
QSGRenderContext * | rc | |
QRhi * | rhi | |
bool | ownRhi | |
QRhiCommandBuffer * | cb | |
QOffscreenSurface * | offscreenSurface | |
int | sampleCount | |
FrameStatus | frameStatus | |
![]() | ||
ExtraData * | extraData | |
QAtomicPointer< QThreadData > | threadData | |
QAtomicPointer< ConnectionData > | connections | |
union { | ||
QObject * currentChildBeingDeleted | ||
QAbstractDeclarativeData * declarativeData | ||
}; | ||
QAtomicPointer< QtSharedPointer::ExternalRefCountData > | sharedRefcount | |
![]() | ||
QObject * | q_ptr | |
QObject * | parent | |
QObjectList | children | |
uint | isWidget: 1 | |
uint | blockSig: 1 | |
uint | wasDeleted: 1 | |
uint | isDeletingChildren: 1 | |
uint | sendChildEvents: 1 | |
uint | receiveChildEvents: 1 | |
uint | isWindow: 1 | |
uint | deleteLaterCalled: 1 | |
uint | isQuickItem: 1 | |
uint | willBeWidget: 1 | |
uint | wasWidget: 1 | |
uint | unused: 21 | |
QAtomicInt | postedEvents | |
QDynamicMetaObjectData * | metaObject | |
QBindingStorage | bindingStorage | |
Static Public Attributes | |
static QSGContext * | sg = nullptr |
Definition at line 28 of file qquickrendercontrol_p.h.
Enumerator | |
---|---|
NotRecordingFrame | |
RecordingFrame | |
DeviceLostInBeginFrame | |
ErrorInBeginFrame |
Definition at line 33 of file qquickrendercontrol_p.h.
QQuickRenderControlPrivate::QQuickRenderControlPrivate | ( | QQuickRenderControl * | renderControl | ) |
Definition at line 116 of file qquickrendercontrol.cpp.
References cleanup(), QSGContext::createDefaultContext(), QSGContext::createRenderContext(), qAddPostRoutine(), rc, and sg.
|
static |
Definition at line 134 of file qquickrendercontrol.cpp.
References sg.
Referenced by QQuickRenderControlPrivate().
|
inlinestatic |
Definition at line 42 of file qquickrendercontrol_p.h.
Referenced by QQuickWindow::~QQuickWindow(), QQuickWindowPrivate::init(), isRenderWindowFor(), QQuickWidgetPrivate::render(), and QQuickWindow::update().
QImage QQuickRenderControlPrivate::grab | ( | ) |
Definition at line 459 of file qquickrendercontrol.cpp.
References QSGSoftwareRenderer::currentPaintDevice(), dpr(), QSGRenderContext::endSync(), QImage::Format_ARGB32_Premultiplied, QQuickWindowPrivate::get(), QSGRendererInterface::graphicsApi(), QSGAbstractSoftwareRenderer::markDirty(), QQuickWindowPrivate::polishItems(), qWarning, rc, QQuickWindowPrivate::renderer, rhi, QSGSoftwareRenderer::setCurrentPaintDevice(), QImage::setDevicePixelRatio(), QSGRendererInterface::Software, QQuickWindowPrivate::syncSceneGraph(), and window.
bool QQuickRenderControlPrivate::initRhi | ( | ) |
Definition at line 702 of file qquickrendercontrol.cpp.
References QSGRhiSupport::createRhi(), QSGRhiSupport::instance(), QSGRhiSupport::maybeCreateOffscreenSurface(), offscreenSurface, ownRhi, qWarning, rhi, QSGRhiSupport::rhiBackend(), QRhi::Vulkan, and window.
|
virtual |
Reimplemented in QQuickWidgetRenderControlPrivate.
Definition at line 552 of file qquickrendercontrol.cpp.
References window.
Referenced by isRenderWindowFor().
|
static |
Definition at line 544 of file qquickrendercontrol.cpp.
References get(), QQuickWindowPrivate::get(), isRenderWindow(), rc, and QQuickWindowPrivate::renderControl.
Referenced by windowHasFocus().
void QQuickRenderControlPrivate::maybeUpdate | ( | ) |
Definition at line 506 of file qquickrendercontrol.cpp.
References emit.
void QQuickRenderControlPrivate::resetRhi | ( | const QQuickGraphicsConfiguration & | config | ) |
Definition at line 737 of file qquickrendercontrol.cpp.
References QSGRhiSupport::destroyRhi(), QSGRhiSupport::instance(), offscreenSurface, ownRhi, and rhi.
void QQuickRenderControlPrivate::update | ( | ) |
Definition at line 500 of file qquickrendercontrol.cpp.
References emit.
Referenced by QQuickWindow::update().
void QQuickRenderControlPrivate::windowDestroyed | ( | ) |
Definition at line 190 of file qquickrendercontrol.cpp.
References QQuickWindowPrivate::animationController, QQuickWindowPrivate::cleanupNodesOnShutdown(), QQuickWindowPrivate::get(), QSGRenderContext::invalidate(), rc, QScopedPointer< T, Cleanup >::reset(), QSGRhiShaderEffectNode::resetMaterialTypeCache(), and window.
Referenced by QQuickWindow::~QQuickWindow().
QRhiCommandBuffer* QQuickRenderControlPrivate::cb |
Definition at line 68 of file qquickrendercontrol_p.h.
FrameStatus QQuickRenderControlPrivate::frameStatus |
Definition at line 71 of file qquickrendercontrol_p.h.
Referenced by QQuickWidgetPrivate::render().
bool QQuickRenderControlPrivate::initialized |
Definition at line 62 of file qquickrendercontrol_p.h.
QOffscreenSurface* QQuickRenderControlPrivate::offscreenSurface |
Definition at line 69 of file qquickrendercontrol_p.h.
Referenced by initRhi(), and resetRhi().
bool QQuickRenderControlPrivate::ownRhi |
Definition at line 67 of file qquickrendercontrol_p.h.
Referenced by initRhi(), and resetRhi().
QQuickRenderControl* QQuickRenderControlPrivate::q |
Definition at line 61 of file qquickrendercontrol_p.h.
QSGRenderContext* QQuickRenderControlPrivate::rc |
Definition at line 65 of file qquickrendercontrol_p.h.
Referenced by QQuickRenderControlPrivate(), grab(), QQuickWindowPrivate::init(), isRenderWindowFor(), and windowDestroyed().
QRhi* QQuickRenderControlPrivate::rhi |
Definition at line 66 of file qquickrendercontrol_p.h.
Referenced by grab(), initRhi(), and resetRhi().
int QQuickRenderControlPrivate::sampleCount |
Definition at line 70 of file qquickrendercontrol_p.h.
|
static |
Definition at line 64 of file qquickrendercontrol_p.h.
Referenced by QQuickRenderControlPrivate(), cleanup(), and QQuickWindowPrivate::init().
QQuickWindow* QQuickRenderControlPrivate::window |
Definition at line 63 of file qquickrendercontrol_p.h.
Referenced by grab(), QQuickWindowPrivate::init(), initRhi(), isRenderWindow(), and windowDestroyed().