]> git.cworth.org Git - apitrace/blobdiff - trace_snappyfile.hpp
Show thumbnail of the color buffer in tooltips.
[apitrace] / trace_snappyfile.hpp
index bfb3dff406ce81e5f8185c114944777220ced5d7..33159ec73cc81eb4413158de707940a2c64c5211 100644 (file)
@@ -63,6 +63,7 @@ protected:
     virtual void rawClose();
     virtual void rawFlush();
     virtual bool rawSkip(size_t length);
+    virtual int rawPercentRead();
 
 private:
     inline size_t usedCacheSize() const
@@ -84,7 +85,7 @@ private:
         return m_stream.eof() && freeCacheSize() == 0;
     }
     void flushWriteCache();
-    void flushReadCache();
+    void flushReadCache(size_t skipLength = 0);
     void createCache(size_t size);
     void writeCompressedLength(size_t length);
     size_t readCompressedLength();
@@ -97,6 +98,7 @@ private:
     char *m_compressedCache;
 
     File::Offset m_currentOffset;
+    std::streampos m_endPos;
 };
 
 }