[poppler] cpp/poppler-page-renderer.cpp

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 14 21:17:08 UTC 2019


 cpp/poppler-page-renderer.cpp |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 792da2e1e08671ba0e9d01c8714bd1747861701f
Author: Julián Unrrein <junrrein at gmail.com>
Date:   Tue May 14 15:42:08 2019 -0300

    cpp: Change displayPageSlice parameter to make render_page thread-safe
    
    This allows applications to render different pages on different threads

diff --git a/cpp/poppler-page-renderer.cpp b/cpp/poppler-page-renderer.cpp
index fa548157..f63867f6 100644
--- a/cpp/poppler-page-renderer.cpp
+++ b/cpp/poppler-page-renderer.cpp
@@ -303,7 +303,9 @@ image page_renderer::render_page(const page *p,
     pdfdoc->displayPageSlice(&splashOutputDev, pp->index + 1,
                              xres, yres, int(rotate) * 90,
                              false, true, false,
-                             x, y, w, h);
+                             x, y, w, h,
+                             nullptr, nullptr, nullptr, nullptr,
+                             true);
 
     SplashBitmap *bitmap = splashOutputDev.getBitmap();
     const int bw = bitmap->getWidth();


More information about the poppler mailing list