xbmc
Classes | Public Member Functions | List of all members
KODI::WINDOWING::GBM::CGBMUtils::CGBMDevice::CGBMSurface Class Reference

A wrapper for gbm_surface to allow OOP and RAII. More...

#include <GBMUtils.h>

Classes

class  CGBMSurfaceBuffer
 A wrapper for gbm_bo to allow OOP and RAII. More...
 

Public Member Functions

 CGBMSurface (const CGBMSurface &)=delete
 
CGBMSurfaceoperator= (const CGBMSurface &)=delete
 
 CGBMSurface (gbm_surface *surface)
 
gbm_surface * Get () const
 Get the underlying gbm_surface. More...
 
CGBMSurfaceBufferLockFrontBuffer ()
 Lock the surface's current front buffer. More...
 

Detailed Description

A wrapper for gbm_surface to allow OOP and RAII.

Member Function Documentation

◆ Get()

gbm_surface* KODI::WINDOWING::GBM::CGBMUtils::CGBMDevice::CGBMSurface::Get ( ) const
inline

Get the underlying gbm_surface.

Returns
gbm_surface* A pointer to the underlying gbm_surface

◆ LockFrontBuffer()

CGBMUtils::CGBMDevice::CGBMSurface::CGBMSurfaceBuffer * CGBMUtils::CGBMDevice::CGBMSurface::LockFrontBuffer ( )

Lock the surface's current front buffer.

Returns
CGBMSurfaceBuffer* A pointer to a CGBMSurfaceBuffer object

The documentation for this class was generated from the following files: