chromium/third_party/angle/src/common/platform_helpers.cpp

//
// Copyright 2023 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

// platform_helpers.cpp: implementations for platform identification functions
// which require runtime detections.

#include "common/platform_helpers.h"
#include "common/debug.h"

#include <tuple>

#ifdef ANGLE_PLATFORM_WINDOWS
#    include <windows.h>
#endif

namespace angle
{

namespace
{

// Windows version constants, for range check functions
constexpr VersionTriple kVersionWindowsXP    =;
constexpr VersionTriple kVersionWindowsVista =;
constexpr VersionTriple kVersionWindows7     =;
constexpr VersionTriple kVersionWindows8     =;
constexpr VersionTriple kVersionWindows10    =;
constexpr VersionTriple kVersionWindows11    =;

bool IsWindowsVersionOrLater(VersionTriple greaterOrEqual)
{}

bool IsWindowsVersionInRange(VersionTriple greaterOrEqual, VersionTriple lessThan)
{}

}  // namespace

bool operator==(const VersionTriple &a, const VersionTriple &b)
{}
bool operator!=(const VersionTriple &a, const VersionTriple &b)
{}
bool operator<(const VersionTriple &a, const VersionTriple &b)
{}
bool operator>=(const VersionTriple &a, const VersionTriple &b)
{}

//
// Exact Windows version checks
//

bool IsWindowsXP()
{}

bool IsWindowsVista()
{}

bool IsWindows7()
{}

bool IsWindows8()
{}

bool IsWindows10()
{}

bool IsWindows11()
{}

//
// Windows version or later helpers
//

bool IsWindowsXPOrLater()
{}

bool IsWindowsVistaOrLater()
{}

bool IsWindows7OrLater()
{}

bool IsWindows8OrLater()
{}

bool IsWindows10OrLater()
{}

bool IsWindows11OrLater()
{}

bool Is64Bit()
{}

}  // namespace angle