diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-03-10 17:27:25 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-03-10 17:38:07 +0200 |
commit | 440b90c9949631846c1d1c886d2ea029b17d0ffa (patch) | |
tree | c74cbbe6ce2e350c575382a555f1cf05e9168f8a /unotools | |
parent | bff2ddbbfb8a4cebee2cc223c3bba6a8d9ebc038 (diff) |
Avoid "delayed" rendering in the tiled rendering case
Obviously, when using tiled rendering, all of the tile should be
rendered at once during the call to lo_touch_draw_tile(). Nothing
should be delayed to happen later (when the PaintTimer fires). The
main culprit causing such "delayed" rendering, at least in a certain
test document, seems to be SmartArt objects.
It is not 100% clear how to determine whether tiled rendering is being
used, though. For now, let's assume it is always the case on
non-desktop (i.e. iOS and Android, even if for Android we dont
actually do it). For desktop platforms, including liblibreoffice, will
have to figure out later how we want to do it, assume never for now.
Change-Id: I0f7e7172e7a699a0c6752ee465776f9da5c3098e
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/fltrcfg.cxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/unotools/source/config/fltrcfg.cxx b/unotools/source/config/fltrcfg.cxx index f8e1f843ff33..54e5453b5a80 100644 --- a/unotools/source/config/fltrcfg.cxx +++ b/unotools/source/config/fltrcfg.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> #include <unotools/fltrcfg.hxx> #include <tools/debug.hxx> @@ -601,10 +602,24 @@ void SvtFilterOptions::SetImpress2PowerPoint( bool bFlag ) SetModified(); } - +static bool lcl_DoTiledRendering() +{ +#if !HAVE_FEATURE_DESKTOP + // We do tiled rendering only for iOS at the moment, actually, but + // let's see what happens if we assume it for Android, too. + return true; +#else + // We need some way to know globally if this process will use + // tiled rendering or not. Or should this be a per-window setting? + // Or what? + return false; +#endif +} bool SvtFilterOptions::IsSmartArt2Shape() const { + if (lcl_DoTiledRendering()) + return true; return pImp->IsFlag( FILTERCFG_SMARTART_SHAPE_LOAD ); } |