summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-22 10:51:09 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-11-27 09:55:10 +0100
commitfb6a2d3afb67481565c666c10eee0a875808d803 (patch)
tree36350fbe5ee6f3e22d4e4b352997793327aa3451 /vcl/inc
parent7a5e8d5210a129ff0862d4774da2aa9b03715b3d (diff)
make Skia use either Raster or Vulkan, depending on a setting
For now default to raster, SAL_SKIA=vk switches to Vulkan. Change-Id: Ia0f3ffdd4367eac9871aa977c930c1e6029e1d25
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/skia/gdiimpl.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/inc/skia/gdiimpl.hxx b/vcl/inc/skia/gdiimpl.hxx
index af12c994d462..35106dba2ca7 100644
--- a/vcl/inc/skia/gdiimpl.hxx
+++ b/vcl/inc/skia/gdiimpl.hxx
@@ -219,6 +219,14 @@ protected:
void drawMask(const SalTwoRect& rPosAry, const SkBitmap& rBitmap, Color nMaskColor);
+ // Which Skia backend to use.
+ enum RenderMethod
+ {
+ RenderRaster,
+ RenderVulkan
+ };
+ static RenderMethod renderMethodToUse();
+
SalGraphics& mParent;
/// Pointer to the SalFrame or SalVirtualDevice
SalGeometryProvider* mProvider;