/* * Copyright (c) 2021, Liav A. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace Kernel { class RawFramebufferDevice : public FramebufferDevice { AK_MAKE_ETERNAL friend class GraphicsDevice; public: static NonnullRefPtr create(const GraphicsDevice&, PhysicalAddress, size_t width, size_t height, size_t pitch); virtual ~RawFramebufferDevice() {}; private: RawFramebufferDevice(PhysicalAddress, size_t width, size_t height, size_t pitch); virtual const char* class_name() const override { return "RawFramebuffer"; } }; }