File indexing completed on 2024-05-19 16:34:57

0001 /*
0002     KWin - the KDE window manager
0003     This file is part of the KDE project.
0004 
0005     SPDX-FileCopyrightText: 2017 Martin Flöser <mgraesslin@kde.org>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 #include "abstract_opengl_context_attribute_builder.h"
0010 
0011 namespace KWin
0012 {
0013 
0014 QDebug AbstractOpenGLContextAttributeBuilder::operator<<(QDebug dbg) const
0015 {
0016     QDebugStateSaver saver(dbg);
0017     dbg.nospace() << "\nVersion requested:\t" << isVersionRequested() << "\n";
0018     if (isVersionRequested()) {
0019         dbg.nospace() << "Version:\t" << majorVersion() << "." << minorVersion() << "\n";
0020     }
0021     dbg.nospace() << "Robust:\t" << isRobust() << "\n";
0022     dbg.nospace() << "Reset on video memory purge:\t" << isResetOnVideoMemoryPurge() << "\n";
0023     dbg.nospace() << "Forward compatible:\t" << isForwardCompatible() << "\n";
0024     dbg.nospace() << "Core profile:\t" << isCoreProfile() << "\n";
0025     dbg.nospace() << "Compatibility profile:\t" << isCompatibilityProfile() << "\n";
0026     dbg.nospace() << "High priority:\t" << isHighPriority();
0027     return dbg;
0028 }
0029 
0030 }