diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-16 09:45:52 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-16 11:25:50 +0200 |
commit | 11754fd7923c727e921bb6cbaf88d2765082667c (patch) | |
tree | 67a14a283b08278f9fbfd258f5d38c9c9ca2e588 /editeng/source | |
parent | db8c70324091f9608a9e71e0df7bbdf9a371bf3b (diff) |
editeng tiled rendering: avoid selections callbacks in Paint()
Given that we emit selection callbacks on each logical operations (set
selection, deselect all, etc) already, it's not necessary to emit
callbacks in DrawSelection() when it's called from Paint().
Change-Id: I6781c71ee2f292de2a1c7d129fc49b514aca2be1
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 99a982941511..3fa08b4ff458 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -3882,7 +3882,10 @@ void ImpEditEngine::Paint( ImpEditView* pView, const Rectangle& rRect, OutputDev else pTarget->SetClipRegion(); - pView->DrawSelection(pView->GetEditSelection(), 0, pTarget); + // In case of tiled rendering pass a region to DrawSelection(), so that + // selection callbacks are not emitted during every repaint. + vcl::Region aRegion; + pView->DrawSelection(pView->GetEditSelection(), pView->isTiledRendering() ? &aRegion : 0, pTarget); } } |