Make SurfaceInterface::buffer() const

This commit is contained in:
Vlad Zahorodnii 2021-07-23 19:58:42 +03:00
parent 0045eaecfa
commit 0fcc4af42d
2 changed files with 2 additions and 2 deletions

View file

@ -720,7 +720,7 @@ OutputInterface::Transform SurfaceInterface::bufferTransform() const
return d->current.bufferTransform;
}
ClientBuffer *SurfaceInterface::buffer()
ClientBuffer *SurfaceInterface::buffer() const
{
return d->bufferRef;
}

View file

@ -178,7 +178,7 @@ public:
/**
* @returns the current ClientBuffer, might be @c nullptr.
*/
ClientBuffer *buffer();
ClientBuffer *buffer() const;
QPoint offset() const;
/**
* Returns the current size of the surface, in surface coordinates.