mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibPDF: Return results directly and avoid unpacking+packing
This commit is contained in:
parent
aa9fab9c3a
commit
287bb0feac
Notes:
sideshowbarker
2024-07-17 03:34:13 +09:00
Author: https://github.com/rtobar
Commit: 287bb0feac
Pull-request: https://github.com/SerenityOS/serenity/pull/16202
1 changed files with 5 additions and 10 deletions
|
@ -319,8 +319,7 @@ RENDERER_HANDLER(path_fill_nonzero)
|
|||
|
||||
RENDERER_HANDLER(path_fill_nonzero_deprecated)
|
||||
{
|
||||
TRY(handle_path_fill_nonzero(args));
|
||||
return {};
|
||||
return handle_path_fill_nonzero(args);
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(path_fill_evenodd)
|
||||
|
@ -334,29 +333,25 @@ RENDERER_HANDLER(path_fill_evenodd)
|
|||
RENDERER_HANDLER(path_fill_stroke_nonzero)
|
||||
{
|
||||
m_anti_aliasing_painter.stroke_path(m_current_path, state().stroke_color, state().line_width);
|
||||
TRY(handle_path_fill_nonzero(args));
|
||||
return {};
|
||||
return handle_path_fill_nonzero(args);
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(path_fill_stroke_evenodd)
|
||||
{
|
||||
m_anti_aliasing_painter.stroke_path(m_current_path, state().stroke_color, state().line_width);
|
||||
TRY(handle_path_fill_evenodd(args));
|
||||
return {};
|
||||
return handle_path_fill_evenodd(args);
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(path_close_fill_stroke_nonzero)
|
||||
{
|
||||
m_current_path.close();
|
||||
TRY(handle_path_fill_stroke_nonzero(args));
|
||||
return {};
|
||||
return handle_path_fill_stroke_nonzero(args);
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(path_close_fill_stroke_evenodd)
|
||||
{
|
||||
m_current_path.close();
|
||||
TRY(handle_path_fill_stroke_evenodd(args));
|
||||
return {};
|
||||
return handle_path_fill_stroke_evenodd(args);
|
||||
}
|
||||
|
||||
RENDERER_HANDLER(path_end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue