]> git.cworth.org Git - apitrace/blobdiff - gui/apisurface.cpp
Encode format as a member and not part of the label.
[apitrace] / gui / apisurface.cpp
index b8e820bc82f16f333aed5639fa0e59e93207f0f8..7bf3c8fe5f20c8531d27a4a4feacbfc320c5ad6c 100644 (file)
@@ -44,7 +44,6 @@ QImage ApiSurface::thumb() const
     return m_thumb;
 }
 
-
 int ApiSurface::depth() const
 {
     return m_depth;
@@ -55,6 +54,17 @@ 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()
 {