RawFramebufferDevice.cpp 673 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <Kernel/Graphics/RawFramebufferDevice.h>
  7. namespace Kernel {
  8. UNMAP_AFTER_INIT NonnullRefPtr<RawFramebufferDevice> RawFramebufferDevice::create(const GraphicsDevice&, PhysicalAddress framebuffer_address, size_t width, size_t height, size_t pitch)
  9. {
  10. return adopt_ref(*new RawFramebufferDevice(framebuffer_address, width, height, pitch));
  11. }
  12. UNMAP_AFTER_INIT RawFramebufferDevice::RawFramebufferDevice(PhysicalAddress framebuffer_address, size_t width, size_t height, size_t pitch)
  13. : FramebufferDevice(framebuffer_address, width, height, pitch)
  14. {
  15. }
  16. }