summaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/citra_qt/debugger/graphics.h')
-rw-r--r--src/citra_qt/debugger/graphics.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics.h b/src/citra_qt/debugger/graphics.h
new file mode 100644
index 000000000..8119b4c87
--- /dev/null
+++ b/src/citra_qt/debugger/graphics.h
@@ -0,0 +1,43 @@
1// Copyright 2014 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 <QAbstractListModel>
8#include <QDockWidget>
9
10#include "video_core/gpu_debugger.h"
11
12class GPUCommandStreamItemModel : public QAbstractListModel, public GraphicsDebugger::DebuggerObserver
13{
14 Q_OBJECT
15
16public:
17 GPUCommandStreamItemModel(QObject* parent);
18
19 int rowCount(const QModelIndex& parent = QModelIndex()) const override;
20 QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
21
22public:
23 void GXCommandProcessed(int total_command_count) override;
24
25public slots:
26 void OnGXCommandFinishedInternal(int total_command_count);
27
28signals:
29 void GXCommandFinished(int total_command_count);
30
31private:
32 int command_count;
33};
34
35class GPUCommandStreamWidget : public QDockWidget
36{
37 Q_OBJECT
38
39public:
40 GPUCommandStreamWidget(QWidget* parent = 0);
41
42private:
43};