diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-04-29 07:43:28 +0300 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-04-29 07:56:09 +0300 |
commit | 1b68f71348ecf3983b76b40d7940da8377f049b7 (patch) | |
tree | 2974eddaef130a067c26033d60a59fc790365b3d /indra/llwindow/lldxhardware.h | |
parent | af4ea94efc1999f3b19fd8d643d0331f0b77e265 (diff) |
#824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed
Diffstat (limited to 'indra/llwindow/lldxhardware.h')
-rw-r--r-- | indra/llwindow/lldxhardware.h | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/indra/llwindow/lldxhardware.h b/indra/llwindow/lldxhardware.h index 9cec3e2f1b..12273e97bc 100644 --- a/indra/llwindow/lldxhardware.h +++ b/indra/llwindow/lldxhardware.h @@ -1,25 +1,25 @@ -/** +/** * @file lldxhardware.h * @brief LLDXHardware definition * * $LicenseInfo:firstyear=2001&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License only. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * + * * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA * $/LicenseInfo$ */ @@ -36,57 +36,57 @@ class LLVersion { public: - LLVersion(); - BOOL set(const std::string &version_string); - S32 getField(const S32 field_num); + LLVersion(); + BOOL set(const std::string &version_string); + S32 getField(const S32 field_num); protected: - std::string mVersionString; - S32 mFields[4]; - BOOL mValid; + std::string mVersionString; + S32 mFields[4]; + BOOL mValid; }; class LLDXDriverFile { public: - std::string dump(); + std::string dump(); public: - std::string mFilepath; - std::string mName; - std::string mVersionString; - LLVersion mVersion; - std::string mDateString; + std::string mFilepath; + std::string mName; + std::string mVersionString; + LLVersion mVersion; + std::string mDateString; }; class LLDXDevice { public: - ~LLDXDevice(); - std::string dump(); + ~LLDXDevice(); + std::string dump(); - LLDXDriverFile *findDriver(const std::string &driver); + LLDXDriverFile *findDriver(const std::string &driver); public: - std::string mName; - std::string mPCIString; - std::string mVendorID; - std::string mDeviceID; + std::string mName; + std::string mPCIString; + std::string mVendorID; + std::string mDeviceID; - typedef std::map<std::string, LLDXDriverFile *> driver_file_map_t; - driver_file_map_t mDriverFiles; + typedef std::map<std::string, LLDXDriverFile *> driver_file_map_t; + driver_file_map_t mDriverFiles; }; class LLDXHardware { public: - LLDXHardware(); + LLDXHardware(); - void setWriteDebugFunc(void (*func)(const char*)); - void cleanup(); + void setWriteDebugFunc(void (*func)(const char*)); + void cleanup(); - // Returns TRUE on success. - // vram_only TRUE does a "light" probe. - BOOL getInfo(BOOL vram_only); + // Returns TRUE on success. + // vram_only TRUE does a "light" probe. + BOOL getInfo(BOOL vram_only); // WMI can return multiple GPU drivers // specify which one to output @@ -96,28 +96,28 @@ public: GPU_AMD, GPU_ANY } EGPUVendor; - std::string getDriverVersionWMI(EGPUVendor vendor); + std::string getDriverVersionWMI(EGPUVendor vendor); - S32 getVRAM() const { return mVRAM; } + S32 getVRAM() const { return mVRAM; } - LLSD getDisplayInfo(); + LLSD getDisplayInfo(); - // Will get memory of best GPU in MB, return memory on sucsess, 0 on failure - // Note: WMI is not accurate in some cases - static S32 getMBVideoMemoryViaWMI(); + // Will get memory of best GPU in MB, return memory on sucsess, 0 on failure + // Note: WMI is not accurate in some cases + static S32 getMBVideoMemoryViaWMI(); - // Find a particular device that matches the following specs. - // Empty strings indicate that you don't care. - // You can separate multiple devices with '|' chars to indicate you want - // ANY of them to match and return. - // LLDXDevice *findDevice(const std::string &vendor, const std::string &devices); + // Find a particular device that matches the following specs. + // Empty strings indicate that you don't care. + // You can separate multiple devices with '|' chars to indicate you want + // ANY of them to match and return. + // LLDXDevice *findDevice(const std::string &vendor, const std::string &devices); - // std::string dumpDevices(); + // std::string dumpDevices(); public: - typedef std::map<std::string, LLDXDevice *> device_map_t; - // device_map_t mDevices; + typedef std::map<std::string, LLDXDevice *> device_map_t; + // device_map_t mDevices; protected: - S32 mVRAM; + S32 mVRAM; }; extern void (*gWriteDebug)(const char* msg); |