/src/libreoffice/vcl/inc/opengl/zone.hxx
Line | Count | Source |
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 <sal/config.h> |
13 | | #include <vcl/dllapi.h> |
14 | | #include <comphelper/crashzone.hxx> |
15 | | |
16 | | /** |
17 | | * We want to be able to detect if a given crash came |
18 | | * from the OpenGL code, so use this helper to track that. |
19 | | */ |
20 | | class VCL_DLLPUBLIC OpenGLZone : public CrashZone<OpenGLZone> |
21 | | { |
22 | | public: |
23 | | static void hardDisable(); |
24 | | static void relaxWatchdogTimings(); |
25 | | static const CrashWatchdogTimingsValues& getCrashWatchdogTimingsValues(); |
26 | | static void checkDebug(int nUnchanged, const CrashWatchdogTimingsValues& aTimingValues); |
27 | 0 | static const char* name() { return "OpenGL"; } |
28 | | }; |
29 | | |
30 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |