Commit Graph
23 Commits
Author SHA1 Message Date
Ashod Nakashian a692cdf779 LOK: tilebench improvements
* Arguments for max number of parts and tiles to render (optional).
  + Automatic estimation of maximum tiles to render based on max parts
    for Writer docs, since there is only 1 part, this caps the number
    of pages to render, similar to other doc types.
* Fixed rendering of Writer documents over and over (as many times as pages).
  + Writer has a single part, unlike other doc types.
  + No point in rendering the whole document in writer to a single tile,
    since that's completely unrealistic and impractical (it takes
    forever for large docs and artificially spikes the memory).
* Rendering starts at the current part and not the first.
  + This gives the spreadsheet of interest priority (if saved as visible).
* The tile size is now more realistic as we use the same dimensions
  as the Online client does.
* When rendering tiles at scale, we use the same dimensions as the
  Online client rather than splitting the width by 4, for realism.
* Rendering of tiles is done rows-first, rather than columns-first,
  which is similar to what the Online client does, which is more
  cache friendly, therefore more realistic.
* Enabled compiling of tilebench when GTK3 is disabled, which
  was erroneous, since tilebench doesn't have any dependency on GTK.
  + Now it's possible to compile with local Cairo/Pixman libs.

Reviewed-on: https://gerrit.libreoffice.org/44936
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 7db98521548de9eab955ee25a5aacaaef42df323)

Change-Id: I6ad2e97f39572778dd7d0c12d14550841c1d6963
Reviewed-on: https://gerrit.libreoffice.org/46984
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2017-12-23 01:30:01 +01:00
Michael Stahl 4f05fdffbe tdf#113311 disable CppunitTest_libreofficekit_tiledrendering for now
Change-Id: I0f6e284d232388019bfa33f07a4afc864e0040a9
2017-10-20 22:16:17 +02:00
Pranav Kant 11a3449429 lokdocview: Package and install selection handles
Now since, LOKDocView has started to get clients, we need to ship
all of its dependencies with the widget.

Reviewed on:
	https://gerrit.libreoffice.org/21605

Change-Id: I874eb416587a80b7760c5f00183d6004dfca4cce
2016-01-19 18:04:52 +01:00
Stephan Bergmann b17ca2d478 Add a check for non-LIBO_INTERNAL_ONLY, C++03-compatible LibreOfficeKit.hxx
Change-Id: I56336b8163de48e424526f5f426c2ad350292627
2015-11-10 13:20:42 +01:00
Richard PALO fd612a144c Add DLOPEN_LIBS to configure for some cases where -ldl is needed
use std::sqrt in vcldemo.cxx

Change-Id: I24d8ba15ee267d0cad3b063df9b7cfd8d284f4ee
Reviewed-on: https://gerrit.libreoffice.org/18591
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-10-20 15:17:58 +00:00
Pranav Kant 23ca7d8a81 Superfluous block; lets merge into one
Change-Id: I2f49394c53deece8e86a7f290250c4f52918c5d8
2015-06-16 11:18:07 +02:00
Pranav Kant 9b3679301f lokdocview, gtktiledviewer: Port to gtk3
Change-Id: I57f2d7b9383790e5c34fc517a905dd537519598f
2015-06-15 12:09:58 +02:00
Stephan Bergmann b7e1bfefee Fix CppunitTest_libreofficekit_tiledrendering dependencies
Remove the unnecessary ones, but make sure that e.g. the sofficeapp library is
built (which was not covered by depending on services.rdb).

Change-Id: I1adfa4aaaf60787c944d71cc289cdafba8351c1b
2015-03-10 18:17:48 +01:00
Miklos Vajna 3687ae6f03 CppunitTest_libreofficekit_tiledrendering: fix up and enable this again
The main problem was that UserInstallation did not point to the usual
workdir/unittest/, so initialization failed early, not finding the
soffice.cfg directory under
workdir/CppunitTest/libreofficekit_tiledrendering.test.user/.

Disable one testcase that still fails, though.

Change-Id: I3fdae5ead47dd2a805a0ed8d3cb407938f868e3b
2015-03-09 10:16:11 +01:00
Tomaž Vajngerl e5cd9ee78b Revert "Implement lokconf_init."
This reverts commit 5acadbfb0c.

Conflicts:
	libreofficekit/qa/lokconf_init/lokconf_init.cxx

Change-Id: I88221f660bcf15cbc29e90bfc3016b367570f9af
2014-12-04 13:17:09 +01:00
Andrzej Hunt 5acadbfb0c Implement lokconf_init.
This is a simple executable which can be used to ensure there is a
pe-pared configuration for unit-tests to avoid the usually required
re-start on the first run.

Change-Id: I49b706e8daa93bc34db508a24615b63b9babddba
2014-12-04 12:23:00 +01:00
Norbert Thiebaud c68642d535 tilebench depend on linreooficekitgtk so need ENABLE_GTK too
Change-Id: I04b787493115de0190615f42248cc82968907e38
2014-10-18 15:44:12 -05:00
Michael Meeks 87fad21582 LOK: Add a tiled rendering testbench.
Change-Id: I631c0506f427d974c3dd4c75484aa25603100895
2014-10-02 00:23:06 +01:00
Andrzej Hunt 9e7bdb422d Kill the libreofficekit static library / shim.c.
It looks like the cleanest method of getting lok_init into
a LibreOfficeKitInit.h header (in a c89 compatible way) is to
have it as a static function.

(inline is only available in C99 or later -- this is actually
 available on Linux which is the only place that we can actually
 use lok_init anyways currently, however given we have to keep
 c89 for the C code (for MSVC) compatibility, selectively enabling
 c99 would likely be more messy.)

Change-Id: I0493e7a68ed5397479220bb6ba8c3db870b6dd32
2014-07-29 07:11:20 +02:00
Andrzej Hunt 63555d0318 Disable libreofficekit_tiledrendering test for now.
LOK Document loading seems to be quite unreliable for various reasons.
2014-07-18 16:34:26 +02:00
Jan Holesovsky 98fb5f98d8 Revert "libreofficekit does not work with libmerged"
Instead, we need to make sure it works with libmerged too :-)

This reverts commit 4e9d8ca44a.
2014-07-16 19:37:36 +02:00
Matúš Kukan 4e9d8ca44a libreofficekit does not work with libmerged
Change-Id: I3ca4cf51f6d3999a0f701f108a7c5c21329eb1c7
2014-07-15 21:59:17 +02:00
Andrzej Hunt a5fe08855b Add LOK tiled rendering divided-tile unit test.
I.e. we render the same area as one larger tile, and then
as 4 sub-tiles (which, when put together, should be identical
to the larger tile). However currently only the top-left sub-tile
actually matches the larger tile, so we have to disable the test
for the remaining sub-tiles.

Change-Id: If1130022b43898e20fefff3e9f592102da3e413a
2014-07-12 05:19:14 +02:00
Andrzej Hunt 2709ff61d3 libreofficekitgtk requires ENABLE_GTK.
Change-Id: I2ba47edc457e310548c8a62747a6a152ee5e1314
2014-06-27 09:16:38 +02:00
Andrzej Hunt 0cea87d60c Move gtktiledviewer into libreofficekit.
desktop is no longer the right place for it now that
libreofficekit has its own directory.

Change-Id: I207f1d642e7e35c460ff85bb57aa142cb98023c8
2014-06-25 13:04:32 +01:00
Andrzej Hunt d465dfb209 Implement LibreOfficeKit gtk+ viewer widget.
Very basic, but works.

Change-Id: I0c521e833b53e13065e0be48e6fa767e44b29787
2014-06-25 13:04:31 +01:00
Matúš Kukan 9d1e6613c4 rename in Module makefile too
Change-Id: Ie3a19a5c3de0021b89eefbacb91c88e38396b8cb
2014-06-13 10:32:09 +02:00
Andrzej Hunt 9a1b2970ed Move liblibreoffice into LibreOfficeKit.
Change-Id: Ib2754a77be470faaa6f9b27644a1d8dd082ed2b8
2014-06-11 13:44:55 +01:00