mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:17:35 +00:00
LibPDF: Return results directly and avoid unpacking+packing
This commit is contained in:
parent
aa9fab9c3a
commit
287bb0feac
1 changed files with 5 additions and 10 deletions
|
@ -319,8 +319,7 @@ RENDERER_HANDLER(path_fill_nonzero)
|
||||||
|
|
||||||
RENDERER_HANDLER(path_fill_nonzero_deprecated)
|
RENDERER_HANDLER(path_fill_nonzero_deprecated)
|
||||||
{
|
{
|
||||||
TRY(handle_path_fill_nonzero(args));
|
return handle_path_fill_nonzero(args);
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RENDERER_HANDLER(path_fill_evenodd)
|
RENDERER_HANDLER(path_fill_evenodd)
|
||||||
|
@ -334,29 +333,25 @@ RENDERER_HANDLER(path_fill_evenodd)
|
||||||
RENDERER_HANDLER(path_fill_stroke_nonzero)
|
RENDERER_HANDLER(path_fill_stroke_nonzero)
|
||||||
{
|
{
|
||||||
m_anti_aliasing_painter.stroke_path(m_current_path, state().stroke_color, state().line_width);
|
m_anti_aliasing_painter.stroke_path(m_current_path, state().stroke_color, state().line_width);
|
||||||
TRY(handle_path_fill_nonzero(args));
|
return handle_path_fill_nonzero(args);
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RENDERER_HANDLER(path_fill_stroke_evenodd)
|
RENDERER_HANDLER(path_fill_stroke_evenodd)
|
||||||
{
|
{
|
||||||
m_anti_aliasing_painter.stroke_path(m_current_path, state().stroke_color, state().line_width);
|
m_anti_aliasing_painter.stroke_path(m_current_path, state().stroke_color, state().line_width);
|
||||||
TRY(handle_path_fill_evenodd(args));
|
return handle_path_fill_evenodd(args);
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RENDERER_HANDLER(path_close_fill_stroke_nonzero)
|
RENDERER_HANDLER(path_close_fill_stroke_nonzero)
|
||||||
{
|
{
|
||||||
m_current_path.close();
|
m_current_path.close();
|
||||||
TRY(handle_path_fill_stroke_nonzero(args));
|
return handle_path_fill_stroke_nonzero(args);
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RENDERER_HANDLER(path_close_fill_stroke_evenodd)
|
RENDERER_HANDLER(path_close_fill_stroke_evenodd)
|
||||||
{
|
{
|
||||||
m_current_path.close();
|
m_current_path.close();
|
||||||
TRY(handle_path_fill_stroke_evenodd(args));
|
return handle_path_fill_stroke_evenodd(args);
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RENDERER_HANDLER(path_end)
|
RENDERER_HANDLER(path_end)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue