| 31 | } |
| 32 | |
| 33 | GPresentation::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 | |
| 56 | GPresentation::~GPresentation() noexcept |
| 57 | { |
nothing calls this directly
no test coverage detected