1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

LibPDF+PDFViewer: Extract Renderer::apply_page_rotation()

No behavior change.
This commit is contained in:
Nico Weber 2024-02-25 09:36:21 -05:00 committed by Andreas Kling
parent 5e9395b808
commit 03fab7089a
3 changed files with 15 additions and 9 deletions

View file

@ -104,6 +104,8 @@ class Renderer {
public:
static PDFErrorsOr<void> render(Document&, Page const&, RefPtr<Gfx::Bitmap>, Color background_color, RenderingPreferences preferences);
static ErrorOr<NonnullRefPtr<Gfx::Bitmap>> apply_page_rotation(NonnullRefPtr<Gfx::Bitmap>, Page const&, int extra_degrees = 0);
struct FontCacheKey {
NonnullRefPtr<DictObject> font_dictionary;
float font_size;