| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Change-Id: If5d8e039bb436fc15dc163e44f28823c3524d272
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
|
|
|
|
| |
Change-Id: I3443d630bca7209ec162c8439a47025b9a9042da
|
|
|
|
|
| |
Change-Id: I640cd8eeaf468fc004ae2b34c00518d3c4b62866
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
|
|\
| |
| |
| | |
Change-Id: I08d20cb83d63191b9cbbde34af509e95bc26345d
|
|/
|
|
|
| |
Change-Id: I62f8a1a15cdedfdc68bcfdc21195a8c73dfa112e
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
|
|
|
|
|
|
|
|
| |
It removes rotatingAngle. It was being serialized in the browser but
ignored by the QPA plugin. Sending it is not necessary.
Change-Id: I1cc7a4aba10886887fe7ec037139f5c943425494
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
| |
It removes whitespaces before the colon in object creation.
Change-Id: I54d8bc5e5e5a8284dfdd8e0c3a35961f87134196
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
| |
Replace radious with radius.
Change-Id: Ief1373a6eeaa54490ca608d633294438274fa15c
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
| |
JSHint recommends it.
Change-Id: I70181f0012ad79cafd73071c268c9f1ae05ba42b
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
|
| |
Fixes a misleading message.
Removes the function name from the message.
Change-Id: Ie0ef0c7dc0b0fc4b1e2ee4665e2b7aacdd111b5c
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
| |
Change-Id: I0f6e6f411c8d21dcacf8150d57b474e52c4e65ae
|
|
|
|
|
|
|
|
|
| |
Adds the test suite with a very basic test:
It will try to receive the swapBuffers command from the
qmlscene.
Change-Id: If74819fffd5f876c7bf2bf68a25ca6998fe870ef
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
| |
It fixes the invalid port check. The condition was dead code due to
a previous check.
Change-Id: I22bb7497f9577aeed0140542337c0a13200e37a8
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
|
|
|
|
|
|
|
| |
Removes clazy warning.
Change-Id: Ib019497a8b3f8812ddf51ae59373a7a9501c9b21
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
|
|\
| |
| |
| | |
Change-Id: I9c24a9542d3e77f558485b9ebf79c647eececd9d
|
| |
| |
| |
| |
| | |
Change-Id: I1a3546f2d14a447eb92c3f904c040bc8c5d8533f
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
|
|/
|
|
|
|
|
|
| |
/qwebglwindow.h:64:19: warning: 'screen' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
Change-Id: I3840d727dee443318644fffd1529390d71aae8d8
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"qwebglintegration.cpp", line 216: warning #68-D: integer conversion resulted
in a change of sign
WId winId = -1;
^
"qwebglintegration.cpp", line 491: warning #1215-D: function
"QWindowSystemInterface::handleMouseEvent(QWindow *, ulong, const)"
QPointF &, const QPointF &, Qt::MouseButtons, Qt::KeyboardModifiers,
Qt::MouseEventSource) [with]
Delivery=QWindowSystemInterface::DefaultDelivery]" (declared at line
85 of
"/home/qt/work/install/include/QtGui/5.11.0/QtGui/qpa/qwindowsystemin
ce.h") was declared deprecated"
QWindowSystemInterface::handleMouseEvent(platformWindow->window(),
^
"qwebglintegration.cpp", line 513: warning #1215-D: function
"QWindowSystemInterface::handleWheelEvent(QWindow *, ulong, const
QPointF &, const QPointF &, int, Qt::Orientation,
Qt::KeyboardModifiers)" (declared at line 153 of
"/home/qt/work/install/include/QtGui/5.11.0/QtGui/qpa/qwindowsystemin
terface.h") was declared deprecated
QWindowSystemInterface::handleWheelEvent(platformWindow->window(),
^
Change-Id: I0b83cc38b6567f3819890c74e973bba52fe2acf8
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
JSLint complains about the bitwise operations. From documentation:
Bitwise operators are very rare in JavaScript programs and quite often
& is simply a mistyped &&.
Change-Id: Ibda95e06bb062b71d4b5866a06010d57a6f321a6
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Violation] Added non-passive event listener to a scroll-blocking
event. Consider marking event handler as 'passive' to make the page more
responsive. See https://www.chromestatus.com/feature/5745543795965952
This patch also uses addEventListener instead of assigning the callback
directly to the function to be able to mark the event as passive.
Change-Id: I6c2336eed0cc4bc562fff09a08737815eaa864ce
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
| |
Change-Id: I0d4feade770b607e6cc3dc304038281a79097c4a
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
| |
Change-Id: I30c344d41514fa46bac1cb00b6cd54edf13c6397
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>
|
|
|
|
|
|
|
| |
Change-Id: I988cd81090557f65b880d55f01958e82490ada85
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>
|
|
|
|
|
|
|
| |
Change-Id: I9a84f151fdb0c551da141ff2a1641a027bca9163
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds a new environment variable, QT_WEBGL_MAX_TEXTURE_SIZE, to
configure the maximum texture size. The maximum value was hardcoded to
512 to save bandwidth, but it was giving problems when a high number of
glyphs need to be stored in the GPU.
After this patch, the maximum texture size allowed by WebGL will be
used.
The user can set the value to a custom value to optimize the bandwidth
if the default value is too high, text rendering issues can happen.
[ChangeLog][QWebGLContext] Fix text rendering issues when
a lot of different glyphs are used.
[ChangeLog][QWebGLContext] QT_WEBGL_MAX_TEXTURE_SIZE
environment variable added to customize the maximum texture size.
Task-number: QTBUG-66682
Change-Id: Id8a46daf4718a76fcf7d6a2c2cf831f3d6db372d
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
| |
Change-Id: I67a243c3e5f90c58f095824dd12e80b2306cc3ed
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
When the HTTP server fails to initialize a simple message was shown in
the terminal. This patch adds the error string from the QTcpServer to
give more information about the problem.
Change-Id: Ic52d4a78991e1c5a20f2712ca6cbbdd0738d47e0
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
| |
Variable context was renamed to currentContext as glUniform3fv wasn't
working as a result of the wrong variable name.
Change-Id: I0946441ea063eb6104066a43f963da67bee4e0d8
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Under some situations, the QWebGLFunctionCall is destroyed before
getting the event id. Increasing the lifetime of the event makes no
sense so instead of that, the id can be returned and passed to the query
function.
Task-number: QTBUG-66031
Change-Id: Iba755b8154fba3fadf81a1a73c87d16f0e31c4f3
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>
|
|
|
|
|
|
|
|
|
|
| |
Moved its debug message to the one place where its code was almost
duplicated, rather than changing this place to call the function and
changing the function to accurately do what it did; there's no real
sense to a function to send the resize event to the application.
Change-Id: I0de3dbbcc762515a282b0192fe7c382d260d4da8
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
|
|
|
|
|
|
|
|
|
| |
It enforces use of the render loop's threaded mode. This enables the
plugin to work on Windows and other environments whose render loop
uses a different mode by default.
Change-Id: I86901fa2c279126e4abb2d79efbb328778861113
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
|
|\
| |
| |
| | |
Change-Id: If28722eb9a53f2e169f368aa677d01f283d4cc9f
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Ensure signatures and arguments align.
Change-Id: I9537235ab6df6331ec49c6d5b3e37c9ebb8ba40c
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\|
| |
| |
| |
| |
| |
| | |
Conflicts:
.qmake.conf
Change-Id: Ib0005461e6abb8dfeb4f9697df54421b00b67f03
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The build will fail.
Task-number: QTBUG-65391
Change-Id: I26748f48f24ae143310b0f28003553039485d82e
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Raster surfaces are not allowed due to performance problems. A
qCritical message is shown if the user tries to use the plugin in a
widget application.
[ChangeLog][QtWebGL] The application shows an error message when
trying to create a QBackingStore in an application.
Task-number: QTBUG-65054
Change-Id: I78bfd2b2714d7dce1f802b1864216655e2d74406
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The application was not sending the notification to the browser to
resize the canvas. The browser was notifying the application of the
resize but the application was not acting on window resize.
Task-number: QTBUG-65545
Change-Id: I1ebe3b45c80b8275c74e1e39de3e1a780b953e26
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| | |
A sentinel is sent in every message to find buffer encoding errors.
Change-Id: I23e471517ffc3cdaa368a018308f585cd3d84624
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes a bug introduced in f73929c2c6c9229f71470502faab14178d561157. The
parameters of the current implementation of the glDrawArrays cannot be
deduced from the function prototype but the buffer length can be used.
Change-Id: I3296bfeff983f517d5a003e1f3c52de39b190b9d
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We were instantiating the QCoreTextFontDatabase base class, which
doesn't provide the full set of required functions.
Task-number: QTBUG-65078
Change-Id: I4dbe50b594ca25c61f748170acf29fcaabc65c0b
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Don't fall back on the platform plugin's capability check, as that's
irrelevant to the capabilities deliverable via WebGL.
Change-Id: If3520adfa8b0dd9a61a46a3a17f57eadcde536d6
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
| |
| |
| | |
Change-Id: I33a7ec32da1777e293596f54d4a8de3432f349f4
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Detect if the image data is all zero: if so, send an empty buffer.
This happens for a texture atlas, which is later filled with
texSubImage2D, discarding the data originally sent, so not sending the
data improves performance, notably reducing the loading time.
Change-Id: Ife298bb5e8d7ee96b800f06fcb8371a6d08d2101
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| | |
It improves the readability of the code.
Change-Id: Ice1021f23e439c74d1d8817bd2c432c7161c352b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|