summaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/graphics_framebuffer.h
diff options
context:
space:
mode:
authorGravatar Tony Wasserka2015-02-11 22:17:46 +0100
committerGravatar Tony Wasserka2015-02-11 22:17:46 +0100
commitf990728ad44246e5eca0e5ace32ea47f68e280c3 (patch)
tree40b3e6837a25b8d7b8e269776df9553ad6e3bf41 /src/citra_qt/debugger/graphics_framebuffer.h
parentMerge pull request #558 from kevinhartman/gsp-writereg-mask (diff)
parentcitra-qt: Add a vertex shader debugger. (diff)
downloadyuzu-f990728ad44246e5eca0e5ace32ea47f68e280c3.tar.gz
yuzu-f990728ad44246e5eca0e5ace32ea47f68e280c3.tar.xz
yuzu-f990728ad44246e5eca0e5ace32ea47f68e280c3.zip
Merge pull request #384 from neobrain/vertex_shader_debugger
Vertex shader debugger
Diffstat (limited to 'src/citra_qt/debugger/graphics_framebuffer.h')
-rw-r--r--src/citra_qt/debugger/graphics_framebuffer.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/citra_qt/debugger/graphics_framebuffer.h b/src/citra_qt/debugger/graphics_framebuffer.h
index 56215761e..c6e293bc9 100644
--- a/src/citra_qt/debugger/graphics_framebuffer.h
+++ b/src/citra_qt/debugger/graphics_framebuffer.h
@@ -6,7 +6,7 @@
6 6
7#include <QDockWidget> 7#include <QDockWidget>
8 8
9#include "video_core/debug_utils/debug_utils.h" 9#include "graphics_breakpoint_observer.h"
10 10
11class QComboBox; 11class QComboBox;
12class QLabel; 12class QLabel;
@@ -14,28 +14,6 @@ class QSpinBox;
14 14
15class CSpinBox; 15class CSpinBox;
16 16
17// Utility class which forwards calls to OnPicaBreakPointHit and OnPicaResume to public slots.
18// This is because the Pica breakpoint callbacks are called from a non-GUI thread, while
19// the widget usually wants to perform reactions in the GUI thread.
20class BreakPointObserverDock : public QDockWidget, Pica::DebugContext::BreakPointObserver {
21 Q_OBJECT
22
23public:
24 BreakPointObserverDock(std::shared_ptr<Pica::DebugContext> debug_context, const QString& title,
25 QWidget* parent = nullptr);
26
27 void OnPicaBreakPointHit(Pica::DebugContext::Event event, void* data) override;
28 void OnPicaResume() override;
29
30private slots:
31 virtual void OnBreakPointHit(Pica::DebugContext::Event event, void* data) = 0;
32 virtual void OnResumed() = 0;
33
34signals:
35 void Resumed();
36 void BreakPointHit(Pica::DebugContext::Event event, void* data);
37};
38
39class GraphicsFramebufferWidget : public BreakPointObserverDock { 17class GraphicsFramebufferWidget : public BreakPointObserverDock {
40 Q_OBJECT 18 Q_OBJECT
41 19