summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-08-27 15:44:29 -0400
committerGravatar GitHub2018-08-27 15:44:29 -0400
commitf96ded98150cdfd3b591cc973317cf5c14224a9a (patch)
tree56cb1928957d20b7ed826debb33f6b94a6ce05cd /src
parentMerge pull request #1162 from ogniK5377/ttf-plu (diff)
parentdebug_utils: Remove unused includes (diff)
downloadyuzu-f96ded98150cdfd3b591cc973317cf5c14224a9a.tar.gz
yuzu-f96ded98150cdfd3b591cc973317cf5c14224a9a.tar.xz
yuzu-f96ded98150cdfd3b591cc973317cf5c14224a9a.zip
Merge pull request #1174 from lioncash/debug
debug_utils: Minor individual interface changes
Diffstat (limited to 'src')
-rw-r--r--src/core/core.h1
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp15
-rw-r--r--src/video_core/debug_utils/debug_utils.h14
-rw-r--r--src/yuzu/debugger/graphics/graphics_breakpoints.cpp1
-rw-r--r--src/yuzu/debugger/graphics/graphics_surface.cpp3
5 files changed, 7 insertions, 27 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 7188dabdc..0fab76b7f 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -5,6 +5,7 @@
5#pragma once 5#pragma once
6 6
7#include <array> 7#include <array>
8#include <map>
8#include <memory> 9#include <memory>
9#include <string> 10#include <string>
10#include <thread> 11#include <thread>
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp
index 22d44aab2..5ffb492ea 100644
--- a/src/video_core/debug_utils/debug_utils.cpp
+++ b/src/video_core/debug_utils/debug_utils.cpp
@@ -2,23 +2,8 @@
2// Licensed under GPLv2 2// Licensed under GPLv2
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm>
6#include <condition_variable>
7#include <cstdint>
8#include <cstring>
9#include <fstream>
10#include <map>
11#include <mutex> 5#include <mutex>
12#include <string>
13 6
14#include "common/assert.h"
15#include "common/bit_field.h"
16#include "common/color.h"
17#include "common/common_types.h"
18#include "common/file_util.h"
19#include "common/logging/log.h"
20#include "common/math_util.h"
21#include "common/vector_math.h"
22#include "video_core/debug_utils/debug_utils.h" 7#include "video_core/debug_utils/debug_utils.h"
23 8
24namespace Tegra { 9namespace Tegra {
diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.h
index 9382a75e5..c235faf46 100644
--- a/src/video_core/debug_utils/debug_utils.h
+++ b/src/video_core/debug_utils/debug_utils.h
@@ -4,19 +4,11 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <algorithm>
8#include <array> 7#include <array>
9#include <condition_variable> 8#include <condition_variable>
10#include <iterator>
11#include <list> 9#include <list>
12#include <map>
13#include <memory> 10#include <memory>
14#include <mutex> 11#include <mutex>
15#include <string>
16#include <utility>
17#include <vector>
18#include "common/common_types.h"
19#include "common/vector_math.h"
20 12
21namespace Tegra { 13namespace Tegra {
22 14
@@ -46,7 +38,7 @@ public:
46 class BreakPointObserver { 38 class BreakPointObserver {
47 public: 39 public:
48 /// Constructs the object such that it observes events of the given DebugContext. 40 /// Constructs the object such that it observes events of the given DebugContext.
49 BreakPointObserver(std::shared_ptr<DebugContext> debug_context) 41 explicit BreakPointObserver(std::shared_ptr<DebugContext> debug_context)
50 : context_weak(debug_context) { 42 : context_weak(debug_context) {
51 std::unique_lock<std::mutex> lock(debug_context->breakpoint_mutex); 43 std::unique_lock<std::mutex> lock(debug_context->breakpoint_mutex);
52 debug_context->breakpoint_observers.push_back(this); 44 debug_context->breakpoint_observers.push_back(this);
@@ -141,8 +133,8 @@ public:
141 } 133 }
142 134
143 // TODO: Evaluate if access to these members should be hidden behind a public interface. 135 // TODO: Evaluate if access to these members should be hidden behind a public interface.
144 std::array<BreakPoint, (int)Event::NumEvents> breakpoints; 136 std::array<BreakPoint, static_cast<int>(Event::NumEvents)> breakpoints;
145 Event active_breakpoint; 137 Event active_breakpoint{};
146 bool at_breakpoint = false; 138 bool at_breakpoint = false;
147 139
148private: 140private:
diff --git a/src/yuzu/debugger/graphics/graphics_breakpoints.cpp b/src/yuzu/debugger/graphics/graphics_breakpoints.cpp
index eb16a38a0..fe682b3b8 100644
--- a/src/yuzu/debugger/graphics/graphics_breakpoints.cpp
+++ b/src/yuzu/debugger/graphics/graphics_breakpoints.cpp
@@ -2,6 +2,7 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <map>
5#include <QLabel> 6#include <QLabel>
6#include <QMetaType> 7#include <QMetaType>
7#include <QPushButton> 8#include <QPushButton>
diff --git a/src/yuzu/debugger/graphics/graphics_surface.cpp b/src/yuzu/debugger/graphics/graphics_surface.cpp
index e037223c2..2b20cf5b9 100644
--- a/src/yuzu/debugger/graphics/graphics_surface.cpp
+++ b/src/yuzu/debugger/graphics/graphics_surface.cpp
@@ -11,12 +11,13 @@
11#include <QPushButton> 11#include <QPushButton>
12#include <QScrollArea> 12#include <QScrollArea>
13#include <QSpinBox> 13#include <QSpinBox>
14#include "common/vector_math.h"
14#include "core/core.h" 15#include "core/core.h"
16#include "core/memory.h"
15#include "video_core/engines/maxwell_3d.h" 17#include "video_core/engines/maxwell_3d.h"
16#include "video_core/gpu.h" 18#include "video_core/gpu.h"
17#include "video_core/textures/decoders.h" 19#include "video_core/textures/decoders.h"
18#include "video_core/textures/texture.h" 20#include "video_core/textures/texture.h"
19#include "video_core/utils.h"
20#include "yuzu/debugger/graphics/graphics_surface.h" 21#include "yuzu/debugger/graphics/graphics_surface.h"
21#include "yuzu/util/spinbox.h" 22#include "yuzu/util/spinbox.h"
22 23