graphics_tracing.h 927 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2015 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "citra_qt/debugger/graphics/graphics_breakpoint_observer.h"
  6. class EmuThread;
  7. class GraphicsTracingWidget : public BreakPointObserverDock {
  8. Q_OBJECT
  9. public:
  10. explicit GraphicsTracingWidget(std::shared_ptr<Pica::DebugContext> debug_context,
  11. QWidget* parent = nullptr);
  12. private slots:
  13. void StartRecording();
  14. void StopRecording();
  15. void AbortRecording();
  16. void OnBreakPointHit(Pica::DebugContext::Event event, void* data) override;
  17. void OnResumed() override;
  18. void OnEmulationStarting(EmuThread* emu_thread);
  19. void OnEmulationStopping();
  20. signals:
  21. void SetStartTracingButtonEnabled(bool enable);
  22. void SetStopTracingButtonEnabled(bool enable);
  23. void SetAbortTracingButtonEnabled(bool enable);
  24. };