diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-04-16 01:37:48 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-04-16 01:37:48 +0100 |
| commit | 877fb5b93ada9b25b4d2f5ca5f69370fa345f1ac (patch) | |
| tree | 5b52ad19c695590ae50c7adae06b8e3aeccf34c1 /src/protocols/ToplevelExport.hpp | |
| parent | 0e521788bcc414c9cf81648d3167757d83deb60f (diff) | |
time: move to stl's clocks and move timer
Diffstat (limited to 'src/protocols/ToplevelExport.hpp')
| -rw-r--r-- | src/protocols/ToplevelExport.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/protocols/ToplevelExport.hpp b/src/protocols/ToplevelExport.hpp index 21aafde5..907f6236 100644 --- a/src/protocols/ToplevelExport.hpp +++ b/src/protocols/ToplevelExport.hpp @@ -4,6 +4,7 @@ #include "hyprland-toplevel-export-v1.hpp" #include "WaylandProtocol.hpp" #include "Screencopy.hpp" +#include "../helpers/time/Time.hpp" #include <vector> @@ -62,8 +63,8 @@ class CToplevelExportFrame { CBox box = {}; void copy(CHyprlandToplevelExportFrameV1* pFrame, wl_resource* buffer, int32_t ignoreDamage); - bool copyDmabuf(timespec* now); - bool copyShm(timespec* now); + bool copyDmabuf(const Time::steady_tp& now); + bool copyShm(const Time::steady_tp& now); void share(); bool shouldOverlayCursor() const; @@ -87,8 +88,8 @@ class CToplevelExportProtocol : IWaylandProtocol { std::vector<WP<CToplevelExportFrame>> m_vFramesAwaitingWrite; void shareFrame(CToplevelExportFrame* frame); - bool copyFrameDmabuf(CToplevelExportFrame* frame, timespec* now); - bool copyFrameShm(CToplevelExportFrame* frame, timespec* now); + bool copyFrameDmabuf(CToplevelExportFrame* frame, const Time::steady_tp& now); + bool copyFrameShm(CToplevelExportFrame* frame, const Time::steady_tp& now); void sendDamage(CToplevelExportFrame* frame); friend class CToplevelExportClient; |
