/src/libreoffice/vcl/inc/skia/zone.hxx
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
5 | | * This Source Code Form is subject to the terms of the Mozilla Public |
6 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
7 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
8 | | */ |
9 | | |
10 | | #pragma once |
11 | | |
12 | | #include <comphelper/crashzone.hxx> |
13 | | |
14 | | #include <vcl/dllapi.h> |
15 | | #include <vcl/svapp.hxx> |
16 | | |
17 | | // Used around calls to Skia code to detect crashes in drivers. |
18 | | class VCL_DLLPUBLIC SkiaZone : public CrashZone<SkiaZone> |
19 | | { |
20 | | public: |
21 | | static void hardDisable(); |
22 | | static void relaxWatchdogTimings(); |
23 | | static const CrashWatchdogTimingsValues& getCrashWatchdogTimingsValues(); |
24 | | static void checkDebug(int nUnchanged, const CrashWatchdogTimingsValues& aTimingValues); |
25 | 0 | static const char* name() { return "Skia"; } |
26 | | |
27 | | private: |
28 | | SolarMutexGuard g; |
29 | | }; |
30 | | |
31 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |