KWin
Loading...
Searching...
No Matches
src
wayland
presentationtime.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2023 Xaver Hugl <xaver.hugl@gmail.com>
3
4
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5
*/
6
#pragma once
7
8
#include <QObject>
9
#include <chrono>
10
11
#include "
core/renderbackend.h
"
12
#include "
effect/globals.h
"
13
#include "wayland/qwayland-server-presentation-time.h"
14
15
namespace
KWin
16
{
17
18
class
Display
;
19
class
SurfaceInterface;
20
21
class
PresentationTime
:
public
QObject, QtWaylandServer::wp_presentation
22
{
23
Q_OBJECT
24
public
:
25
explicit
PresentationTime
(
Display
*display, QObject *parent);
26
27
private
:
28
void
wp_presentation_bind_resource(Resource *resource)
override
;
29
void
wp_presentation_destroy(Resource *resource)
override
;
30
void
wp_presentation_feedback(Resource *resource, wl_resource *surface, uint32_t callback)
override
;
31
};
32
33
class
PresentationTimeFeedback
:
public
PresentationFeedback
34
{
35
public
:
36
PresentationTimeFeedback
();
37
~PresentationTimeFeedback
()
override
;
38
39
wl_list
resources
;
40
41
void
presented
(std::chrono::nanoseconds refreshCycleDuration, std::chrono::nanoseconds timestamp,
PresentationMode
mode)
override
;
42
};
43
44
}
KWin::Display
Class holding the Wayland server display loop.
Definition
display.h:34
KWin::PresentationFeedback
Definition
renderbackend.h:31
KWin::PresentationTimeFeedback
Definition
presentationtime.h:34
KWin::PresentationTimeFeedback::~PresentationTimeFeedback
~PresentationTimeFeedback() override
Definition
presentationtime.cpp:54
KWin::PresentationTimeFeedback::PresentationTimeFeedback
PresentationTimeFeedback()
Definition
presentationtime.cpp:49
KWin::PresentationTimeFeedback::presented
void presented(std::chrono::nanoseconds refreshCycleDuration, std::chrono::nanoseconds timestamp, PresentationMode mode) override
Definition
presentationtime.cpp:64
KWin::PresentationTimeFeedback::resources
wl_list resources
Definition
presentationtime.h:39
KWin::PresentationTime
Definition
presentationtime.h:22
KWin::PresentationTime::PresentationTime
PresentationTime(Display *display, QObject *parent)
Definition
presentationtime.cpp:15
globals.h
KWin
Definition
activation_test.cpp:20
KWin::PresentationMode
PresentationMode
Definition
globals.h:276
renderbackend.h
Display
struct _XDisplay Display
Definition
x11_standalone_egl_backend.h:18
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0