diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-11-13 13:27:57 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:16 +0100 |
commit | 241730a71bcde0aca285c9e28d3811693e259dce (patch) | |
tree | 3131ecf27724a09b75eb24737c63b06f0272044a /include | |
parent | 178079863415bd3618b2008c20aa42ed50ca90ea (diff) |
make Skia VCL backend fall back to raster if vulkan doesn't work
Change-Id: Ic446f6f85e5ebc2e50cb51a3ed1e732b8976a193
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/skia/SkiaHelper.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/vcl/skia/SkiaHelper.hxx b/include/vcl/skia/SkiaHelper.hxx index 77e9fab5797a..d27cffd650f3 100644 --- a/include/vcl/skia/SkiaHelper.hxx +++ b/include/vcl/skia/SkiaHelper.hxx @@ -12,6 +12,8 @@ #include <vcl/dllapi.h> +#include <config_features.h> + // All member functions static and VCL_DLLPUBLIC. Basically a glorified namespace. struct VCL_DLLPUBLIC SkiaHelper { @@ -19,6 +21,17 @@ struct VCL_DLLPUBLIC SkiaHelper public: static bool isVCLSkiaEnabled(); + +#if HAVE_FEATURE_SKIA + // Which Skia backend to use. + enum RenderMethod + { + RenderRaster, + RenderVulkan + }; + static RenderMethod renderMethodToUse(); + static void disableRenderMethod(RenderMethod method); +#endif }; #endif |