summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
author191919 <ilford@gmail.com>2020-10-27 15:38:39 +0800
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-29 16:38:01 +0100
commit87964eb39e2668f80bcbf503d9a3b55a7f86ce28 (patch)
tree7b344db732089e1b52776a2b4fd5dea240686c63 /vcl/inc
parent3021a32b810c20331916c4863f1f0b23b5a53b23 (diff)
Speed improments
Improve drawing performance on 10-bit displays by avoiding multiple color space conversions. Make all drawing context bitmaps have the colour space and byte order of the host window. Fix serious CoreGraphics-related memory leak (existed no later than version 7.0) when changing the window size. Change-Id: Ia7b7e88d47b728bd1d10dedc1ca222215de41e73 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104858 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/quartz/salgdi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/quartz/salgdi.h b/vcl/inc/quartz/salgdi.h
index 8058b68378b6..0aaf71f0f839 100644
--- a/vcl/inc/quartz/salgdi.h
+++ b/vcl/inc/quartz/salgdi.h
@@ -134,6 +134,8 @@ class AquaSalGraphics : public SalGraphics
{
CGLayerHolder maLayer; // Quartz graphics layer
CGContextHolder maContextHolder; // Quartz drawing context
+ CGContextHolder maBGContextHolder; // Quartz drawing context for CGLayer
+ CGContextHolder maCSContextHolder; // Quartz drawing context considering the color space
XorEmulation* mpXorEmulation;
int mnXorMode; // 0: off 1: on 2: invert only