KWin
Loading...
Searching...
No Matches
src
opengl
eglnativefence.h
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4
SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#pragma once
8
9
#include <epoxy/egl.h>
10
11
#include "kwin_export.h"
12
#include "
utils/filedescriptor.h
"
13
14
namespace
KWin
15
{
16
17
class
EglDisplay;
18
19
class
KWIN_EXPORT
EGLNativeFence
20
{
21
public
:
22
explicit
EGLNativeFence
(
EglDisplay
*display);
23
explicit
EGLNativeFence
(
EglDisplay
*display, EGLSyncKHR sync);
24
EGLNativeFence
(
EGLNativeFence
&&) =
delete
;
25
EGLNativeFence
(
const
EGLNativeFence
&) =
delete
;
26
~EGLNativeFence
();
27
28
bool
isValid()
const
;
29
const
FileDescriptor
&fileDescriptor()
const
;
30
bool
waitSync()
const
;
31
32
static
EGLNativeFence
importFence(
EglDisplay
*display,
FileDescriptor
&&fd);
33
34
private
:
35
EGLSyncKHR m_sync = EGL_NO_SYNC_KHR;
36
EglDisplay
*m_display =
nullptr
;
37
FileDescriptor
m_fileDescriptor;
38
};
39
40
}
// namespace KWin
KWin::EGLNativeFence
Definition
eglnativefence.h:20
KWin::EGLNativeFence::EGLNativeFence
EGLNativeFence(EGLNativeFence &&)=delete
KWin::EGLNativeFence::EGLNativeFence
EGLNativeFence(const EGLNativeFence &)=delete
KWin::EglDisplay
Definition
egldisplay.h:26
KWin::FileDescriptor
Definition
filedescriptor.h:17
filedescriptor.h
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0