diff options
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-10-07 12:11:46 +0200 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-10-07 13:03:27 +0200 |
| commit | 0efe79f80d6f249040f47162ebbfc82289ca073d (patch) | |
| tree | b2326e1c7392367e438a16370f4cfb0ad63b09a0 /tests/manual/qopenglcontext/qopenglcontextwindow.cpp | |
| parent | 4ef79853528dcc908ad3737f7bebf38b059de959 (diff) | |
Rename the new platform APIs from QPlatformInterface to QNativeInterface
We were already using the 'native' nomenclature when referring to these
kinds of APIs, e.g. when talking about native handles, or the existing
QPlatformNativeInterface on a QPA level. Using 'native' for the user
facing APIs also distinguishes them from the 'platform' backend layer
in QPA and elsewhere.
Change-Id: I0f3273265904f0f19c0b6d62471f8820d3c3232e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/manual/qopenglcontext/qopenglcontextwindow.cpp')
| -rw-r--r-- | tests/manual/qopenglcontext/qopenglcontextwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/manual/qopenglcontext/qopenglcontextwindow.cpp b/tests/manual/qopenglcontext/qopenglcontextwindow.cpp index 4a369f8eda8..07147a4488e 100644 --- a/tests/manual/qopenglcontext/qopenglcontextwindow.cpp +++ b/tests/manual/qopenglcontext/qopenglcontextwindow.cpp @@ -97,8 +97,8 @@ void QOpenGLContextWindow::createForeignContext() // underlying native context. This way the texture, that belongs to the context // created here, will be accessible from m_context too. - using namespace QPlatformInterface; - auto *eglContext = m_context->platformInterface<QEGLContext>(); + using namespace QNativeInterface; + auto *eglContext = m_context->nativeInterface<QEGLContext>(); if (!eglContext) qFatal("Not running with EGL backend"); @@ -132,7 +132,7 @@ void QOpenGLContextWindow::createForeignContext() // Wrap ctx into a QOpenGLContext. QOpenGLContext *ctxWrap = QEGLContext::fromNative(ctx, dpy, m_context); - Q_ASSERT(ctxWrap->platformInterface<QEGLContext>()->nativeContext() == ctx); + Q_ASSERT(ctxWrap->nativeInterface<QEGLContext>()->nativeContext() == ctx); QOffscreenSurface surface; surface.setFormat(fmt); |
