]> git.cworth.org Git - apitrace/blobdiff - gui/apisurface.cpp
Display captured snapshots as thumbnails.
[apitrace] / gui / apisurface.cpp
index 64aa1532bc7083a89de2ea130489c3f7b146d8bb..7bf3c8fe5f20c8531d27a4a4feacbfc320c5ad6c 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,27 @@ QImage ApiSurface::thumb() const
     return m_thumb;
 }
 
+int ApiSurface::depth() const
+{
+    return m_depth;
+}
+
+void ApiSurface::setDepth(int depth)
+{
+    m_depth = depth;
+}
+
+QString ApiSurface::formatName() const
+{
+    return m_formatName;
+}
+
+void ApiSurface::setFormatName(const QString &str)
+{
+    m_formatName = str;
+}
+
+
 ApiTexture::ApiTexture()
     : ApiSurface()
 {
@@ -74,3 +94,4 @@ void ApiFramebuffer::setType(const QString &str)
 {
     m_type = str;
 }
+