diff options
Diffstat (limited to 'vcl/skia')
-rw-r--r-- | vcl/skia/SkiaHelper.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/skia/SkiaHelper.cxx b/vcl/skia/SkiaHelper.cxx index e31540ae449c..6b04c4300fe4 100644 --- a/vcl/skia/SkiaHelper.cxx +++ b/vcl/skia/SkiaHelper.cxx @@ -36,6 +36,7 @@ bool isVCLSkiaEnabled() { return false; } #include <SkCanvas.h> #include <SkPaint.h> #include <SkSurface.h> +#include <SkGraphics.h> #include <skia_compiler.hxx> #ifdef DBG_UTIL @@ -237,6 +238,7 @@ bool isVCLSkiaEnabled() if (bForceSkia && bSupportsVCLSkia) { bRet = true; + SkGraphics::Init(); // don't actually block if blacklisted, but log it if enabled, and also get the vendor id checkDeviceBlacklisted(true); } @@ -260,7 +262,10 @@ bool isVCLSkiaEnabled() bEnable = false; if (bEnable) + { + SkGraphics::Init(); checkDeviceBlacklisted(); // switch to raster if driver is blacklisted + } bRet = bEnable; } |