mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
de50d27870
This new painter is written with a virtual interface from the start, and we begin with a Skia backend. This patch adds enough to support our basic 2D HTML canvas usecase.
19 lines
361 B
C++
19 lines
361 B
C++
/*
|
|
* Copyright (c) 2024, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibGfx/Painter.h>
|
|
#include <LibGfx/PainterSkia.h>
|
|
|
|
namespace Gfx {
|
|
|
|
Painter::~Painter() = default;
|
|
|
|
NonnullOwnPtr<Painter> Painter::create(NonnullRefPtr<Gfx::Bitmap> target_bitmap)
|
|
{
|
|
return make<PainterSkia>(move(target_bitmap));
|
|
}
|
|
|
|
}
|