aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/Renderer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/Renderer.hpp')
-rw-r--r--src/render/Renderer.hpp54
1 files changed, 28 insertions, 26 deletions
diff --git a/src/render/Renderer.hpp b/src/render/Renderer.hpp
index 18929738..82da4b69 100644
--- a/src/render/Renderer.hpp
+++ b/src/render/Renderer.hpp
@@ -31,35 +31,37 @@ struct SSessionLockSurface;
class CHyprRenderer {
public:
- void renderAllClientsForMonitor(const int&, timespec*);
- void outputMgrApplyTest(wlr_output_configuration_v1*, bool);
- void arrangeLayersForMonitor(const int&);
- void damageSurface(wlr_surface*, double, double);
- void damageWindow(CWindow*);
- void damageBox(wlr_box*);
- void damageBox(const int& x, const int& y, const int& w, const int& h);
- void damageRegion(pixman_region32_t*);
- void damageMonitor(CMonitor*);
- void damageMirrorsWith(CMonitor*, pixman_region32_t*);
- bool applyMonitorRule(CMonitor*, SMonitorRule*, bool force = false);
- bool shouldRenderWindow(CWindow*, CMonitor*);
- bool shouldRenderWindow(CWindow*);
- void ensureCursorRenderingMode();
- bool shouldRenderCursor();
- void calculateUVForSurface(CWindow*, wlr_surface*, bool main = false);
+ void renderMonitor(CMonitor* pMonitor);
+ void renderAllClientsForMonitor(const int&, timespec*);
+ void outputMgrApplyTest(wlr_output_configuration_v1*, bool);
+ void arrangeLayersForMonitor(const int&);
+ void damageSurface(wlr_surface*, double, double);
+ void damageWindow(CWindow*);
+ void damageBox(wlr_box*);
+ void damageBox(const int& x, const int& y, const int& w, const int& h);
+ void damageRegion(pixman_region32_t*);
+ void damageMonitor(CMonitor*);
+ void damageMirrorsWith(CMonitor*, pixman_region32_t*);
+ bool applyMonitorRule(CMonitor*, SMonitorRule*, bool force = false);
+ bool shouldRenderWindow(CWindow*, CMonitor*);
+ bool shouldRenderWindow(CWindow*);
+ void ensureCursorRenderingMode();
+ bool shouldRenderCursor();
+ void calculateUVForSurface(CWindow*, wlr_surface*, bool main = false);
+ std::tuple<float, float, float> getRenderTimes(CMonitor* pMonitor); // avg max min
- bool m_bWindowRequestedCursorHide = false;
- bool m_bBlockSurfaceFeedback = false;
- bool m_bRenderingSnapshot = false;
- CWindow* m_pLastScanout = nullptr;
- CMonitor* m_pMostHzMonitor = nullptr;
- bool m_bDirectScanoutBlocked = false;
- bool m_bSoftwareCursorsLocked = false;
+ bool m_bWindowRequestedCursorHide = false;
+ bool m_bBlockSurfaceFeedback = false;
+ bool m_bRenderingSnapshot = false;
+ CWindow* m_pLastScanout = nullptr;
+ CMonitor* m_pMostHzMonitor = nullptr;
+ bool m_bDirectScanoutBlocked = false;
+ bool m_bSoftwareCursorsLocked = false;
- DAMAGETRACKINGMODES damageTrackingModeFromStr(const std::string&);
+ DAMAGETRACKINGMODES damageTrackingModeFromStr(const std::string&);
- bool attemptDirectScanout(CMonitor*);
- void setWindowScanoutMode(CWindow*);
+ bool attemptDirectScanout(CMonitor*);
+ void setWindowScanoutMode(CWindow*);
private:
void arrangeLayerArray(CMonitor*, const std::vector<std::unique_ptr<SLayerSurface>>&, bool, wlr_box*);