mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-05 01:10:24 +00:00
The recent commits28ba610f32and70c4ed261fadjusted some include directives to avoid excessive recompilation when changing some header files. This has broken compilation with clang-cl on Windows without getting noticed before the PRs were merged.
23 lines
494 B
C++
23 lines
494 B
C++
/*
|
|
* Copyright (c) 2024, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibGfx/Bitmap.h>
|
|
#include <LibGfx/Painter.h>
|
|
#include <LibGfx/PainterSkia.h>
|
|
#include <LibGfx/PaintingSurface.h>
|
|
|
|
namespace Gfx {
|
|
|
|
Painter::~Painter() = default;
|
|
|
|
NonnullOwnPtr<Painter> Painter::create(NonnullRefPtr<Gfx::Bitmap> target_bitmap)
|
|
{
|
|
auto painting_surface = PaintingSurface::wrap_bitmap(target_bitmap);
|
|
return make<PainterSkia>(painting_surface);
|
|
}
|
|
|
|
}
|