diff options
Diffstat (limited to 'src/citra_qt/debugger/graphics_tracing.h')
| -rw-r--r-- | src/citra_qt/debugger/graphics_tracing.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_tracing.h b/src/citra_qt/debugger/graphics_tracing.h new file mode 100644 index 000000000..2a0e4819b --- /dev/null +++ b/src/citra_qt/debugger/graphics_tracing.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | // Copyright 2015 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "graphics_breakpoint_observer.h" | ||
| 8 | |||
| 9 | class EmuThread; | ||
| 10 | |||
| 11 | class GraphicsTracingWidget : public BreakPointObserverDock { | ||
| 12 | Q_OBJECT | ||
| 13 | |||
| 14 | public: | ||
| 15 | GraphicsTracingWidget(std::shared_ptr<Pica::DebugContext> debug_context, QWidget* parent = nullptr); | ||
| 16 | |||
| 17 | private slots: | ||
| 18 | void StartRecording(); | ||
| 19 | void StopRecording(); | ||
| 20 | void AbortRecording(); | ||
| 21 | |||
| 22 | void OnBreakPointHit(Pica::DebugContext::Event event, void* data) override; | ||
| 23 | void OnResumed() override; | ||
| 24 | |||
| 25 | void OnEmulationStarting(EmuThread* emu_thread); | ||
| 26 | void OnEmulationStopping(); | ||
| 27 | |||
| 28 | signals: | ||
| 29 | void SetStartTracingButtonEnabled(bool enable); | ||
| 30 | void SetStopTracingButtonEnabled(bool enable); | ||
| 31 | void SetAbortTracingButtonEnabled(bool enable); | ||
| 32 | }; | ||