LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | Friends | List of all members
OpenGLZone Class Reference

We want to be able to detect if a given crash came from the OpenGL code, so use this helper to track that. More...

#include <zone.hxx>

Public Member Functions

 OpenGLZone ()
 
 ~OpenGLZone ()
 

Static Public Member Functions

static bool isInZone ()
 
static void hardDisable ()
 Called from a signal handler or watchdog thread if we get a crash or hang in some GL code. More...
 
static void relaxWatchdogTimings ()
 

Static Private Member Functions

static void enter ()
 
static void leave ()
 

Static Private Attributes

static volatile sal_uInt64 gnEnterCount = 0
 how many times have we entered a GL zone More...
 
static volatile sal_uInt64 gnLeaveCount = 0
 how many times have we left a new GL zone More...
 

Friends

class OpenGLZoneTest
 
class OpenGLWatchdogThread
 
class OpenGLSalGraphicsImpl
 

Detailed Description

We want to be able to detect if a given crash came from the OpenGL code, so use this helper to track that.

Definition at line 24 of file zone.hxx.

Constructor & Destructor Documentation

OpenGLZone::OpenGLZone ( )
inline

Definition at line 37 of file zone.hxx.

OpenGLZone::~OpenGLZone ( )
inline

Definition at line 38 of file zone.hxx.

Member Function Documentation

void OpenGLZone::enter ( )
staticprivate

Definition at line 803 of file OpenGLHelper.cxx.

void OpenGLZone::hardDisable ( )
static

Called from a signal handler or watchdog thread if we get a crash or hang in some GL code.

Definition at line 926 of file OpenGLHelper.cxx.

References comphelper::ConfigurationChanges::create(), comphelper::getProcessComponentContext(), and OpenGLWatchdogThread::stop().

Referenced by OpenGLWatchdogThread::execute(), and VCLExceptionSignal_impl().

static bool OpenGLZone::isInZone ( )
inlinestatic

Definition at line 39 of file zone.hxx.

Referenced by OpenGLWatchdogThread::execute(), and VCLExceptionSignal_impl().

void OpenGLZone::leave ( )
staticprivate

Definition at line 804 of file OpenGLHelper.cxx.

void OpenGLZone::relaxWatchdogTimings ( )
static

Definition at line 950 of file OpenGLHelper.cxx.

Referenced by OpenGLHelper::isDeviceBlacklisted().

Friends And Related Function Documentation

friend class OpenGLSalGraphicsImpl
friend

Definition at line 27 of file zone.hxx.

friend class OpenGLWatchdogThread
friend

Definition at line 26 of file zone.hxx.

friend class OpenGLZoneTest
friend

Definition at line 25 of file zone.hxx.

Member Data Documentation

sal_uInt64 volatile OpenGLZone::gnEnterCount = 0
staticprivate

how many times have we entered a GL zone

Definition at line 30 of file zone.hxx.

Referenced by OpenGLWatchdogThread::execute().

sal_uInt64 volatile OpenGLZone::gnLeaveCount = 0
staticprivate

how many times have we left a new GL zone

Definition at line 32 of file zone.hxx.


The documentation for this class was generated from the following files: