LibreOffice Module vcl (master)  1
glxtestprocess.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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_INCLUDE_VCL_GLXTESTPROCESS_HXX
11 
12 #include <sal/config.h>
13 #include <config_features.h>
14 
15 #if defined(UNX) && !defined MACOSX && !defined IOS && !defined ANDROID && HAVE_FEATURE_UI \
16  && HAVE_FEATURE_OPENGL
17 /* Run test for OpenGL support in own process to avoid crash with broken
18  * OpenGL drivers. Start process as early as possible.
19  * In non-headless mode, the process will be reaped in X11OpenGLDeviceInfo::GetData
20  * (vcl/opengl/x11/X11DeviceInfo.cxx). In headless mode, the process will be reaped late in
21  * Desktop::Main (desktop/source/app/app.cxx).
22  */
23 
25 
27 
28 #else
29 
30 inline bool fire_glxtest_process() { return true; }
31 
32 inline void reap_glxtest_process() {}
33 
34 #endif
35 
36 #endif
37 
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
bool fire_glxtest_process()
void reap_glxtest_process()