diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2024-07-07 20:39:03 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-09-20 22:19:31 +0200 |
commit | 6d159f4dcf170644b98a01727d740406c7849fab (patch) | |
tree | edffa50477b2fb2df7cde61f759b4b9ab5f60b9b /slideshow | |
parent | 3b4ecb07a6f0295441317ab889796034506bc8af (diff) |
lok: sd: slideshow render: some bug fixes
The suggested canvas size need to be passed to createSlideRenderer.
masterPageObjectsVisible -> masterPageObjectsVisibility as on client.
Last json message should be reset on each call to renderNextLayer.
In order to avoid to send empty layer check if the json message has
been set.
After rendering the background layer we need to return or the layer
is never received.
Change-Id: I9a83895d4f3895f3363c1b6a86fac9bd22c9fe87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173728
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/slide/slideimpl.cxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx index ce1043719168..6bb05bb874f6 100644 --- a/slideshow/source/engine/slide/slideimpl.cxx +++ b/slideshow/source/engine/slide/slideimpl.cxx @@ -370,25 +370,35 @@ void LOKSlideRenderer::renderNextLayer(unsigned char* pBuffer) { OSL_ASSERT(pBuffer); + msLastJsonMessage = ""_ostr; + mbIsBitmapLayer = false; + if (mbRenderBackground && !isBackgroundRenderingDone()) + { renderBackground(pBuffer); + if (!msLastJsonMessage.isEmpty()) + return; + } if (!isTextFieldsRenderingDone()) { renderTextFields(pBuffer); - return; + if (!msLastJsonMessage.isEmpty()) + return; } if (mbRenderMasterPageObjects && !isMasterPageRenderingDone()) { renderMasterPage(pBuffer); - return; + if (!msLastJsonMessage.isEmpty()) + return; } if (!isDrawPageRenderingDone()) { renderDrawPage(pBuffer); - return; + if (!msLastJsonMessage.isEmpty()) + return; } mbSlideRenderingDone = true; |