From a80f8f257f05480a3a91e9da14715cb160ed2e0a Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Fri, 24 Mar 2023 19:23:16 +0000 Subject: Feat: Introduce render_ahead_of_time (#1863) --- src/debug/HyprDebugOverlay.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/debug/HyprDebugOverlay.hpp') diff --git a/src/debug/HyprDebugOverlay.hpp b/src/debug/HyprDebugOverlay.hpp index 67f188d2..03027018 100644 --- a/src/debug/HyprDebugOverlay.hpp +++ b/src/debug/HyprDebugOverlay.hpp @@ -7,6 +7,8 @@ #include #include +class CHyprRenderer; + class CHyprMonitorDebugOverlay { public: int draw(int offset); @@ -23,6 +25,8 @@ class CHyprMonitorDebugOverlay { std::chrono::high_resolution_clock::time_point m_tpLastFrame; CMonitor* m_pMonitor = nullptr; wlr_box m_wbLastDrawnBox; + + friend class CHyprRenderer; }; class CHyprDebugOverlay { @@ -41,6 +45,7 @@ class CHyprDebugOverlay { CTexture m_tTexture; friend class CHyprMonitorDebugOverlay; + friend class CHyprRenderer; }; inline std::unique_ptr g_pDebugOverlay; \ No newline at end of file -- cgit v1.2.3