mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-28 18:40:29 +00:00
21 lines
467 B
C++
21 lines
467 B
C++
/*
|
|
* Copyright (c) 2024, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#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);
|
|
}
|
|
|
|
}
|