summaryrefslogtreecommitdiff
path: root/platform/qt/src/headless_backend_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/qt/src/headless_backend_qt.cpp')
-rw-r--r--platform/qt/src/headless_backend_qt.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/platform/qt/src/headless_backend_qt.cpp b/platform/qt/src/headless_backend_qt.cpp
index 3702fdf14a..1d62afabff 100644
--- a/platform/qt/src/headless_backend_qt.cpp
+++ b/platform/qt/src/headless_backend_qt.cpp
@@ -6,21 +6,22 @@
#include <cassert>
namespace mbgl {
+namespace gl {
-class QtBackendImpl : public HeadlessBackend::Impl {
+class QtBackendImpl final : public HeadlessBackend::Impl {
public:
- ~QtBackendImpl() final = default;
+ ~QtBackendImpl() = default;
- gl::ProcAddress getExtensionFunctionPointer(const char* name) final {
+ gl::ProcAddress getExtensionFunctionPointer(const char* name) {
QOpenGLContext* thisContext = QOpenGLContext::currentContext();
return thisContext->getProcAddress(name);
}
- void activateContext() final {
+ void activateContext() {
widget.makeCurrent();
}
- void deactivateContext() final {
+ void deactivateContext() {
widget.doneCurrent();
}
@@ -33,4 +34,5 @@ void HeadlessBackend::createImpl() {
impl = std::make_unique<QtBackendImpl>();
}
+} // namespace gl
} // namespace mbgl