backends/drm: Drop EglGbmBackend::{importBufferObjectAsImage,importBufferObjectAsTexture}
They're unused.
This commit is contained in:
parent
d6a384627b
commit
9af2eb0bfc
2 changed files with 0 additions and 23 deletions
|
@ -22,7 +22,6 @@
|
|||
#include "drm_output.h"
|
||||
#include "drm_pipeline.h"
|
||||
#include "drm_virtual_egl_layer.h"
|
||||
#include "gbm_dmabuf.h"
|
||||
#include "kwineglutils_p.h"
|
||||
#include "options.h"
|
||||
#include "scene/surfaceitem_wayland.h"
|
||||
|
@ -280,22 +279,4 @@ bool operator==(const GbmFormat &lhs, const GbmFormat &rhs)
|
|||
return lhs.drmFormat == rhs.drmFormat;
|
||||
}
|
||||
|
||||
EGLImageKHR EglGbmBackend::importBufferObjectAsImage(gbm_bo *bo)
|
||||
{
|
||||
std::optional<DmaBufAttributes> attributes = dmaBufAttributesForBo(bo);
|
||||
if (!attributes.has_value()) {
|
||||
return EGL_NO_IMAGE_KHR;
|
||||
}
|
||||
return importDmaBufAsImage(attributes.value());
|
||||
}
|
||||
|
||||
std::shared_ptr<GLTexture> EglGbmBackend::importBufferObjectAsTexture(gbm_bo *bo)
|
||||
{
|
||||
std::optional<DmaBufAttributes> attributes = dmaBufAttributesForBo(bo);
|
||||
if (!attributes.has_value()) {
|
||||
return nullptr;
|
||||
}
|
||||
return importDmaBufAsTexture(attributes.value());
|
||||
}
|
||||
|
||||
} // namespace KWin
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
#include <QPointer>
|
||||
#include <optional>
|
||||
|
||||
struct gbm_bo;
|
||||
|
||||
namespace KWaylandServer
|
||||
{
|
||||
class SurfaceInterface;
|
||||
|
@ -73,8 +71,6 @@ public:
|
|||
std::optional<GbmFormat> gbmFormatForDrmFormat(uint32_t format) const;
|
||||
DrmGpu *gpu() const;
|
||||
|
||||
EGLImageKHR importBufferObjectAsImage(gbm_bo *bo);
|
||||
std::shared_ptr<GLTexture> importBufferObjectAsTexture(gbm_bo *bo);
|
||||
EglContext *contextForGpu(DrmGpu *gpu);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue