[DRM plugin] No forward declare of DrmSurfaceBuffer without GBM

This fixes a compilation error introduced with efedddd905, which
forward declared the DrmSurfaceBuffer class also on builds without GBM.

BUG: 379732
This commit is contained in:
Roman Gilg 2017-05-11 23:47:27 +02:00
parent 6607bd72f2
commit 9334d0ac48
2 changed files with 4 additions and 3 deletions

View file

@ -705,15 +705,14 @@ DrmDumbBuffer *DrmBackend::createBuffer(const QSize &size)
return b;
}
#if HAVE_GBM
DrmSurfaceBuffer *DrmBackend::createBuffer(gbm_surface *surface)
{
#if HAVE_GBM
DrmSurfaceBuffer *b = new DrmSurfaceBuffer(this, surface);
return b;
#else
return nullptr;
#endif
}
#endif
void DrmBackend::outputDpmsChanged()
{

View file

@ -78,7 +78,9 @@ public:
void init() override;
DrmDumbBuffer *createBuffer(const QSize &size);
#if HAVE_GBM
DrmSurfaceBuffer *createBuffer(gbm_surface *surface);
#endif
void present(DrmBuffer *buffer, DrmOutput *output);
int fd() const {