1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

Kernel/Graphics: Rename GraphicsDevice => GenericGraphicsAdapter

We already use the term adapter for instances of this class, so let's
better represent this class by changing its name to what it really is.
This commit is contained in:
Liav A 2021-09-22 09:17:07 +03:00 committed by Idan Horowitz
parent c7eb761b7f
commit 78e724a899
11 changed files with 27 additions and 27 deletions

View file

@ -10,7 +10,7 @@
#include <AK/String.h>
#include <AK/Types.h>
#include <Kernel/Devices/BlockDevice.h>
#include <Kernel/Graphics/GraphicsDevice.h>
#include <Kernel/Graphics/GenericGraphicsAdapter.h>
#include <Kernel/Locking/Spinlock.h>
#include <Kernel/Memory/AnonymousVMObject.h>
#include <Kernel/PhysicalAddress.h>
@ -22,7 +22,7 @@ class FramebufferDevice : public BlockDevice {
friend class DeviceManagement;
public:
static NonnullRefPtr<FramebufferDevice> create(const GraphicsDevice&, size_t, PhysicalAddress, size_t, size_t, size_t);
static NonnullRefPtr<FramebufferDevice> create(const GenericGraphicsAdapter&, size_t, PhysicalAddress, size_t, size_t, size_t);
virtual KResult ioctl(OpenFileDescription&, unsigned request, Userspace<void*> arg) override;
virtual KResultOr<Memory::Region*> mmap(Process&, OpenFileDescription&, Memory::VirtualRange const&, u64 offset, int prot, bool shared) override;
@ -35,11 +35,11 @@ public:
KResult initialize();
protected:
FramebufferDevice(const GraphicsDevice&, size_t);
NonnullRefPtr<GraphicsDevice> m_graphics_adapter;
FramebufferDevice(const GenericGraphicsAdapter&, size_t);
NonnullRefPtr<GenericGraphicsAdapter> m_graphics_adapter;
private:
FramebufferDevice(const GraphicsDevice&, size_t, PhysicalAddress, size_t, size_t, size_t);
FramebufferDevice(const GenericGraphicsAdapter&, size_t, PhysicalAddress, size_t, size_t, size_t);
// ^File
virtual StringView class_name() const override { return "FramebufferDevice"sv; }