mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-27 06:20:05 +00:00
Add performance overlay for DXVA2 renderer
This commit is contained in:
1 parent
e944c819d9
commit
b19c4bfc5d
10 files changed
+233
-68
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
|
||||
class OverlayManager
|
||||
{
|
||||
public:
|
||||
enum OverlayType {
|
||||
OverlayDebug,
|
||||
OverlayMinorNotification,
|
||||
OverlayMajorNotification,
|
||||
OverlayMax
|
||||
};
|
||||
|
||||
OverlayManager();
|
||||
|
||||
bool isOverlayEnabled(OverlayType type);
|
||||
char* getOverlayText(OverlayType type);
|
||||
void setOverlayState(OverlayType type, bool enabled);
|
||||
|
||||
struct {
|
||||
bool enabled;
|
||||
int updateSeq;
|
||||
char text[512];
|
||||
} m_Overlays[OverlayMax];
|
||||
};
|
||||
Reference in new issue
Block a user