diff options
author | Rodrigo Tobar <rtobar@icrar.org> | 2022-11-24 09:38:23 +0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-10 10:49:03 +0100 |
commit | 287bb0feacc86599d6024d4e6cb40c1608ba69a2 (patch) | |
tree | 6e4dac437526ee800ce28653a5b4f8dc533194b6 /Userland | |
parent | aa9fab9c3a102ab03d3d5d5a1a721d187ddb8b36 (diff) | |
download | serenity-287bb0feacc86599d6024d4e6cb40c1608ba69a2.zip |
LibPDF: Return results directly and avoid unpacking+packing
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibPDF/Renderer.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/Userland/Libraries/LibPDF/Renderer.cpp b/Userland/Libraries/LibPDF/Renderer.cpp index 36b9a54ff6..e80d6213d1 100644 --- a/Userland/Libraries/LibPDF/Renderer.cpp +++ b/Userland/Libraries/LibPDF/Renderer.cpp @@ -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) |