mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 18:24:45 -05:00
45 lines
1 KiB
C
45 lines
1 KiB
C
|
/*
|
||
|
* Copyright (c) 2022, kleines Filmröllchen <filmroellchen@serenityos.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "ScreenBackend.h"
|
||
|
#include "ScreenLayout.h"
|
||
|
#include <AK/Error.h>
|
||
|
#include <AK/Span.h>
|
||
|
#include <AK/String.h>
|
||
|
#include <sys/ioctl_numbers.h>
|
||
|
|
||
|
namespace WindowServer {
|
||
|
|
||
|
class VirtualScreenBackend : public ScreenBackend {
|
||
|
public:
|
||
|
virtual ~VirtualScreenBackend();
|
||
|
|
||
|
VirtualScreenBackend() = default;
|
||
|
|
||
|
private:
|
||
|
friend class Screen;
|
||
|
|
||
|
virtual ErrorOr<void> open() override;
|
||
|
|
||
|
virtual void set_head_buffer(int index) override;
|
||
|
|
||
|
virtual ErrorOr<void> flush_framebuffer_rects(int, Span<FBRect const>) override { return {}; }
|
||
|
|
||
|
virtual ErrorOr<void> unmap_framebuffer() override;
|
||
|
virtual ErrorOr<void> map_framebuffer() override;
|
||
|
|
||
|
virtual ErrorOr<void> set_head_resolution(FBHeadResolution) override;
|
||
|
virtual ErrorOr<FBHeadProperties> get_head_properties() override;
|
||
|
|
||
|
int m_height { 0 };
|
||
|
int m_width { 0 };
|
||
|
bool m_first_buffer_active { true };
|
||
|
};
|
||
|
|
||
|
}
|