The user code should not rely on concrete GraphicsBuffer implementations, but instead of generic abstractions.
20 lines
393 B
C++
20 lines
393 B
C++
/*
|
|
SPDX-FileCopyrightText: 2023 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "core/graphicsbufferallocator.h"
|
|
|
|
namespace KWin
|
|
{
|
|
|
|
class KWIN_EXPORT ShmGraphicsBufferAllocator : public GraphicsBufferAllocator
|
|
{
|
|
public:
|
|
GraphicsBuffer *allocate(const GraphicsBufferOptions &options) override;
|
|
};
|
|
|
|
} // namespace KWin
|