diff options
| author | bunnei <bunneidev@gmail.com> | 2018-08-27 15:44:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-27 15:44:29 -0400 |
| commit | f96ded98150cdfd3b591cc973317cf5c14224a9a (patch) | |
| tree | 56cb1928957d20b7ed826debb33f6b94a6ce05cd /src/video_core/debug_utils/debug_utils.h | |
| parent | 8c66a5a9a56d16b3b585d969a9c78f67ce02820d (diff) | |
| parent | c65713832c5e71da57b31e17173fb2d1c3b7f2fd (diff) | |
Merge pull request #1174 from lioncash/debug
debug_utils: Minor individual interface changes
Diffstat (limited to 'src/video_core/debug_utils/debug_utils.h')
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.h | 14 |
1 files changed, 3 insertions, 11 deletions
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 @@ #pragma once -#include <algorithm> #include <array> #include <condition_variable> -#include <iterator> #include <list> -#include <map> #include <memory> #include <mutex> -#include <string> -#include <utility> -#include <vector> -#include "common/common_types.h" -#include "common/vector_math.h" namespace Tegra { @@ -46,7 +38,7 @@ public: class BreakPointObserver { public: /// Constructs the object such that it observes events of the given DebugContext. - BreakPointObserver(std::shared_ptr<DebugContext> debug_context) + explicit BreakPointObserver(std::shared_ptr<DebugContext> debug_context) : context_weak(debug_context) { std::unique_lock<std::mutex> lock(debug_context->breakpoint_mutex); debug_context->breakpoint_observers.push_back(this); @@ -141,8 +133,8 @@ public: } // TODO: Evaluate if access to these members should be hidden behind a public interface. - std::array<BreakPoint, (int)Event::NumEvents> breakpoints; - Event active_breakpoint; + std::array<BreakPoint, static_cast<int>(Event::NumEvents)> breakpoints; + Event active_breakpoint{}; bool at_breakpoint = false; private: |
