summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.h
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2017-09-13 23:46:30 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2017-11-17 22:11:32 -0600
commita129a53e56cdff93e2fd092fd56f3e0726408a60 (patch)
tree7be3863250ab93c7bb814c115968a7c433403a9a /Source/Core/VideoCommon/RenderBase.h
parent53684701fa1f9a787f8d089d864c5c1c97effa8c (diff)
Video Common: Improve texture dumping to work with fifoci and
fifo_comparer
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.h')
-rw-r--r--Source/Core/VideoCommon/RenderBase.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.h b/Source/Core/VideoCommon/RenderBase.h
index ef2560825c..6698f2f66f 100644
--- a/Source/Core/VideoCommon/RenderBase.h
+++ b/Source/Core/VideoCommon/RenderBase.h
@@ -142,6 +142,8 @@ public:
virtual void ChangeSurface(void* new_surface_handle) {}
bool UseVertexDepthRange() const;
+ void ExitFramedumping();
+
protected:
std::tuple<int, int> CalculateTargetScale(int x, int y) const;
bool CalculateTargetSize();
@@ -179,6 +181,7 @@ protected:
u32 m_last_host_config_bits = 0;
private:
+ void DoDumpFrame();
void RunFrameDumps();
void ShutdownFrameDumping();
std::tuple<int, int> CalculateOutputDimensions(int width, int height);
@@ -208,8 +211,10 @@ private:
AVIDump::Frame state;
} m_frame_dump_config;
- AbstractTexture* m_last_xfb_texture;
- u64 m_last_xfb_id = 0;
+ AbstractTexture* m_last_xfb_texture = nullptr;
+ u64 m_last_xfb_id = std::numeric_limits<u64>::max();
+ u64 m_last_xfb_ticks = 0;
+ float m_last_xfb_horizontal_scale = 0.0f;
std::unique_ptr<AbstractTexture> m_dump_texture;