summaryrefslogtreecommitdiff
path: root/src/video_core
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/video_core
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/video_core')
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp15
-rw-r--r--src/video_core/debug_utils/debug_utils.h14
2 files changed, 3 insertions, 26 deletions
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: