summaryrefslogtreecommitdiff
path: root/src/debug/HyprDebugOverlay.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2023-03-24 19:23:16 +0000
committerGitHub <noreply@github.com>2023-03-24 19:23:16 +0000
commita80f8f257f05480a3a91e9da14715cb160ed2e0a (patch)
tree6b81c6bdb87b3f472a88224b67b0576d84e8ad99 /src/debug/HyprDebugOverlay.hpp
parentb3a70b565e67ebf00bcf4ecbae54fc96e527828e (diff)
Feat: Introduce render_ahead_of_time (#1863)
Diffstat (limited to 'src/debug/HyprDebugOverlay.hpp')
-rw-r--r--src/debug/HyprDebugOverlay.hpp5
1 files changed, 5 insertions, 0 deletions
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 <cairo/cairo.h>
#include <unordered_map>
+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<CHyprDebugOverlay> g_pDebugOverlay; \ No newline at end of file