Add performance overlay for DXVA2 renderer
This commit is contained in:
parent
e944c819d9
commit
b19c4bfc5d
10 changed files with 233 additions and 68 deletions
26
app/streaming/video/overlaymanager.h
Normal file
26
app/streaming/video/overlaymanager.h
Normal file
|
|
@ -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];
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue