summaryrefslogtreecommitdiffstats
path: root/include/svx/sdrpaintwindow.hxx
diff options
context:
space:
mode:
authorArmin Le Grand <armin.le.grand@me.com>2020-02-27 16:43:44 +0100
committerArmin Le Grand <Armin.Le.Grand@me.com>2020-02-27 18:12:30 +0100
commit424312aa99307da9f0ee60ea6e3213b2b3dc26b4 (patch)
treebe71b53596bccdba919059799f56bec0412fa101 /include/svx/sdrpaintwindow.hxx
parenttdf#126626: move UItest to CppunitTest (diff)
downloadcore-424312aa99307da9f0ee60ea6e3213b2b3dc26b4.tar.gz
core-424312aa99307da9f0ee60ea6e3213b2b3dc26b4.zip
tdf#130768 Make tiled writer paint reuse decomposes
See more info in comment 23 of task. Roughly it's about correcting a helper that led to destroying the View and thus the OC and thus the whole primitive buffering - what was expensive, for the case where decompositions were expensive Change-Id: Ic661ae810083a35812eaa923b439b3856b34b9ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89640 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'include/svx/sdrpaintwindow.hxx')
-rw-r--r--include/svx/sdrpaintwindow.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/svx/sdrpaintwindow.hxx b/include/svx/sdrpaintwindow.hxx
index 55ecb22fd159..91183258a382 100644
--- a/include/svx/sdrpaintwindow.hxx
+++ b/include/svx/sdrpaintwindow.hxx
@@ -89,6 +89,9 @@ private:
bool mbOutputToWindow : 1;
+ // ref to patched
+ SdrPaintWindow* mpPatched;
+
// helpers
void impCreateOverlayManager();
@@ -96,6 +99,10 @@ public:
SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut, vcl::Window* pWindow = nullptr);
~SdrPaintWindow();
+ // allow reference to patched, see patchPaintWindow/unpatchPaintWindow
+ void setPatched(SdrPaintWindow* pPaintWindow) { mpPatched = pPaintWindow; }
+ SdrPaintWindow* getPatched() const { return mpPatched; }
+
// data read accesses
OutputDevice& GetOutputDevice() const { return *mpOutputDevice; }
vcl::Window* GetWindow() const { return mpWindow; }