KWin
|
#include <drm_gpu.h>
Signals | |
void | activeChanged (bool active) |
void | outputAdded (DrmAbstractOutput *output) |
void | outputRemoved (DrmAbstractOutput *output) |
Public Member Functions | |
DrmGpu (DrmBackend *backend, const QString &devNode, int fd, dev_t deviceId) | |
~DrmGpu () | |
int | fd () const |
dev_t | deviceId () const |
QString | devNode () const |
bool | isRemoved () const |
void | setRemoved () |
void | setActive (bool active) |
bool | isActive () const |
bool | atomicModeSetting () const |
bool | addFB2ModifiersSupported () const |
bool | asyncPageflipSupported () const |
bool | isI915 () const |
bool | isNVidia () const |
gbm_device * | gbmDevice () const |
EglDisplay * | eglDisplay () const |
DrmBackend * | platform () const |
clockid_t | presentationClock () const |
QSize | cursorSize () const |
QList< DrmVirtualOutput * > | virtualOutputs () const |
QList< DrmOutput * > | drmOutputs () const |
const QList< DrmPipeline * > | pipelines () const |
void | setEglDisplay (std::unique_ptr< EglDisplay > &&display) |
bool | updateOutputs () |
void | removeOutputs () |
DrmVirtualOutput * | createVirtualOutput (const QString &name, const QSize &size, double scale) |
void | removeVirtualOutput (DrmVirtualOutput *output) |
DrmPipeline::Error | testPendingConfiguration () |
bool | needsModeset () const |
bool | maybeModeset () |
GraphicsBufferAllocator * | graphicsBufferAllocator () const |
std::shared_ptr< DrmFramebuffer > | importBuffer (GraphicsBuffer *buffer, FileDescriptor &&explicitFence) |
void | releaseBuffers () |
void | recreateSurfaces () |
FileDescriptor | createNonMasterFd () const |
std::unique_ptr< DrmLease > | leaseOutputs (const QList< DrmOutput * > &outputs) |
void | waitIdle () |
KWin::DrmGpu::DrmGpu | ( | DrmBackend * | backend, |
const QString & | devNode, | ||
int | fd, | ||
dev_t | deviceId ) |
Definition at line 47 of file drm_gpu.cpp.
KWin::DrmGpu::~DrmGpu | ( | ) |
Definition at line 111 of file drm_gpu.cpp.
|
signal |
bool KWin::DrmGpu::addFB2ModifiersSupported | ( | ) | const |
Definition at line 683 of file drm_gpu.cpp.
bool KWin::DrmGpu::asyncPageflipSupported | ( | ) | const |
Definition at line 688 of file drm_gpu.cpp.
bool KWin::DrmGpu::atomicModeSetting | ( | ) | const |
Definition at line 658 of file drm_gpu.cpp.
FileDescriptor KWin::DrmGpu::createNonMasterFd | ( | ) | const |
Definition at line 127 of file drm_gpu.cpp.
DrmVirtualOutput * KWin::DrmGpu::createVirtualOutput | ( | const QString & | name, |
const QSize & | size, | ||
double | scale ) |
Definition at line 595 of file drm_gpu.cpp.
QSize KWin::DrmGpu::cursorSize | ( | ) | const |
Definition at line 801 of file drm_gpu.cpp.
dev_t KWin::DrmGpu::deviceId | ( | ) | const |
Definition at line 653 of file drm_gpu.cpp.
QString KWin::DrmGpu::devNode | ( | ) | const |
Definition at line 663 of file drm_gpu.cpp.
QList< DrmOutput * > KWin::DrmGpu::drmOutputs | ( | ) | const |
Definition at line 643 of file drm_gpu.cpp.
EglDisplay * KWin::DrmGpu::eglDisplay | ( | ) | const |
Definition at line 673 of file drm_gpu.cpp.
int KWin::DrmGpu::fd | ( | ) | const |
Definition at line 648 of file drm_gpu.cpp.
gbm_device * KWin::DrmGpu::gbmDevice | ( | ) | const |
Definition at line 668 of file drm_gpu.cpp.
GraphicsBufferAllocator * KWin::DrmGpu::graphicsBufferAllocator | ( | ) | const |
Definition at line 834 of file drm_gpu.cpp.
std::shared_ptr< DrmFramebuffer > KWin::DrmGpu::importBuffer | ( | GraphicsBuffer * | buffer, |
FileDescriptor && | explicitFence ) |
Definition at line 839 of file drm_gpu.cpp.
bool KWin::DrmGpu::isActive | ( | ) | const |
Definition at line 738 of file drm_gpu.cpp.
bool KWin::DrmGpu::isI915 | ( | ) | const |
Definition at line 693 of file drm_gpu.cpp.
bool KWin::DrmGpu::isNVidia | ( | ) | const |
Definition at line 698 of file drm_gpu.cpp.
bool KWin::DrmGpu::isRemoved | ( | ) | const |
Definition at line 703 of file drm_gpu.cpp.
Definition at line 611 of file drm_gpu.cpp.
bool KWin::DrmGpu::maybeModeset | ( | ) |
Definition at line 750 of file drm_gpu.cpp.
bool KWin::DrmGpu::needsModeset | ( | ) | const |
Definition at line 743 of file drm_gpu.cpp.
|
signal |
|
signal |
const QList< DrmPipeline * > KWin::DrmGpu::pipelines | ( | ) | const |
Definition at line 590 of file drm_gpu.cpp.
DrmBackend * KWin::DrmGpu::platform | ( | ) | const |
Definition at line 585 of file drm_gpu.cpp.
clockid_t KWin::DrmGpu::presentationClock | ( | ) | const |
Returns the clock from which presentation timestamps are sourced. The returned value can be either CLOCK_MONOTONIC or CLOCK_REALTIME.
Definition at line 144 of file drm_gpu.cpp.
void KWin::DrmGpu::recreateSurfaces | ( | ) |
Definition at line 823 of file drm_gpu.cpp.
void KWin::DrmGpu::releaseBuffers | ( | ) |
Definition at line 806 of file drm_gpu.cpp.
void KWin::DrmGpu::removeOutputs | ( | ) |
Definition at line 362 of file drm_gpu.cpp.
void KWin::DrmGpu::removeVirtualOutput | ( | DrmVirtualOutput * | output | ) |
Definition at line 603 of file drm_gpu.cpp.
void KWin::DrmGpu::setActive | ( | bool | active | ) |
Definition at line 713 of file drm_gpu.cpp.
void KWin::DrmGpu::setEglDisplay | ( | std::unique_ptr< EglDisplay > && | display | ) |
Definition at line 678 of file drm_gpu.cpp.
void KWin::DrmGpu::setRemoved | ( | ) |
Definition at line 708 of file drm_gpu.cpp.
DrmPipeline::Error KWin::DrmGpu::testPendingConfiguration | ( | ) |
Definition at line 431 of file drm_gpu.cpp.
bool KWin::DrmGpu::updateOutputs | ( | ) |
Definition at line 239 of file drm_gpu.cpp.
QList< DrmVirtualOutput * > KWin::DrmGpu::virtualOutputs | ( | ) | const |
Definition at line 638 of file drm_gpu.cpp.
void KWin::DrmGpu::waitIdle | ( | ) |
Definition at line 493 of file drm_gpu.cpp.