[vlc-commits] [Git][videolan/vlc][master] 3 commits: qt: set TextureCanUseAtlas flag in RoundImage

Rémi Denis-Courmont (@Courmisch) gitlab at videolan.org
Fri Jan 28 19:09:14 UTC 2022



Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
d7aac5ea by Fatih Uzunoglu at 2022-01-28T17:38:16+00:00
qt: set TextureCanUseAtlas flag in RoundImage

- - - - -
4869a873 by Fatih Uzunoglu at 2022-01-28T17:38:16+00:00
qml: disable mipmap in DragItem image

- - - - -
270f1732 by Fatih Uzunoglu at 2022-01-28T17:38:16+00:00
qml: disable mipmap in delegate images

- - - - -


5 changed files:

- modules/gui/qt/network/qml/NetworkCustomCover.qml
- modules/gui/qt/network/qml/NetworkThumbnailItem.qml
- modules/gui/qt/playlist/qml/PlaylistDelegate.qml
- modules/gui/qt/widgets/native/roundimage.cpp
- modules/gui/qt/widgets/qml/DragItem.qml


Changes:

=====================================
modules/gui/qt/network/qml/NetworkCustomCover.qml
=====================================
@@ -34,7 +34,6 @@ Item {
         anchors.centerIn: parent
         visible: !networkModel.artwork || networkModel.artwork.toString() === ""
         height: iconSize
-        mipmap: true
         sourceSize: Qt.size(width, height)
         source: {
             switch (networkModel.type) {


=====================================
modules/gui/qt/network/qml/NetworkThumbnailItem.qml
=====================================
@@ -86,7 +86,6 @@ Item {
         source: item.rowModel.artwork
         visible: item.rowModel.artwork
                  && item.rowModel.artwork.toString() !== ""
-        mipmap: true
 
         Widgets.PlayCover {
             anchors.centerIn: parent


=====================================
modules/gui/qt/playlist/qml/PlaylistDelegate.qml
=====================================
@@ -134,7 +134,6 @@ T.Control {
             Image {
                 id: artwork
 
-                mipmap: true
                 anchors.fill: parent
                 fillMode: Image.PreserveAspectFit
                 source: (model.artwork && model.artwork.toString()) ? model.artwork : VLCStyle.noArtCover


=====================================
modules/gui/qt/widgets/native/roundimage.cpp
=====================================
@@ -151,7 +151,8 @@ QSGNode *RoundImage::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *)
             assert(window());
 
             QSGTexture* texture = window()->createTextureFromImage(m_roundImage,
-                QQuickWindow::TextureHasAlphaChannel);
+                static_cast<QQuickWindow::CreateTextureOptions>(QQuickWindow::TextureHasAlphaChannel |
+                                                                QQuickWindow::TextureCanUseAtlas));
 
             if (texture)
             {


=====================================
modules/gui/qt/widgets/qml/DragItem.qml
=====================================
@@ -348,7 +348,6 @@ Item {
         id: artworkLoader
 
         Image {
-            mipmap: true
             fillMode: Image.PreserveAspectCrop
             width: coverSize
             height: coverSize



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/e791b513636964a89728b5828466a9d4f4353cdf...270f173287ee3fc96dd9955d133fa1f72e24e371

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/e791b513636964a89728b5828466a9d4f4353cdf...270f173287ee3fc96dd9955d133fa1f72e24e371
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list