summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/webgl/qwebglwebsocketserver.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use Q_STATIC_LOGGING_CATEGORYHEADdevUlf Hermann2024-06-191-1/+1
| | | | | | Task-number: QTBUG-67692 Change-Id: Ied25e7895fc0ac14a32f0506e0d11e8b873a04f2 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Add platform plugin parameter for websockerserverMaurice Kalinowski2019-01-301-3/+6
| | | | | | | | | | | When using the webgl backend in a container, one needs to specify the port of the websocket server in addition to the http server. While using QT_WEBGL_WEBSOCKETSERVER is an option, it requires to pass a hostname in addition. Change-Id: Iefce12f049a81711a52586d60dd34bddbb9de12e Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Disable mouse tracking by defaultv5.12.0-beta3v5.12.0-beta2Jesus Fernandez2018-10-121-1/+2
| | | | | | | | | | | It will improve the performance and fix problems with code not optimized for the new QtQuick scenegraph. A new environment variable is added in this patch to enable it, QT_WEBGL_TRACKING. Change-Id: Id2b87c5baa16822008a146051fa43be12db0a1ed Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Remove old partial binary message workaroundJesus Fernandez2018-03-271-8/+1
| | | | | | | | | | | | | | | | The original implementation of the plugin was created using Qt 5.8. A workaround was added to avoid partial binary messages. Apparently, this is not happening anymore, so the workaround is not needed anymore. Removing the workaround can provide a performance boost since the application sends the binary message in a single message and the browser does not need to rebuild the message. Change-Id: I18e7a1c559d8a5d677ab66131098a6a1e855d985 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Add an environment variable to set the WebSocket Server addressJesus Fernandez2018-03-211-2/+14
| | | | | | | | | | | | | | Using the QT_WEBGL_WEBSOCKETSERVER environment variable the WebSocket Server listen address and port can be configured. [ChangeLog][QtWebGL] QT_WEBGL_WEBSOCKETSERVER environment variable can be used to configure the WebSocket Server address and port. Task-number: QTBUG-65241 Change-Id: I3035aa7cc18d469293a4d55bc36e91cfae5ec03a Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Jason Hihn <jhihn@gmx.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Fix key mapping of Enterv5.10.15.10.15.10Michael Brasser2018-01-171-37/+0
| | | | | | | | | | | | Qt's other platform plugins differentiate Key_Enter and Key_Return. Update the webgl plugin to do the same. Also remove unused code related to key mapping. Task-number: QTBUG-65686 Change-Id: I9e65b9413828f713f56d4942531f120b7d9cc6d7 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
* WebSocket Server refactorJesus Fernandez2018-01-121-4/+7
| | | | | | | | | | | The variable is used only once. The function can be used in the condition. An error message is shown when the WebSocket Server fails to listen. Change-Id: Ia5b54d271ed72bc408d94d24eb275f7d83f290f1 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Michael Brasser <michael.brasser@live.com>
* Remove the parameterCount parameterJesus Fernandez2017-12-051-31/+40
| | | | | | | | | | | | Saves 4 bytes per message. Combined with other optimizations, this can save a lot of bandwidth. It also adds a new serialization type, the array. The parameter count cannot be removed without supporting arrays. Change-Id: I5f9c0901d50fb7d9613461d9860338e18dcbe3cd Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Send numeric identifiers instead of stringsJesus Fernandez2017-11-231-1/+3
| | | | | | | | | Saves bandwidth by using a number instead of sending the full string to identify the GL command. Change-Id: I5e8010465729d7a9c320d0375582d3a92d76019d Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Allow users to disable the loading/waiting screen animationJesus Fernandez2017-10-031-0/+1
| | | | | | | | | | | | | Allows the user to disable the browser loading animation for debugging purposes. WebGL Inspector tries to debug the loading screen instead of the proper WebGL context. It can be disabled setting the QT_WEBGL_LOADINGSCREEN environment variable to '0' or sending the 'noloadingscreen' parameter to the QPA plugin. By default, the browser will show the loading screen. Change-Id: I5d84173d79c3f3fc67b776ba2f8fc8928a0194a1 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Show client side debug information in debug buildsJesus Fernandez2017-10-031-0/+8
| | | | | | | | Eases the debugging in debug builds. In release no additional information is shown. Change-Id: I14b4a60235a0ca38e1350725e99242c456fdb290 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Wrap system information in sysinfo keyJesus Fernandez2017-10-031-8/+13
| | | | | | | | | Refactors the code to allow sending configuration values during connection. There is no need to delete the type from the connect object any more. Change-Id: Ide5df8fd77ddf556558f387d2846f927ac50e716 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Add GL command generation helper functionsJesus Fernandez2017-09-281-0/+1
| | | | | | | | Allows a faster and cleaner implementation of GL commands to reuse as much code as possible. It will ease future changes. Change-Id: If473a82c873a73c3c4c88075917400754d4159e1 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Remove identifier from messages not waiting for answerJesus Fernandez2017-09-211-6/+12
| | | | | | | | | | Saves 4 bytes per message not waiting for answer. Combined with other optimizations can save a lot of bandwidth. Change-Id: I360ba88d3b75db9278d6aff6c397e3ef8c99b02e Reviewed-by: Michael Winkelmann <michael.winkelmann@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Fix NULL data handlingJesus Fernandez2017-09-201-1/+1
| | | | | | | | | It fixes the handling of NULL data. Before this patch, the wrong byte array was used to check if the buffer is NULL. Change-Id: Ia635e11a9ac33a157c28d4af99f625e33e8fa128 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Add Qt WebGL platform pluginJesus Fernandez2017-06-271-0/+310
Done-with: Michael Winkelmann <michael.winkelmann@qt.io> Change-Id: I6632475956393116af8885f42ba557e35d2b0985 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>