renderer: add dpms animations (#11452)
This commit is contained in:
parent
3d4dc19412
commit
251288ec59
5 changed files with 64 additions and 15 deletions
|
|
@ -181,6 +181,10 @@ class CMonitor {
|
|||
// for special fade/blur
|
||||
PHLANIMVAR<float> m_specialFade;
|
||||
|
||||
// for dpms off anim
|
||||
PHLANIMVAR<float> m_dpmsBlackOpacity;
|
||||
bool m_pendingDpmsAnimation = false;
|
||||
|
||||
PHLANIMVAR<float> m_cursorZoom;
|
||||
|
||||
// for initial zoom anim
|
||||
|
|
@ -232,6 +236,7 @@ class CMonitor {
|
|||
bool attemptDirectScanout();
|
||||
void setCTM(const Mat3x3& ctm);
|
||||
void onCursorMovedOnMonitor();
|
||||
void setDPMS(bool on);
|
||||
|
||||
void debugLastPresentation(const std::string& message);
|
||||
|
||||
|
|
@ -259,6 +264,7 @@ class CMonitor {
|
|||
private:
|
||||
void setupDefaultWS(const SMonitorRule&);
|
||||
WORKSPACEID findAvailableDefaultWS();
|
||||
void commitDPMSState(bool state);
|
||||
|
||||
bool m_doneScheduled = false;
|
||||
std::stack<WORKSPACEID> m_prevWorkSpaces;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue