Get rid of the textureChanged signal.
authorPaul Olav Tvete <paul.tvete@nokia.com>
Fri, 9 Sep 2011 12:01:39 +0000 (14:01 +0200)
committerPaul Olav Tvete <paul.tvete@nokia.com>
Fri, 9 Sep 2011 12:16:20 +0000 (14:16 +0200)
We trigger update directly from damage now, so we don't need this signal anymore.

src/qt-compositor/compositor_api/waylandsurfaceitem.cpp
src/qt-compositor/compositor_api/waylandsurfaceitem.h

index 1f7325b..31889d7 100644 (file)
@@ -106,7 +106,6 @@ void WaylandSurfaceItem::init(WaylandSurface *surface)
     setAcceptedMouseButtons(Qt::LeftButton | Qt::RightButton);
     connect(surface, SIGNAL(mapped(const QSize &)), this, SLOT(surfaceMapped(const QSize &)));
     connect(surface, SIGNAL(destroyed(QObject *)), this, SLOT(surfaceDestroyed(QObject *)));
-    connect(this, SIGNAL(textureChanged()), this, SLOT(update()));
     connect(surface, SIGNAL(damaged(const QRect &)), this, SLOT(surfaceDamaged(const QRect &)));
 
     m_damaged = false;
@@ -233,7 +232,6 @@ QSGNode *WaylandSurfaceItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeDa
             m_texture = canvas()->sceneGraphEngine()->createTextureFromImage(m_surface->image());
         }
         delete oldTexture;
-        emit textureChanged();
         m_damaged = false;
     }
 
index 9c2ef2e..95b1429 100644 (file)
@@ -102,7 +102,6 @@ private slots:
     void surfaceDamaged(const QRect &);
 
 signals:
-    void textureChanged();
     void useTextureAlphaChanged();
     void clientRenderingEnabledChanged();
     void touchEventsEnabledChanged();