Avoid potential negative array index access to cached text.
[LibreOffice.git] / vcl / inc / skia / zone.hxx
blob73fa477d5249698c738c6b4b58759131413aeeba
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_VCL_INC_SKIA_ZONE_H
11 #define INCLUDED_VCL_INC_SKIA_ZONE_H
13 #include <comphelper/crashzone.hxx>
15 #include <vcl/dllapi.h>
16 #include <vcl/svapp.hxx>
18 // Used around calls to Skia code to detect crashes in drivers.
19 class VCL_DLLPUBLIC SkiaZone : public CrashZone<SkiaZone>
21 public:
22 static void hardDisable();
23 static void relaxWatchdogTimings();
24 static const CrashWatchdogTimingsValues& getCrashWatchdogTimingsValues();
25 static void checkDebug(int nUnchanged, const CrashWatchdogTimingsValues& aTimingValues);
26 static const char* name() { return "Skia"; }
28 private:
29 SolarMutexGuard g;
32 #endif // INCLUDED_VCL_INC_SKIA_ZONE_H
34 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */