MCPcopy Create free account
hub / github.com/CuarzoSoftware/Louvre / GPresentation

Method GPresentation

src/lib/protocols/PresentationTime/GPresentation.cpp:33–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33GPresentation::GPresentation
34(
35 wl_client *client,
36 Int32 version,
37 UInt32 id
38) noexcept
39 :LResource
40 (
41 client,
42 interface(),
43 version,
44 id,
45 &imp
46 )
47{
48 this->client()->imp()->presentationTimeGlobals.push_back(this);
49
50 if (seat()->outputs().empty())
51 clockId(CLOCK_MONOTONIC);
52 else
53 clockId(compositor()->imp()->graphicBackend->outputGetClock(seat()->outputs().front()));
54}
55
56GPresentation::~GPresentation() noexcept
57{

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.80
clientMethod · 0.45
outputGetClockMethod · 0.45

Tested by

no test coverage detected