aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/righttoleft
diff options
context:
space:
mode:
authorJaehak Lee <jaehak.lee@mobis.co.kr>2023-04-25 18:17:58 +0900
committerSeokha Ko <seokha.ko@qt.io>2023-05-16 13:20:21 +0900
commita782eb71f659a8f6fdd825cc69482ce4cd7612f3 (patch)
tree6a8a3b4026ed8daabd6c16d3297c8f506b6e29af /examples/quick/righttoleft
parentafcdf6cfad6db20668d22ecabca1f45d712e2383 (diff)
NinePatchImage: support the compressed texture image
The compressed texture image is supported by qquickimage and the qquickninepatchimage is inherited by qquickimage. But the compressed texture is not shown when the source of qquickninepatchimage is set as compressed texture because the updatePaintNode of qquickninepatchimage only consider non-compressed texture. This patch is not intended to use the HW compressed image as an actual 9-patch image, but to display them using the super class qquickimage in the case of an HW compressed image other than a normal pixmap image. If the source is HW compressed textures such as ASTC, KTX, and PKM, we have to call updatePaintNode of QQuickImage before checking the validity of the pixmap image. (because nullptr is returned if pixmap image is not valid) The containers themselves (pkm, ktx) are universally supported but the compressed texture formats is up to the underlying 3D API implementation and may vary. So, if the format is not supported by RHI, we skip the test. Refer to QTBUG-113565 for a detailed discussion on texture formats. And when using the software backend, we also skip test cases. Fixes: QTBUG-113446 Change-Id: I2704f86e94b50b3c187eca359fdc1a69eb217811 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit ed69a9d4f3e889b05548e7cebe957afc3a3e577f)
Diffstat (limited to 'examples/quick/righttoleft')
0 files changed, 0 insertions, 0 deletions