LibreOffice Module vcl (master)  1
opengl/zone.hxx
Go to the documentation of this file.
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 #ifndef INCLUDED_VCL_INC_OPENGL_ZONE_H
11 #define INCLUDED_VCL_INC_OPENGL_ZONE_H
12 
13 #include <sal/config.h>
14 #include <sal/types.h>
15 #include <vcl/dllapi.h>
16 #include <comphelper/crashzone.hxx>
17 
22 class VCL_DLLPUBLIC OpenGLZone : public CrashZone<OpenGLZone>
23 {
24 public:
25  static void hardDisable();
26  static void relaxWatchdogTimings();
27  static const CrashWatchdogTimingsValues& getCrashWatchdogTimingsValues();
28  static void checkDebug(int nUnchanged, const CrashWatchdogTimingsValues& aTimingValues);
29  static const char* name() { return "OpenGL"; }
30 };
31 
32 #endif // INCLUDED_VCL_INC_OPENGL_ZONE_H
33 
34 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
We want to be able to detect if a given crash came from the OpenGL code, so use this helper to track ...
Definition: opengl/zone.hxx:22
static const char * name()
Definition: opengl/zone.hxx:29