diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-01-12 17:33:31 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-01-13 16:21:26 +0100 |
commit | 7e2cef0f15b133c07bd11aa5e5065b0b9959fb0d (patch) | |
tree | 50378e10ac4affce1768d40d3fabdf960d9497dc /src/plugins/styles/mac/qmacstyle_mac.mm | |
parent | 9a0ab41f28042c7f27208337e419435d16f00006 (diff) |
Move away from CBOR in QShaderDescription serialization
...but keep support for deserializing for all older versions in order to play
nice with existing .qsb files.
The usage of binary JSON and then CBOR is a historical artifact: relying
on the QJsonDocument (which we generate for purposes unrelated to binary
serialization) was a convenient shortcut. However, writing to and
reading from a QDataStream instead (which QShader already does) is trivial.
In order not to be limited by potential CBOR requirements in the future,
take it all into our own hands.
Extend the qshader autotest accordingly.
Task-number: QTBUG-81298
Change-Id: If0047b659bd6601ca47b5bbbce1b719630cde01e
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/plugins/styles/mac/qmacstyle_mac.mm')
0 files changed, 0 insertions, 0 deletions