diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-08-23 17:57:48 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-08-24 13:17:23 +0200 |
commit | d4afd3aeb4ef2727986551816c1ff9ad0ed12d04 (patch) | |
tree | 40694dde66cac18d071acc647ea107aea5c61c9f /vcl/skia/zone.cxx | |
parent | ddcdc2077fab2b6d9c4def4e4615185411cbe80a (diff) |
initial Metal support for Mac/Skia
This also required changing SkiaSalGraphicsImpl to have sk_app::WindowContext
as an internal detail inaccessible to the base class, since the Mac
implementations cannot use it as is.
Change-Id: I2424f0b887c79ee91c3bd0f1477b0745f9540247
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120909
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/skia/zone.cxx')
-rw-r--r-- | vcl/skia/zone.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/skia/zone.cxx b/vcl/skia/zone.cxx index d9010b7a96b2..f954173662ff 100644 --- a/vcl/skia/zone.cxx +++ b/vcl/skia/zone.cxx @@ -62,15 +62,16 @@ const CrashWatchdogTimingsValues& SkiaZone::getCrashWatchdogTimingsValues() switch (renderMethodToUse()) { case RenderVulkan: + case RenderMetal: { #if defined(SK_RELEASE) - static const CrashWatchdogTimingsValues vulkanValues = { 6, 20 }; /* 1.5s, 5s */ + static const CrashWatchdogTimingsValues gpuValues = { 6, 20 }; /* 1.5s, 5s */ #elif defined(SK_DEBUG) - static const CrashWatchdogTimingsValues vulkanValues = { 60, 200 }; /* 15s, 50s */ + static const CrashWatchdogTimingsValues gpuValues = { 60, 200 }; /* 15s, 50s */ #else #error Unknown Skia debug/release setting. #endif - return vulkanValues; + return gpuValues; } case RenderRaster: { |