]> git.cworth.org Git - apitrace/blobdiff - gui/apisurface.cpp
Add depth info to the surfaces.
[apitrace] / gui / apisurface.cpp
index 64aa1532bc7083a89de2ea130489c3f7b146d8bb..b8e820bc82f16f333aed5639fa0e59e93207f0f8 100644 (file)
@@ -31,7 +31,6 @@ void ApiSurface::contentsFromBase64(const QByteArray &base64)
 {
     QByteArray dataArray = QByteArray::fromBase64(base64);
     m_image.loadFromData(dataArray, "png");
-    m_image = m_image.mirrored();
     m_thumb = m_image.scaled(64, 64, Qt::KeepAspectRatio);
 }
 
@@ -45,6 +44,17 @@ QImage ApiSurface::thumb() const
     return m_thumb;
 }
 
+
+int ApiSurface::depth() const
+{
+    return m_depth;
+}
+
+void ApiSurface::setDepth(int depth)
+{
+    m_depth = depth;
+}
+
 ApiTexture::ApiTexture()
     : ApiSurface()
 {
@@ -74,3 +84,4 @@ void ApiFramebuffer::setType(const QString &str)
 {
     m_type = str;
 }
+