mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23:31 +00:00
Add performance overlay for DXVA2 renderer
This commit is contained in:
@@ -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