diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-07-19 16:32:30 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-19 16:32:30 +1000 |
| commit | fc8859a4148ba73100c4e3cfd6729c187543ddde (patch) | |
| tree | b8f049cf4d7c61006f8d4d862ec2e700474003ad /Source/Core/VideoCommon | |
| parent | a9abf2838eaeac12c460dfafd0ef170c823a589a (diff) | |
| parent | 2b9389202e0d1c8451aff176233cf211feef59dd (diff) | |
Merge pull request #8249 from lioncash/rect
VideoCommon: Remove unused MathUtil.h include from VideoCommon.h
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/BPFunctions.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/BPFunctions.h | 2 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/PostProcessing.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/PostProcessing.h | 5 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 7 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.h | 5 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/Statistics.cpp | 1 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.h | 4 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VideoCommon.h | 2 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.h | 3 |
11 files changed, 22 insertions, 16 deletions
diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp index e725927860..6c14528671 100644 --- a/Source/Core/VideoCommon/BPFunctions.cpp +++ b/Source/Core/VideoCommon/BPFunctions.cpp @@ -2,13 +2,14 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "VideoCommon/BPFunctions.h" + #include <algorithm> #include "Common/CommonTypes.h" #include "Common/Logging/Log.h" #include "VideoCommon/AbstractFramebuffer.h" -#include "VideoCommon/BPFunctions.h" #include "VideoCommon/BPMemory.h" #include "VideoCommon/FramebufferManager.h" #include "VideoCommon/RenderBase.h" diff --git a/Source/Core/VideoCommon/BPFunctions.h b/Source/Core/VideoCommon/BPFunctions.h index 9f8625233a..458e4f7cff 100644 --- a/Source/Core/VideoCommon/BPFunctions.h +++ b/Source/Core/VideoCommon/BPFunctions.h @@ -8,7 +8,7 @@ #pragma once -#include "VideoCommon/VideoCommon.h" +#include "Common/MathUtil.h" struct BPCmd; diff --git a/Source/Core/VideoCommon/PostProcessing.cpp b/Source/Core/VideoCommon/PostProcessing.cpp index d6d2b62625..77f77cb9ce 100644 --- a/Source/Core/VideoCommon/PostProcessing.cpp +++ b/Source/Core/VideoCommon/PostProcessing.cpp @@ -2,6 +2,8 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. +#include "VideoCommon/PostProcessing.h" + #include <sstream> #include <string> @@ -20,7 +22,6 @@ #include "VideoCommon/AbstractShader.h" #include "VideoCommon/AbstractTexture.h" #include "VideoCommon/FramebufferManager.h" -#include "VideoCommon/PostProcessing.h" #include "VideoCommon/RenderBase.h" #include "VideoCommon/ShaderCache.h" #include "VideoCommon/VertexManagerBase.h" diff --git a/Source/Core/VideoCommon/PostProcessing.h b/Source/Core/VideoCommon/PostProcessing.h index 55ff1c7c5d..0240003137 100644 --- a/Source/Core/VideoCommon/PostProcessing.h +++ b/Source/Core/VideoCommon/PostProcessing.h @@ -5,17 +5,18 @@ #pragma once #include <map> +#include <memory> #include <string> #include <vector> #include "Common/CommonTypes.h" +#include "Common/MathUtil.h" #include "Common/Timer.h" #include "VideoCommon/TextureConfig.h" -#include "VideoCommon/VideoCommon.h" -class AbstractTexture; class AbstractPipeline; class AbstractShader; +class AbstractTexture; namespace VideoCommon { diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 795a96e40d..40b6f9d51e 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -22,7 +22,7 @@ #include <string> #include <tuple> -#include "imgui.h" +#include <imgui.h> #include "Common/Assert.h" #include "Common/CommonTypes.h" @@ -74,6 +74,7 @@ #include "VideoCommon/VertexManagerBase.h" #include "VideoCommon/VertexShaderManager.h" #include "VideoCommon/VideoBackendBase.h" +#include "VideoCommon/VideoCommon.h" #include "VideoCommon/VideoConfig.h" #include "VideoCommon/XFMemory.h" @@ -87,7 +88,9 @@ static float AspectToWidescreen(float aspect) Renderer::Renderer(int backbuffer_width, int backbuffer_height, float backbuffer_scale, AbstractTextureFormat backbuffer_format) : m_backbuffer_width(backbuffer_width), m_backbuffer_height(backbuffer_height), - m_backbuffer_scale(backbuffer_scale), m_backbuffer_format(backbuffer_format) + m_backbuffer_scale(backbuffer_scale), + m_backbuffer_format(backbuffer_format), m_last_xfb_width{MAX_XFB_WIDTH}, m_last_xfb_height{ + MAX_XFB_HEIGHT} { UpdateActiveConfig(); UpdateDrawRectangle(); diff --git a/Source/Core/VideoCommon/RenderBase.h b/Source/Core/VideoCommon/RenderBase.h index a274001070..584f07bc41 100644 --- a/Source/Core/VideoCommon/RenderBase.h +++ b/Source/Core/VideoCommon/RenderBase.h @@ -33,7 +33,6 @@ #include "VideoCommon/FrameDump.h" #include "VideoCommon/RenderState.h" #include "VideoCommon/TextureConfig.h" -#include "VideoCommon/VideoCommon.h" class AbstractFramebuffer; class AbstractPipeline; @@ -359,8 +358,8 @@ private: u64 m_last_xfb_id = std::numeric_limits<u64>::max(); // Note: Only used for auto-ir - u32 m_last_xfb_width = MAX_XFB_WIDTH; - u32 m_last_xfb_height = MAX_XFB_HEIGHT; + u32 m_last_xfb_width = 0; + u32 m_last_xfb_height = 0; // NOTE: The methods below are called on the framedumping thread. bool StartFrameDumpToFFMPEG(const FrameDumpConfig& config); diff --git a/Source/Core/VideoCommon/Statistics.cpp b/Source/Core/VideoCommon/Statistics.cpp index 98b60dd5da..366f332c36 100644 --- a/Source/Core/VideoCommon/Statistics.cpp +++ b/Source/Core/VideoCommon/Statistics.cpp @@ -8,6 +8,7 @@ #include <imgui.h> +#include "VideoCommon/VideoCommon.h" #include "VideoCommon/VideoConfig.h" Statistics g_stats; diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 2f42df9a05..12b39039dd 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -16,15 +16,15 @@ #include <vector> #include "Common/CommonTypes.h" +#include "Common/MathUtil.h" #include "VideoCommon/AbstractTexture.h" #include "VideoCommon/BPMemory.h" #include "VideoCommon/TextureConfig.h" #include "VideoCommon/TextureDecoder.h" -#include "VideoCommon/VideoCommon.h" -struct VideoConfig; class AbstractFramebuffer; class AbstractStagingTexture; +struct VideoConfig; struct TextureAndTLUTFormat { diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index d09b32cf82..aa4cd8f6dd 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -16,7 +16,6 @@ #include "Common/Logging/Log.h" #include "Core/ConfigManager.h" #include "Core/Core.h" -#include "Core/Host.h" // TODO: ugly #ifdef _WIN32 @@ -35,7 +34,6 @@ #include "VideoCommon/Fifo.h" #include "VideoCommon/GeometryShaderManager.h" #include "VideoCommon/IndexGenerator.h" -#include "VideoCommon/OnScreenDisplay.h" #include "VideoCommon/OpcodeDecoding.h" #include "VideoCommon/PixelEngine.h" #include "VideoCommon/PixelShaderManager.h" @@ -43,6 +41,7 @@ #include "VideoCommon/TextureCacheBase.h" #include "VideoCommon/VertexLoaderManager.h" #include "VideoCommon/VertexShaderManager.h" +#include "VideoCommon/VideoCommon.h" #include "VideoCommon/VideoConfig.h" #include "VideoCommon/VideoState.h" diff --git a/Source/Core/VideoCommon/VideoCommon.h b/Source/Core/VideoCommon/VideoCommon.h index 21aa5236a9..5c4b1b3615 100644 --- a/Source/Core/VideoCommon/VideoCommon.h +++ b/Source/Core/VideoCommon/VideoCommon.h @@ -3,8 +3,8 @@ // Refer to the license.txt file included. #pragma once + #include "Common/CommonTypes.h" -#include "Common/MathUtil.h" // Global flag to signal if FifoRecorder is active. extern bool g_bRecordFifoData; diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h index 674dfa8530..7008199a84 100644 --- a/Source/Core/VideoCommon/VideoConfig.h +++ b/Source/Core/VideoCommon/VideoConfig.h @@ -14,7 +14,8 @@ #include <vector> #include "Common/CommonTypes.h" -#include "VideoCommon/VideoCommon.h" + +enum class APIType; // Log in two categories, and save three other options in the same byte #define CONF_LOG 1 |
