/* * Copyright (c) 2020, Srimanta Barua * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Gfx { class PathRasterizer { public: PathRasterizer(Gfx::IntSize); void draw_path(Gfx::Path&); RefPtr accumulate(); private: void draw_line(Gfx::FloatPoint, Gfx::FloatPoint); Gfx::IntSize m_size; Vector m_data; }; }