]> git.cworth.org Git - apitrace/blobdiff - gui/apisurface.cpp
Display captured snapshots as thumbnails.
[apitrace] / gui / apisurface.cpp
index 050c081756bf4ef7e1f9079802c0790b7589fe35..7bf3c8fe5f20c8531d27a4a4feacbfc320c5ad6c 100644 (file)
@@ -44,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()
 {
@@ -73,3 +94,4 @@ void ApiFramebuffer::setType(const QString &str)
 {
     m_type = str;
 }
+